Unlocking the Potential of Reusable Code with WebAssembly
summary
Reuses existing Rust backend calculations by compiling them to WebAssembly with @webassembly1232 and exposing functions via annotated bindings, runs them inside web workers using Comlink and shared ArrayBuffers to avoid copying geometry. Demonstrates real project handling up to millions of triangles and gigabytes of model data, reports small-model timings around 1 ms in Rust/WASM vs ~7 ms in JS, finds backend round trips much slower, and documents memory limits and target-specific stdlib issues that required conditional compilation and data-structure optimizations.
AI-written summary · about
chapters (7)
- 0:00Reusable code with WebAssembly
- 6:29Why WebAssembly for projects
- 11:36WebAssembly in Rust
- 16:17WebAssembly with JavaScript
- 20:08Performance comparison
- 25:32Benefits for rapid development
- 26:37Q&A
related talks
30mImproving web app with Rust and WASM
44mOut of the JavaScript Box: Front-End Rust Programming
32mWebAssembly for Front End Devs
47mRewrite the web with Rust and Web Assembly
27mWebAssembly for Performant Interactivity
34mPractical Polyglot WebAssembly
46mA State Of WebAssembly - The Browser is now a real VM
41mCreating High-Performance Web Apps with WebAssembly
