An Introduction to WebAssembly
summary
Explains what WebAssembly actually is: a browser bytecode VM that exports/imports functions, shares memory via ArrayBuffer, and cannot touch the DOM directly so JavaScript bridges are required. Demos compile a WebAssembly Text Format fizzbuzz that encodes strings in linear memory, returns -1/-2/-3 for fizz/buzz/fizzbuzz, and takes three days to get string handling working; then swaps to Rust to produce a wasm module and all tests pass. Uses wabt (wat2wasm), a VS Code toolkit, and recommends instantiateStreaming for better performance.
AI-written summary · about
chapters (15)
- 0:00Start
- 16:10How Virtual Machines Work
- 18:10WebAssembly in the Browser
- 21:41A Simple WebAssembly Module
- 22:30WebAssembly is Stack-based
- 23:14Add & Push
- 24:55Using the Modules
- 25:13Importing & Exporting Functions
- 26:45Instantiating Modules with Imports
- 27:05Start Function
- 28:55Shared Memory
- 31:01Storing Strings
- 32:32Using Stored Strings
- 34:59Other Languages
- 54:20Resources








