News for hackers. Stuff that matters.
Re:WebVM: WASM virtual machine in browser with networking vi... by MoscMob on Friday October 07, 2022 @02:56AM (#33118219)
It's not that we need a VM in the browser, but we just need a VM that's sandboxed in terms of security.

Other than JavaScript, what other way can you send arbitrary code to a device and expect it to run there? WASM is the only other option.

Re:WebVM: WASM virtual machine in browser with networking vi... by eisbaw on Friday October 07, 2022 @04:21AM (#33118652)
Don't buy it. A sandbox is a sandbox. Yes, javascript runs in a sandbox, but other technologies exist beyond javascript-in-a-sandbox.

This is just really inefficient: VM in WASM in javascript in a sandbox in a browser, is insane and will forever be slow due to complexity.

Fun for the lulz, but for the planet's sake I hope this doesn't get adopted.

Re:WebVM: WASM virtual machine in browser with networking vi... by titzer on Friday October 07, 2022 @09:48AM (#33121257)
Wasm is not implemented "in JavaScript", rather JS engines reuse important parts of their compilation pipeline to generate good code for Wasm.