Craig's Amazing Rust Spectacular
summary
TypeScript lattice Boltzmann fluid sim is ported to Rust, built with cargo and measured: JS sim runs ~32 ms/frame, Rust native runs ~13 ms/frame, so about 3x faster. Renderer prototype targets terminal for raw speed, then Rust compiles to WebAssembly using wasm-pack and exposes memory; the browser reads the Rust heap via a Uint8Array memory buffer and paints a canvas, achieving sub‑16 ms frames and real‑time 60 fps.
AI-written summary · about
chapters (13)
- 0:00Welcome and speaker introduction
- 1:30Sponsor message and Lightning McQueen setup
- 2:36Aerodynamic simulation challenge for Lightning
- 4:44Current TypeScript simulation performance issues
- 9:02Why Rust could solve the performance problem
- 11:55Key differences between TypeScript and Rust
- 18:34Converting simulation code from TypeScript to Rust
- 23:29Understanding Rust’s ownership and borrowing
- 26:40Rendering simulation results in Rust
- 29:51Performance comparison Rust vs TypeScript
- 30:35Compiling Rust to WebAssembly for the browser
- 34:36Live demo of Rust WebAssembly simulation
- 36:03Summary and Lightning McQueen’s success
related talks
36mCraig's Amazing Rust Spectacular
23mCraig's Angular/Rust Spectacular
30mRust in the Browser for Javascripters:New Frontiers,New Possibilities
44mOut of the JavaScript Box: Front-End Rust Programming
01h 00mThe Future of Rust Web Applications
22mExtending JavaScript with Rust
38mRust on the frontend
30mImproving web app with Rust and WASM
