Advanced Vocabulary #webassembly#wasm#performance

WebAssembly Vocabulary

5 exercises — Practice WebAssembly vocabulary in English: module, linear memory, WASI, WASM component model, wasm-pack, WAT format, instantiation, sandbox model, and near-native performance.

Core WebAssembly vocabulary clusters
  • Core concepts: module (.wasm binary), WAT (text format), linear memory, stack machine, import/export, instantiation
  • Security: sandbox, capability-based security, no syscalls by default, explicit imports only
  • WASI: WebAssembly System Interface — standard API for filesystem, sockets, clocks; WASI Preview 1 vs Preview 2
  • Ecosystem: wasm-pack (Rust→WASM), Emscripten (C/C++→WASM), component model, WIT (interface types), Wasmtime, WasmEdge, WAMR
0 / 5 completed
1 / 5
A frontend engineer explains WebAssembly to a colleague who asked why the image-editing tool loads so fast:
"We ported the image processing library from C++ to WebAssembly. Instead of running JavaScript, which is interpreted or JIT-compiled at runtime, the browser executes WASM — a compact binary format that's compiled ahead of time. The browser's WASM engine compiles it to native machine code. Performance is near-native — within 10-20% of native in most cases. The browser still sandboxes it: WASM runs in the same JavaScript engine, can only access the memory it's given, and can't make OS calls. You compile C++ with Emscripten, or Rust with wasm-pack, and get a .wasm file."
What is a WebAssembly module and what is the linear memory?