Mozilla and Google announced today that they have added experimental WebAssembly support to Firefox Nightly and Chrome Canary.
Microsoft revealed that it will launch a version of Microsoft Edge in the future that supports WebAssembly as well.
So what is WebAssembly, and why is its introduction important?
WebAssembly is an emerging standard whose goal is to define a safe, portable, size- and load-time efficient binary compiler target which offers near-native performance—a virtual CPU for the Web.
It is being developed in a W3C Community Group with members from Mozilla, Microsoft, Google and Apple which means that the technology will find its way into all major browsers in the near future.
A demo has been released to highlight the capabilities of WebAssembly in comparison to asm.js. If you run Chrome Canary or Firefox Nightly, head over to the demo site after making the following adjustments to your browser of choice:
There is no public preview option available for Microsoft Edge or Safari currently.
Head over to the demo site and click on the "Play WebAssembly" button afterwards. The 3D game will load and you can move around using WASD and shoot with the left mouse button. It is basic but shows how fluid games can be using WebAssembly.
This is an experimental demo of Angry Bots, a Unity game which has been ported to WebAssembly. Fight robots and explore a 3D space station with realistic environmental effects in this top-down shooter. Movement is controlled by W, A, S, D or the arrow keys and aiming & firing is controlled by the mouse.
You may also click on "Play asm.js fallback" instead to see the difference when asm.js is used instead of WebAssembly.
All reveal that there is still lots of work to be done before WebAssembly will be supported by stable versions of web browsers.
WebAssembly code and development information can be found on Github.
Good news is that WebAssembly will pave the way for demanding web applications once it is released, and since it is supported by all major browsers, it is less likely that the technology will fade into obscurity.Advertisement
If you like our content, and would like to help, please consider making a contribution: