← back

Porting Rust to TypeScript with a single Claude prompt

Took a lambda calculus puzzle game written in Rust and ported it to TypeScript/Vue 3 using a single Claude Opus prompt. The entire codebase -- parser, evaluator, game logic, UI -- translated in one shot.

The interesting part: Claude understood the Rust ownership semantics well enough to produce idiomatic TypeScript, not just a mechanical translation.

Play it: ljk53.github.io/functional-game/