Craig's Angular/Rust Spectacular
summary
An Angular canvas lattice Boltzmann simulation is rewritten in Rust, compiled with cargo and wasm-pack and exposed via wasm-bindgen, replacing a 32 ms TypeScript step with roughly 600 microseconds per step in native Rust and sub‑16 ms frames in the browser via Rust + WASM, hitting 60 fps. Code uses typed arrays to avoid copies, a terminal renderer for benchmarks and a canvas bridge for the Angular app; result is concretely faster in practice for Radiator Springs style aerodynamic updates.
AI-written summary · about
chapters (6)
- 0:00Angular and Rust intro
- 5:40Moving sim to Rust
- 13:02Rust memory management
- 17:38Rust vs TypeScript rendering
- 20:07WebAssembly for performance
- 22:32Summary
related talks
36mCraig's Amazing Rust Spectacular
37mCraig's Amazing Rust Spectacular
30mImproving web app with Rust and WASM
30mRust in the Browser for Javascripters:New Frontiers,New Possibilities
22mExtending JavaScript with Rust
30mRust and the Web Platform: A Rookie’s Guide
44mOut of the JavaScript Box: Front-End Rust Programming
47mRewrite the web with Rust and Web Assembly
