DHH Shares Fable Rust Rewrite of Python Library
An AI tool produced a complete Rust version of the TerminalTextEffects Python library.
David Heinemeier Hansson posted that the Fable AI coding tool generated a complete Rust implementation of the TerminalTextEffects Python library. The resulting executable runs faster and requires no external dependencies. He shared a link to the artifact on Claude. Other users commented on the achievement, with some noting the value of Rust rewrites using frontier models. DHH later applied additional optimizations using another AI and compared results with competing models, finding frontier labs ahead on the task.
Fable one-shotted a Rust rewrite of the TerminalTextEffects Python library in 11M tokens. Startup time went from 87ms to 2ms and rendering speed is up by 9.6x. Now zero dependencies and a 3mb single exec 🤯
