⚙️WebAssembly (Wasm)
Also known as Wasm, .wasm
Fast code that browsers run. Code in other languages is turned into it.
Think of it like
Think of it like a plug that fits all the sockets. Code in lots of languages can plug in.
Example
Emma's photo editor has a blur tool written in Rust. Built as Wasm, it runs in the browser about as fast as the desktop app.
Why it matters
It brings heavy apps to the web without a download. It also lets code in many languages run in a browser.
Definition
Common mistake
Key takeaways
- 1Compile to it. From C, C++, Rust or Go.
- 2Close to native speed. Good for heavy work.
- 3Runs beside JavaScript. In the same safe sandbox.