3 ms·
WASM does not interact with the DOM AFAIK. Of course one might (and probably somebody did) create a JavaScript programs interfacing a WASM web worker that sends
by pmontra 4y ago
WASM does not interact with the DOM AFAIK. Of course one might (and probably somebody did) create a JavaScript programs interfacing a WASM web worker that sends user input in the JS -> WASM direction and executes DOM manipulation commands in the other one. All masked as a DOM library of the language that was compiled to WASM. Efficient? Probably no. Fast enough? Probably yes.
- 7373737373 4y agoThere is the WASI initiative https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/ https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webas...
- DeathArrow 4y ago>Of course one might (and probably somebody did) create a JavaScript programs interfacing a WASM web worker that sends user input in the JS Of course someone did. Check out Blazor. :) https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blaz...
- pmontra 4y agoThanks. In the early 90s there was "the law of Internet": if you can think about something somebody already made it and put it online. And it was a really tiny net compared to today.