3 ms·
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 arbi
by MoscMob 4y ago
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.
- eisbaw 4y agoDon'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.
- titzer 4y agoWasm is not implemented "in JavaScript", rather JS engines reuse important parts of their compilation pipeline to generate good code for Wasm.