Extending JavaScript with Rust
summary
Shows concrete results: Rust modules compile to WebAssembly and swap into existing JS apps via wasm-pack and bindings, replacing hot code paths. Firefox devtools parsing becomes 6× faster (with tweaks up to ~11×). A WordPress Gutenberg parser rewritten in 313 Rust lines runs a median 98× faster (2.5s → 25ms). Demonstrates an Advent of Code example, npm packaging the wasm module, and that the replacement works transparently in the web app.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:40High level vs low level languages
- 4:50WebAssembly
- 6:50Firefox Dev Tools
- 8:50Ember WebAssembly
- 10:42Modules
- 12:13Iterators
- 14:45Wasmpack
- 16:00Live demo
related talks
30mImproving web app with Rust and WASM
47mRewrite the web with Rust and Web Assembly
41mLet's build with WebAssembly!
44mOut of the JavaScript Box: Front-End Rust Programming
43mDo things blazingly fast with WebAssembly
30mRust in the Browser for Javascripters:New Frontiers,New Possibilities
41mCreating High-Performance Web Apps with WebAssembly
25mThink About Front-end Web Development with Rust
