Hacker News new | ask | show | jobs
by pcstl 1120 days ago
WASI is not meant for browsers, it's for using WebAssembly as platform-independent bytecode in non-browser environments.
1 comments

The article claims they got it working in the browser, but not how.
That'll be added using the @wasmer/wasi npm package. We'll be updating that soon
So could one use this to run a fully socket capable Jupyter notebook? There are some infosec dashboards I would like to build, but not having the ability to actually run socket capable code killed the interesting aspect of doing it in the browser.
Browsers don't have TCP/UDP/etc. sockets, so a WASI impl running in one can't provide that either.
Possibly it could be emulated using a Wireguard bridge? A Tailscale connection might be interesting.

Something like: https://tailscale.com/blog/ssh-console/

wasi -- web assembly system interface -- is explicitly designed for not-browser environments

you can hack it into a browser, i guess, but that's subverting the fundamental purpose of the thing

i dont think Linus intended his operating system code to land rocket ships on barges either but hey... we can forgive him.