this is the culmination of my effort to cross-compile literally every fpga-related tool to webassembly, i think
the code isn't... great, mostly because a bunch of things i never intended to be async had to become async. so i'll have to refactor it first
here's the pull request with webusb bits that i cleaned up so that they're not awful https://github.com/GlasgowEmbedded/glasgow/pull/958
there are also toolchain bits. the toolchain bits are awful. i am too ashamed to post them
@equinox yeah
i have no idea why it's slow. maybe chromium doesn't queue enough in-flight requests or something. it's hard to debug this stuff
@equinox it's basically libusb with a few things renamed, but the problem is that... ok, consider this
if my native application breaks while doing syscalls, i run strace
if it's slow i run perf
now image running that on a browser tab.
@whitequark right. Ugh. I've used JS level perf tools before, but no clue about somehow getting useful perf (or trace) out of wasm…
Anyway I shall stop wasting your time, happy hacking & appreciate a whole bunch of your stuff! 😊