3 ms·
webassembly.sh is the prior art in this area. It has a package manager that will install binaries automatically. It seems like a poor terminal implementation ho
by syrrim 4y ago
webassembly.sh is the prior art in this area. It has a package manager that will install binaries automatically. It seems like a poor terminal implementation however, since it uses prompt() for user input. If you rehost it setting the headers described here [1] then the problem is fixed
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- benno128 4y agoYeah absolutely. Webassembly.sh was a big inspiration for my original build for Runno (https://runno.dev https://runno.dev). The `prompt` issue is caused by code-rot, it used to work but then stopped working after browsers standardised a workaround for Spectre vulnerabilities in `SharedArrayBuffer`. Runno uses some neat tricks to get around this even when `SharedArrayBuffer` isn't available. Part of the reason I started working on this playground was because I felt like the Wasmer WASI runner didn't work in the ways I wanted it to. Having a full end-to-end understanding of my WASI implementation has really helped, and I'm looking forward to moving Runno over to my new WASI runtime.