Simulating Sand: Building Interactivity With WebAssembly
summary
A falling-sand engine called Sand Spiel runs a 2D grid at ~60 frames a second, with per-cell update functions (sand checks below and diagonals) moved into WebAssembly for speed and the UI kept in 50% JavaScript and 50% Rust. Tooling uses wasm-pack to compile Rust to a JS module. The result scales far beyond a JS-only prototype, supports user uploads and forking, but surfaces moderation and trust trade-offs despite WebAssembly’s sandbox.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:22Falling Sand Games
- 4:12Powder Game
- 10:07Demo
- 10:52Web Assembly
- 16:16Web Assembly Code
- 16:59Sand Update Function
- 20:25Manual Moderation
related talks
01h 09mSandbox Games: Using WebAssembly and C++ to make a simple game
54mSandbox Games: Using WebAssembly and C++ to Make a Simple Game
01h 12mSandbox Games - Using WebAssembly and C++ to Make a Simple Game
35mModern Sandboxing: Using Web Assembly in Java
41mCreating High-Performance Web Apps with WebAssembly
50mWeb Assembly
44mOut of the JavaScript Box: Front-End Rust Programming
43mWhy you should consider Web Assembly in your next frontend project
