Practical Rust for Web Audio
summary
Documents building a low level web audio engine in Rust and what actually worked: Rust compiles into WebAssembly but initial builds bloat to 1.3 MB initial WASM bundle until link time optimization wasm‑strip and shrinker trimming cut size; processing runs inside an AudioWorkletProcessor in Rust with data passed via shared array buffer to avoid GC pauses; allocations happen once in the constructor using tiny allocators like mini‑alloc or tal; the result meets the ~128 frame / ~2.6 ms render quantum and yields predictable realtime processing.
AI-written summary · about
chapters (7)
- 0:00Rust and web audio intro
- 3:56JavaScript vs Rust in browser
- 6:02Audio processing challenges
- 9:16Beast of two indexes demo
- 13:45Web Audio API and Rust
- 17:57Optimizing Rust for WASM audio
- 20:11Rust audio crates outlook
related talks
24mAmp Up Web Audio Applications with Rust and WebAssembly
47mRewrite the web with Rust and Web Assembly
44mOut of the JavaScript Box: Front-End Rust Programming
20mUsing Rust and WASM
43mDo things blazingly fast with WebAssembly
41mLet's build with WebAssembly!
36mPractical WebAssembly
25mThink About Front-end Web Development with Rust
