Technology Lab

RunnableEngineering Cases

All eight cases below are written in Rust and compiled to WebAssembly — zero runtime dependencies, no framework, no build toolchain in the browser. Game rules and numerical computation live entirely on the Rust side; JavaScript only loads the modules, paints the canvas and forwards input, so every case is genuinely playable right here on the page.

Rust → WebAssembly · Zero Dependency
Why two sections

Two sections, two classes of risk

Games validate interaction and state machines — the most underestimated part of a real product. Scientific visualization and physics simulation validate algorithms and numerical accuracy: when the maths or physics is wrong nothing crashes, it just quietly returns wrong answers, which is exactly why assertions have to back it up. Together they cover the two most common classes of engineering risk in delivery.

Live

Engineering highlights

Zero-dependency delivery

Hand-written extern C exports with no wasm-bindgen: the artifact is the bare wasm, with no generated JS glue step.

Command buffer protocol

Rust writes drawing commands into linear memory; the front end reads them sequentially with getUint32 — zero copy, no string parsing.

Tests as guardrails

Geometry asserts areas, simulation asserts energy drift: math and physics errors surface in unit tests rather than on a customer site.

Single-source bilingual

Page copy and case metadata are injected by the build script, and both language versions share one renderer, so the two can never drift apart.