Do things blazingly fast with WebAssembly
summary
Claim: compiling Rust to WebAssembly gives native‑like compute speed in the browser — a Fibonacci loop that takes ~12s in JS runs under a second as a Wasm module. Tools shown: wasm-bindgen, wasm-pack and a Webpack Wasm plugin to compile Rust → Wasm and generate JS bindings. Demo app: a Rust‑built paint canvas using web-sys/js-sys that renders with no visible lag. Caveats: only numbers cross the raw Wasm boundary cheaply, frequent boundary crossings kill gains; streaming compilation and future GC/threads are ongoing platform work.
AI-written summary · about
chapters (4)
related talks
41mLet's build with WebAssembly!
33mWebpack + WebAssembly the future
47mRewrite the web with Rust and Web Assembly
30mImproving web app with Rust and WASM
46mA State Of WebAssembly - The Browser is now a real VM
37mWebAssembly with Rust
20mUsing Rust and WASM
44mOut of the JavaScript Box: Front-End Rust Programming
