Starting today, experimental support for WebAssembly is available in V8 and Chromium behind a flag. To try it out in V8, run
d8 version 5.1.117 or greater from the command line with the
--expose_wasm flag or turn on the Experimental WebAssembly feature under
chrome://flags#enable-webassembly in Chrome Canary 51.0.2677.0 or greater. After restarting the browser, a new
The WebAssembly project website has a demo showcasing the runtime’s usage in a 3D game. In browsers that support WebAssembly, the demo page will load and instantiate a wasm module that uses WebGL and other web platform APIs to render an interactive game. In other browsers, the demo page falls back to an asm.js version of the same game.
Two upcoming changes will also significantly improve the developer experience. A standard textual representation of WebAssembly will enable developers to view the source of a WebAssembly binary like any other web script or resource. In addition, the current placeholder
The V8 / WebAssembly team looks forward to continued collaboration with other browser vendors and the greater community as we work towards a stable release of the runtime. 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 . Check back for more updates as the design and implementation process continues.
Posted by Seth Thompson, WebAssembly Wrangler