Craig's Amazing Rust Spectacular
summary
Converts a TypeScript lattice‑Boltzmann aerodynamic simulation that takes 32 ms per frame into Rust, compiles it to WebAssembly with wasm-bindgen + wasm-pack, and uses a Float64Array shared memory view plus BigInt bindings to pass data to a canvas renderer. The Rust terminal build measures ~13 ms per simulation step (below the 16 ms target for 60 fps) and the WASM build runs in the browser; demos are flaky, and source‑level debugging and tooling for the WASM/Rust boundary remain poor.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:27Sponsor message
- 3:13Lightning McQueen challenge
- 7:05Browser simulation issues
- 8:10Rust for speed
- 8:53TypeScript vs Rust
- 15:43TypeScript to Rust
- 17:05Rust memory basics
- 23:43Terminal rendering
- 26:31Optimizing Rust
- 26:52Rust in browser
- 30:54Demo and results
- 31:37Summary
- 32:23Q&A
related talks
37mCraig's Amazing Rust Spectacular
23mCraig's Angular/Rust Spectacular
30mImproving web app with Rust and WASM
44mOut of the JavaScript Box: Front-End Rust Programming
30mRust and the Web Platform: A Rookie’s Guide
20mUsing Rust and WASM
30mRust in the Browser for Javascripters:New Frontiers,New Possibilities
46mA State Of WebAssembly - The Browser is now a real VM
