whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.catirclogs.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
<_whitenotifier-8> [glasgow] icb- opened pull request #961: database.microchip.avr: add support for ATtiny1634 - https://github.com/GlasgowEmbedded/glasgow/pull/961
<_whitenotifier-8> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-961-1d757d3996a1a0906bd7fac14a7a056afb057092 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/1d757d3996a1...a6d4db9d2c58
<_whitenotifier-8> [GlasgowEmbedded/glasgow] icb- a6d4db9 - database.microchip.avr: add support for ATtiny1634
<_whitenotifier-8> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-961-1d757d3996a1a0906bd7fac14a7a056afb057092 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [glasgow] whitequark closed pull request #961: database.microchip.avr: add support for ATtiny1634 - https://github.com/GlasgowEmbedded/glasgow/pull/961
<whitequark[cis]> maehw: reproduced
conventia[m] has joined #glasgow
<conventia[m]> Just got my glasgow in the mail!
<whitequark[cis]> nice!
<whitequark[cis]> have fun
figushki has joined #glasgow
figushki has quit [Changing host]
figushki has joined #glasgow
figushki has quit [Client Quit]
redstarcomrade has quit [Read error: Connection reset by peer]
<conventia[m]> Thanks, I have no idea what I'll use it for, but I'll think of something.
_whitelogger has joined #glasgow
_whitelogger has joined #glasgow
<_whitenotifier-8> [glasgow] Sazzach commented on pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960#issuecomment-3093223528
<_whitenotifier-8> [glasgow] ahmedcharles opened pull request #962: gateware.fx2_crossbar: use init instead of reset. - https://github.com/GlasgowEmbedded/glasgow/pull/962
<_whitenotifier-8> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-962-a6d4db9d2c586c058dae38780f458c5a51974a4a - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/a6d4db9d2c58...745f1c5af2c1
<_whitenotifier-8> [GlasgowEmbedded/glasgow] ahmedcharles 745f1c5 - gateware.fx2_crossbar: use init instead of reset.
<_whitenotifier-8> [glasgow] whitequark closed pull request #962: gateware.fx2_crossbar: use init instead of reset. - https://github.com/GlasgowEmbedded/glasgow/pull/962
<_whitenotifier-8> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-962-a6d4db9d2c586c058dae38780f458c5a51974a4a - https://github.com/GlasgowEmbedded/glasgow
<conventia[m]> I'm trying to migrate the old sync process tests over to testbenches and I get some failures. Does the sync process mechanism result in a different flow of clock cycles than the testbench one?
<whitequark[cis]> yes
<whitequark[cis]> all results are advanced by one cycle (i.e. can be read earlier now)
<conventia[m]> Are there docs I can read that explain the difference? I'm not sure what the easiest way is to read the old version of the docs.
<whitequark[cis]> big part of why it was done
<whitequark[cis]> oh, there are no docs for the old method
<conventia[m]> Did sync_process advance by multiple cycles at a time?
<whitequark[cis]> no
<whitequark[cis]> it basically included a pipeline stage
<whitequark[cis]> (whether you wanted it or not)
<conventia[m]> So, other than being you, is there a good way to figure out why a test is breaking when switching from one to the other?
<conventia[m]> (I'm just trying to remove deprecating warnings.)
redstarcomrade has quit [Read error: Connection reset by peer]
zyp[m] has joined #glasgow
<zyp[m]> studying the original code until you understand the intent of it could help
<zyp[m]> which test is this about?
<conventia[m]> I'm on the test_analyzer.py tests.
figushki has joined #glasgow
<_whitenotifier-8> [glasgow] ahmedcharles opened pull request #963: tests: use Simulation.add_testbench for all tests. - https://github.com/GlasgowEmbedded/glasgow/pull/963
_whitelogger has joined #glasgow
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
figushki has joined #glasgow
<whitequark[cis]> oh yeah thats a bug
<whitequark[cis]> needs a type=int
<whitequark[cis]> in add_argument
<conventia[m]> Oh, it thinks it's a string.
<_whitenotifier-8> [glasgow] ahmedcharles opened pull request #964: applet.interface.spi_controller: fix mode parsing. - https://github.com/GlasgowEmbedded/glasgow/pull/964
<_whitenotifier-8> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-964-745f1c5af2c1958800ed3a3e0a4605edea388790 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [glasgow] whitequark commented on pull request #963: tests: use Simulation.add_testbench for all tests. - https://github.com/GlasgowEmbedded/glasgow/pull/963#issuecomment-3094469380
<_whitenotifier-8> [glasgow] whitequark reviewed pull request #963 commit - https://github.com/GlasgowEmbedded/glasgow/pull/963#discussion_r2217779382
<_whitenotifier-8> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-964-745f1c5af2c1958800ed3a3e0a4605edea388790 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
<_whitenotifier-8> [glasgow] whitequark commented on pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960#issuecomment-3094476040
Eli2 has joined #glasgow
Eli2| has quit [Ping timeout: 252 seconds]
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
figushki has joined #glasgow
<_whitenotifier-8> [glasgow] whitequark synchronize pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
<_whitenotifier-8> [glasgow] whitequark commented on pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960#issuecomment-3094517495
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
figushki has joined #glasgow
<_whitenotifier-8> [glasgow] ahmedcharles reviewed pull request #963 commit - https://github.com/GlasgowEmbedded/glasgow/pull/963#discussion_r2217848133
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_whitenotifier-8> [glasgow] ahmedcharles synchronize pull request #963: tests: use Simulation.add_testbench for all tests. - https://github.com/GlasgowEmbedded/glasgow/pull/963
<_whitenotifier-8> [glasgow] ahmedcharles commented on pull request #963: tests: use Simulation.add_testbench for all tests. - https://github.com/GlasgowEmbedded/glasgow/pull/963#issuecomment-3094580926
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
altracer[m] has quit [Quit: Idle timeout reached: 172800s]
figushki has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jfsimon has joined #glasgow
figushki has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<_whitenotifier-8> [glasgow] Sazzach commented on pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960#issuecomment-3094732275
<_whitenotifier-8> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-960-745f1c5af2c1958800ed3a3e0a4605edea388790 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 5 commits to main [+1/-0/±13] https://github.com/GlasgowEmbedded/glasgow/compare/745f1c5af2c1...ec2f589f6724
<_whitenotifier-8> [GlasgowEmbedded/glasgow] whitequark ff5bf85 - cli: allow `main` to be called multiple times.
<_whitenotifier-8> [GlasgowEmbedded/glasgow] whitequark a4a68bc - cli: catch `SystemExit`.
<_whitenotifier-8> [GlasgowEmbedded/glasgow] whitequark f616eda - hardware.device: request device during enumeration.
<_whitenotifier-8> [GlasgowEmbedded/glasgow] ... and 2 more commits.
<_whitenotifier-8> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-960-745f1c5af2c1958800ed3a3e0a4605edea388790 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-8> [glasgow] whitequark closed pull request #960: software: add toolchain integration for Emscripten - https://github.com/GlasgowEmbedded/glasgow/pull/960
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_whitenotifier-8> [glasgow] ahmedcharles synchronize pull request #964: applet.interface.spi_controller: fix mode parsing. - https://github.com/GlasgowEmbedded/glasgow/pull/964
<_whitenotifier-8> [glasgow] ahmedcharles synchronize pull request #963: tests: use Simulation.add_testbench for all tests. - https://github.com/GlasgowEmbedded/glasgow/pull/963
<whitequark[cis]> huh, it's fast now
<whitequark[cis]> i have no idea why
<_whitenotifier-8> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-964-ec2f589f67245aeef75e67aa05512ff27455faaf - https://github.com/GlasgowEmbedded/glasgow
<conventia[m]> The notifier is faster than normal?
<whitequark[cis]> no no look at the screenshot
<whitequark[cis]> the webusb version is now as fast as the native one
<galibert[m]> that's impressive but not actually insane
<galibert[m]> there's been so much effort in making javascript fast so you can have ads thrown at you faster
<conventia[m]> I don't see a screenshot. Discord integration issue?
<whitequark[cis]> ads do not actually benefit much from faster javascript
<galibert[m]> Isn't there a fucklot of things done just to device which ad to serve you?
<whitequark[cis]> also there isn't even much javascript running in first place, it's almost all webassembly
<galibert[m]> s/device/decide/
<whitequark[cis]> the ad auction is on the server side
<_whitenotifier-8> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/ec2f589f6724...c8d9329be7ce
<_whitenotifier-8> [GlasgowEmbedded/glasgow] ahmedcharles c8d9329 - applet.interface.spi_controller: fix mode parsing.
<_whitenotifier-8> [glasgow] whitequark closed pull request #964: applet.interface.spi_controller: fix mode parsing. - https://github.com/GlasgowEmbedded/glasgow/pull/964
<_whitenotifier-8> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-964-ec2f589f67245aeef75e67aa05512ff27455faaf - https://github.com/GlasgowEmbedded/glasgow
<galibert[m]> I classify webasm and js in the same category of "language running in the browser"
<galibert[m]> initially webasm was asm.js after all :-)
<whitequark[cis]> that shows that you don't know much about browser architecture, yes
<galibert[m]> I haven't kept updated for a while, that is true
<galibert[m]> so many things to do, so little time
<whitequark[cis]> wasm isn't even a particularly useful browser target on its own
<whitequark[cis]> (it's a web architecture, in the broad sense that it's been designed to run untrusted applications safely and quickly, but it has no DOM integration at all to this day)
<whitequark[cis]> we don't even have wasm gc intgration yet! (there's an experimental proposal that's getting there, but it's still used in very limited wayss)
<galibert[m]> I suspect the lack of DOM integration is annoying everybody too
<whitequark[cis]> s/wayss/ways/
redstarcomrade has quit [Read error: Connection reset by peer]
<whitequark[cis]> dunno, the only thing i ever wanted DOM integration for is webusb
<whitequark[cis]> most of my wasm deployment doesn't even have a javascript interpreter anywhere
<galibert[m]> Doesn't it mean that you can't avoid js if you want to run webasm in a browser?
<whitequark[cis]> that's correct
<whitequark[cis]> but you end up with relatively minimal amounts of setup and glue code at the FFI boundary
<whitequark[cis]> in general you can't avoid running <some other code> when using wasm in the same sense that you can't avoid using syscalls when writing usermode code
<whitequark[cis]> except these are called hostcalls for wasm
<galibert[m]> you don't have to write the kernel support for the syscalls though :-)
<whitequark[cis]> there's WASI, which implements a tiny POSIX subset as Wasm hostcalls
<whitequark[cis]> i deploy the FPGA toolchain as WASI builds
<whitequark[cis]> there are engines (wasmtime, node) which natively support WASI, although in the browser i was unhappy with the existing implementation of FS virtualization and wrote my own
<galibert[m]> syscalls and filesystem :-P
<whitequark[cis]> hm?
<galibert[m]> that you have to write yourself :-)
<whitequark[cis]> that makes no sense
<whitequark[cis]> the filesystem implementation is a set of syscalls
<galibert[m]> forget it, failed joke
<whitequark[cis]> a good mental model for webassembly is that it's a CPU architecture just like the usermode subset of MIPS or usermode subset of x86
<whitequark[cis]> if you don't think too hard about why it's the way it is, there's nothing "web" about it, it's just a weird ISA and ABI
<conventia[m]> Hopefully my changes to the tests make sense to someone who understands the old sync process. 🙂
<whitequark[cis]> oh yeah let me look
<conventia[m]> No rush.
<conventia[m]> I'll try to update them to use async after I know they're ok.
<whitequark[cis]> at a glance that doesn't quite look right
<whitequark[cis]> but i'm too tired to review them in depth
<conventia[m]> I just made changes until they passed without changing the code under test. That's not a particularly principled approach, but it's the best I can do without understanding it all. Take your time.
<whitequark[cis]> yes
<conventia[m]> I guess that's cause python maintains dict order as an implementation detail in recent releases?
<whitequark[cis]> it's not an implementation detail, it's guaranteed by interface
<conventia[m]> Oh, that's nicer.
<whitequark[cis]> since uh... 3.6 or so? so several years already
SophiaNya has quit [Remote host closed the connection]
SophiaNya has joined #glasgow
lxdr533 has quit [Remote host closed the connection]
lxdr533 has joined #glasgow
<sazzach[m]> Ooh nice! It took me a sec to recognize that the screenshot is on mobile.
<maehw[m]> <whitequark[cis]> Screenshot_20250720-220630_Edge Dev.png
<maehw[m]> Nice! Finally, there is a reason for me to get a USB-C OTG cable. 😀
<zyp[m]> the nice thing about USB-C is that all C-C cables are OTG cables
<maehw[m]> Thanks for the clarification. I am old.
<maehw[m]> 👍 Still need such type of cable.
<zyp[m]> if you have any chargers with a USB-C socket, you probably also have a C-C cable for it :)
<_whitenotifier-8> [glasgow] thoughtpolice opened issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965
<_whitenotifier-8> [glasgow] thoughtpolice commented on issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965#issuecomment-3094840782
AhmedCharles[m] has joined #glasgow
<AhmedCharles[m]> I guess Matrix actually shows the screenshots.
anubis has joined #glasgow
anubis has quit [Remote host closed the connection]
<_whitenotifier-8> [glasgow] whitequark commented on issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965#issuecomment-3094846537
anubis has joined #glasgow
<_whitenotifier-8> [glasgow] whitequark commented on issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965#issuecomment-3094849790
<_whitenotifier-8> [glasgow] thoughtpolice commented on issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965#issuecomment-3094850708
<_whitenotifier-8> [glasgow] whitequark commented on issue #965: Some notes on using `uv` for Glasgow firmware tasks - https://github.com/GlasgowEmbedded/glasgow/issues/965#issuecomment-3094855088
anubis has quit [Remote host closed the connection]
anubis has joined #glasgow
<AhmedCharles[m]> I was able to read a 25x flash from webusb, though it gave an error after that. glasgow.support.usb.ErrorStall: Failed to execute 'selectAlternateInterface' on 'USBDevice': Unable to set device interface. And apparently, the console doesn't like ctrl-C...
<whitequark[cis]> doesn't like how?
<AhmedCharles[m]> I can't seem to get it to run commands anymore.
<whitequark[cis]> odd. and the error is strange too
<whitequark[cis]> debugging those issues is pretty annoying given how many moving parts are involved
<whitequark[cis]> also webusb is relatively fresh still
<AhmedCharles[m]> I guess I have ctrl-C muscle memory. It code be due to using Edge (which is like Chrome, but not Chrome).
<AhmedCharles[m]> s/code/could/
<whitequark[cis]> oh yes, that could be the cause
<whitequark[cis]> try chrome
<AhmedCharles[m]> Oh, simple usability question, is there a way to store pin configurations in a file so that you don't need to put them on the command line every time?
<whitequark[cis]> you could put it in a shell variable and then do like $pins
<whitequark[cis]> but not in the web port. there i recommend copy&paste until we get real.history
<whitequark[cis]> s/./ /
<AhmedCharles[m]> I'm definitely not using the web port long term, it was just a cool novelty to try.
<whitequark[cis]> i might use it on other computers and such