3 ms·
Replace “WebAssembly VM” with “JVM” and you will see how it’s already available, and why it won’t catch on.
by tzahola 9y ago
Replace “WebAssembly VM” with “JVM” and you will see how it’s already available, and why it won’t catch on.
- C14L 9y agoThe big difference is that the "Browser VM" has well defined permissions to access resources on the host machine. Just like phone OSes do today. Bluetooth API, Files API, Location API, etc.
- fleitz 9y agoAt which point you have an OS... except adding the word ‘webassembly’ somehow imbues it with properties OS’s don’t already because somehow web assembly compiles to assembly with extra security with no performance reduction.
- deleted 9y ago[deleted]
- int_19h 9y agoJVM had to be installed, and it was far from seamless the way OP describes it. The advantage of wasm is that all the people running Chrome today already have it.
- deleted 9y ago[deleted]
- imtringued 9y agoThe JVM doesn't compete with C or C++.
- imtringued 9y agoJVM Bytecode is not a low level bytecode. It doesn't support value types or aribtrary pointer manipulation within a sandboxed memory area. It has a lot of java semantics baked in. Performance in most cases is better than javascript but it still is in the same order of magnitude because you have little control over the memory layout. Webassembly solves a problem that existing low level bytecodes like LLVM IR do not intend to solve. LLVM IR is not stable across LLVM versions and usually is optimized for a specific architecture. JVM bytecode is stable but high level. LLVM IR is unstable and low level. WebAssembly is stable and low level. They all solve different problems.
- mailslot 9y agoWebassembly doesn't require you to install Oracle software, or lag your computer for 30 seconds while it starts up... And it doesn't require Swing or AWT. So, there are those minor improvements.
- pjmlp 9y agoSwing is a very good improvement over HTML UI hacks.
- AnIdiotOnTheNet 9y agoJava doesn't require Swing or AWT either.