4 ms·
Yup, they are very similar as both are used to run code at high performance. WebAssembly was designed for the browser. Users want their websites to load quickl
by loic-sharma 6y ago
Yup, they are very similar as both are used to run code at high performance.
WebAssembly was designed for the browser. Users want their websites to load quickly, so startup time is crucial. Also, users want to browse sketchy websites, so security is also crucial. WebAssembly is more like an instruction set for a "fake" CPU. It's very low-level and is not ideal for running high-level languages like Ruby (though it's possible!).
On the other hand, GraalVM isn't constrained by these browser requirements. This lets Graal do nifty tricks so that highly dynamic languages - like Ruby or JavaScript - run as fast as possible.