Three main browsers have added support for low-level binary format WebAssembly

Original author: Martin Anderson
  • Transfer
This week Google, Microsoft and Mozilla simultaneously released experimental browser builds with support for WebAssembly (wasm), an effective low-level programming language that runs in a browser with much higher performance than the most modern and high-speed JavaScript compilers.

Mozilla developer Luke Wagner spoke at Mozilla Hacks about the benefits of WebAssembly, and also announced the porting of the sci-fi shooter Angry Bots to WebAssembly . The demo runs in browsers with WebAssembly support - these are the latest versions of Chrome Canary , Firefox Nightly and Microsoft Edge . Safari will join them soon on WebKit .

AngryBots demo on WebAssembly in Microsoft Edge browser :



WebAssembly is a new format for native web applications. It supports all the functionality of a subset of JavaScript asm.js , which in itself was supposed to eliminate the negative impact of frameworks and interpreters on performance so that application instructions are executed at the lowest possible level.

WebAssembly is not designed to replace JavaScript, but to complement it, while giving more general programs direct access to processor instruction sets - without the overhead of garbage collection, among other things.

Luke Wagner emphasizes that Wasm applications have access to Web APIs and are tightly integrated with JavaScript, including allowing calls between WebAssembly and JavaScript. Unlike classic models, this allows WebAssembly to more easily integrate into JavaScript applications and libraries, as asm.js.

The W3C Web Assembly Group was formed last year with the leading participation of Google, Microsoft, Apple and Mozilla, which were joined by another 540 individuals and organizations.

Joint development is carried out as part of the WebAssembly GitHub Organization project on the github.

In your own adAbout WebAssembly support in the Microsoft Edge browser, Chakra project manager Limin Zhu noted that WebAssembly code is processed in the same way as asm.js code, while the AngryBots demo runs much faster because WebAssembly binaries are smaller than asm.js and parses faster than pure JavaScript in the case of asm.js.



The developers of the V8 JavaScript Engine also announced a collaboration with the W3C Web Assembly Group:

“Two upcoming changes will especially help web developers. The standard WebAssembly text view allows you to view the source code of the WebAssembly binary just like any other script or resource. In addition, the current Wasm placeholder will be redone to provide a more complete idiomatic set of methods and properties to illustrate and analyze JavaScript WebAssembly modules.

Also popular now: