3 ms·
There is an immense technical advantage: wasm doesn't enforce a high-level memory model like the JVM's classes or Flash's ActionScript. It allows straightforwar
by Rusky 9y ago
There is an immense technical advantage: wasm doesn't enforce a high-level memory model like the JVM's classes or Flash's ActionScript. It allows straightforward use as a compiler target for low level languages which do not use a bytecode verifier for safety.
Any attempt to use those languages or their existing ecosystems of code on the JVM, Flash, or Javascript will be incredibly fragile and convoluted.
- fulafel 9y agoThe WASM memory is just a Uint8Array in the JS VM. You can use a big byte array and du manual memory management in JVM too. It's a well known pattern on the JVM.
- Rusky 9y agoThat's entirely unhelpful for the call stack, values stored in registers, loading and storing other sizes, atomics, etc... Wasm solves that because it's aware of what it's doing. Java et al do not.