James Delahunty
7 Mar 2017 20:25
In time, WebAssembly will deliver significant improvements for in-browser high performance apps, such as video games, CAD or complex interactive visualizations.
WebAssembly allows web apps to achieve near-native performance in the browser without the need to install any additional third party extensions or plugins. Modern web apps are a long way away from the simple Javascript code of a more primitive web; they are large, complex applications.
If programmed to run natively under the host operating system, they would certainly run much better than running in the browser. WebAssembly is the answer put forward for this problem.
Unlike Javascript, all the code a programmer writes is parsed and compiled ahead of time before reaching the browser. The browser then just sees low-level, machine-ready instructions it can quickly validate, optimize, and run.
Programs written in languages like C/C++ can be ported to the web so they run with near-native performance with WebAssembly, using accompanying tools.