Webpack + WebAssembly the future
summary
Claim: compiling Rust to WebAssembly yields a measurable speedup over equivalent JS. Demo uses cargo to target wasm, wasm-pack/wasm-bindgen and webpack to bundle, and instantiateStreaming to load modules. A factorial benchmark runs the function 5,000 times and WebAssembly completes in 224 ms while the JS version is much slower even after micro‑optimizations; JS tuning buys ~10–15% at best. Memory is shared via explicit buffers and bindings and the demo works end‑to‑end.
AI-written summary · about
chapters (4)
- 0:00Start
- 3:17Which has higher performance?
- 5:54Known engine shortcomings
- 19:45Using compile streaming...
related talks
41mLet's build with WebAssembly!
43mDo things blazingly fast with WebAssembly
44mOut of the JavaScript Box: Front-End Rust Programming
37mWebAssembly with Rust
30mImproving web app with Rust and WASM
32mWebAssembly vs JavaScript: Which Is Faster?
46mA State Of WebAssembly - The Browser is now a real VM
47mRewrite the web with Rust and Web Assembly
