WASM now in all major browsers
Since around February 2018, I noticed that all the major browsers have WASM support
What use-cases can you immediately think of that might benefit from WASM support?
Few things comes to my mind:
- 3D and 2D WebGL games.
- Game UIs and other heavy assets.
- Peer-to-peer applications.
- Image recognition.
- Video and Image Manipulation.
- VR and Augmented Reality
- Literary every computation heavy code - physics engines, 3D engines, game engines, visualizations, etc.
I have big hopes for WebAssembly. It's power comes from being platform and language independent format, that can run in every browser. The end-goal of WebAssembly is to provide safe and optimized way of running code in native-like speed.
WebAssembly promise to improve load times and overall performance by executing parsed and compiled ahead of time binary code. Soon, WebAssembly will support DOM manipulation and multiple Web APIs by providing Platform APIs, with which different languages will communicate with the browser, which will make WebAssembly even more useful.
That won't be possible. WebAssembly code is executed within a sandbox environment, that is separated from the host runtime. So, the executed code can't escape the sandbox.
Also, each WASM module apply security policies for web and non-web envirnments. For web, that is the Same-Origin Policy and for non-web it's the POSIX security model.