|WebAssembly Takes A Big Step Towards Being Real|
|Written by Ian Elliot|
|Wednesday, 16 March 2016|
WebAssembly was announced last year as a great revolution in the way code could be run in a browser. At the time it all seemed very vague and a long way from a practical proposition but slowly things are coming together. In theory Google, Mozilla, Microsoft and Apple are working on defining and implementing WebAssembly withing the W3C WebAssembly Community but today's announcements are notable for the absence of Apple and Webkit.
There is also a demo program showing how fast WebAssembly can run a 3D game. The game, Angry Bots, can be run in WebAssembly or using asm.js.
You can see how the Mozilla team describes the difference between processng asm.js and WebAssembly:
The Mozilla blog suggests that the demo game compiles in about half the time it takes for asm.js.
At the moment the ASTs are transferred in human readable form, but the next stage is to convert them to a compact binary format. This will make them smaller and hence load faster.
On the game's GitHub page is also a status report:
WebAssembly Demo Status
You can see that there is still some way to go.
What is also missing are the toolchains needed to create WebAssembly. These are under development but as the V8 blog says:
We’re also planning future WebAssembly features (including multi-threading, dynamic linking, and GC / first-class DOM integration) and continuing the development of toolchains for compiling C, C++, and other languages via the WebAssembly LLVM backend and Emscripten.
At the momement none of this is usable for production apps, but it is proof that WebAssembly is coming. There are plans to change the details of most of what is on offer at the moment. The Firefox blog suggests that the as well as the basics they plan to augment the browser devtools to include a WebAssembly debugger and profiler.
A WebAssembly Milestone: Experimental Support in Multiple Browsers
Experimental support for WebAssembly in V8
From ASM.JS to WebAssembly Brendan Eich
WebAssembly Has Mozilla, Microsoft,Apple and Google Backing It
Mozilla Enhances Browser-Based Gaming
Java, ASM.js Or Native - Which Is Faster?
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, Facebook, Google+ or Linkedin.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Wednesday, 16 March 2016 )|