WebAssembly
Definition
Binary instruction format that allows code written in multiple languages to run at near-native speed in web browsers and on servers.
Use Cases
- Figma: Running performance-sensitive design and rendering logic in the browser for a collaborative design application — Figma has publicly discussed using WebAssembly in its web app to move heavy computation closer to native-speed execution inside the browser. (Improved responsiveness for complex editing tasks and a desktop-like experience delivered through the browser.)
- Google Earth: Delivering rich 3D geospatial experiences directly in the browser — Google has used modern web technologies including WebAssembly-related browser performance techniques to support complex client-side processing for advanced web experiences. (Users can access interactive, high-performance 3D content without installing a traditional native desktop application.)
- AutoCAD Web: Bringing CAD-style functionality to the browser — Autodesk has used WebAssembly to help run computationally intensive parts of its web-based engineering and design workflows more efficiently. (Better browser performance for demanding design operations and broader access across devices without requiring full local installs.)
Frequently Asked Questions
- What's the difference between WebAssembly and JavaScript?
- JavaScript is a high-level scripting language commonly used to build interactive web pages. WebAssembly, or Wasm, is a low-level binary format designed for speed and portability. In practice, they often work together: JavaScript handles UI and browser interactions, while WebAssembly runs performance-heavy code such as graphics, simulations, audio processing, or compiled libraries.
- When should I use WebAssembly?
- Use WebAssembly when you need better performance than typical JavaScript can provide, when you want to reuse code written in languages like Rust, C, or C++, or when you need portable execution across browsers, edge environments, and servers. It is especially useful for games, media processing, CAD tools, scientific computing, cryptography, and sandboxed plugins. For standard website logic or simple business apps, JavaScript or a typical backend service is usually easier.
- How much does WebAssembly cost?
- WebAssembly itself is an open standard and does not have a license fee. Costs come from the environment where you run it, such as browser delivery, CDN bandwidth, cloud compute, serverless invocations, edge execution, storage, observability, and developer time. If you run Wasm on a cloud platform, pricing depends on that platform's CPU, memory, request volume, and network usage rather than on WebAssembly itself.
Category: emerging
Difficulty: advanced
See Also