Hacker News new | ask | show | jobs
by samuba 1039 days ago
Quoting from Stackoverflow:

- WebAssembly was designed with delivery-over-HTTP and browser-based in mind. For that reason, it supports streaming compilation - i.e. you can start compiling the code while downloading.

- WebAssembly was designed to have rapid compilation times (resulting in web pages that load quickly), this is supported by having very simple validation rules compared to Java / JVM languages.

- WebAssembly was designed with the concept of a 'host' environment, i.e. the browser.

- WebAssembly was designed to be secure and simple, minimising the overall attack surface.

- WebAssembly was designed to support a great many languages (C, C++, Rust, ...), whereas the JVM was initially design for a single language, Java.

https://stackoverflow.com/questions/58131892/why-the-jvm-can...