WebAssembly
From WikiTech, the free technology encyclopedia
Binary code format for fast programs on the web
4 sources from WebAssembly Community Group, World Wide Web Consortium, Mozilla and 1 more. Checked by ByteExplained editors on 4 December 2026. How we check facts
WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine, designed so that programs can run in Web browsers and other environments at close to the speed of native code.[1][2] The World Wide Web Consortium describes it as the fourth language for the web, after HTML, Cascading Style Sheets and JavaScript.[2]
History
WebAssembly grew out of asm.js, a fast subset of JavaScript created by Mozilla engineer Luke Wagner, who also led work on the WebAssembly specification.[3] On 17 June 2015 engineers from Google, Microsoft, Mozilla and the WebKit project jointly announced the effort as a new binary format for compiling applications for the web.[4] Its first goal was to match the abilities of asm.js, starting with C (programming language) and C++, with other languages such as Rust (programming language) and Go to follow.[4] Developers could keep using the Emscripten compiler toolchain they already used for asm.js.[4]
By November 2017 Firefox, Chrome, Safari and Edge all supported WebAssembly, so most users could run it by default.[3] On 5 December 2019 the W3C published the WebAssembly Core Specification as a Recommendation, making it an official web standard.[2]
How it works
Instead of sending source text, a website delivers WebAssembly as compact bytecode that browsers can decode much faster than JavaScript; the 2015 prototype decoded up to 23 times faster than parsing equivalent asm.js.[4] Code runs in a sandboxed, memory-safe environment and follows the browser's same-origin and permission rules.[1] WebAssembly modules can call into and out of JavaScript and use the same web interfaces, and there is a text format for reading and debugging.[1] It is designed to work alongside JavaScript rather than replace it.[4]
Uses
Typical uses include games and 3D graphics, video and audio codecs, image processing, encryption and compression.[2][3] Game engine makers Epic and Unity used asm.js and WebAssembly to bring their C++ engines to the web.[3] Because it is a portable virtual instruction set, WebAssembly is also run outside browsers, and the WebAssembly System Interface (WASI) was announced to give it access to files and networks.[2]
See also
References
- ^ WebAssembly. WebAssembly Community Group. webassembly.org
- ^ World Wide Web Consortium (W3C) brings a new language to the Web as WebAssembly becomes a W3C Recommendation. World Wide Web Consortium. 2019-12-05. w3.org
- ^ WebAssembly support now shipping in all major browsers. Mozilla. 2017-11-13. blog.mozilla.org
- ^ Google, Microsoft, Mozilla And Others Team Up To Launch WebAssembly, A New Binary Format For The Web. TechCrunch. 2015-06-17. techcrunch.com





