Re:All About E: The Language That Infiltrated JavaScript
by pmontra on Thursday October 27, 2022 @03:58AM
(#33354557)
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.
[ Parent
| on HN ]
Re:All About E: The Language That Infiltrated JavaScript
by 7373737373 on Thursday October 27, 2022 @05:03AM
(#33355042)
There is the WASI initiative https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webas...
Re:All About E: The Language That Infiltrated JavaScript
by DeathArrow on Thursday October 27, 2022 @09:11AM
(#33356951)
>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/blaz...
Re:All About E: The Language That Infiltrated JavaScript
by pmontra on Thursday October 27, 2022 @11:17AM
(#33358841)
Thanks. 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.