This is an old version, saved 4 Dec 2026, 12:34 by TechWritereditor. It is the current version.

WebAssembly

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]

Contents
  1. History
  2. How it works
  3. Uses
  4. See also
  5. References

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

  1. ^ WebAssembly. WebAssembly Community Group. webassembly.org
  2. ^ 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
  3. ^ WebAssembly support now shipping in all major browsers. Mozilla. 2017-11-13. blog.mozilla.org
  4. ^ Google, Microsoft, Mozilla And Others Team Up To Launch WebAssembly, A New Binary Format For The Web. TechCrunch. 2015-06-17. techcrunch.com