{"id":141247,"date":"2026-08-16T02:27:14","date_gmt":"2026-08-16T02:27:14","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/141247\/"},"modified":"2026-08-16T02:27:14","modified_gmt":"2026-08-16T02:27:14","slug":"rails-creator-dhh-rewrites-python-library-in-rust-using-claude-code-in-3-hours","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/141247\/","title":{"rendered":"Rails creator DHH rewrites Python library in Rust using Claude Code in 3 hours"},"content":{"rendered":"<p>Rails creator DHH used Claude Code to rewrite the Python library TerminalTextEffects into Rust code in 3 hours and 11 minutes, consuming 11 million tokens.<\/p>\n<p>Article author and source: AI New Era<\/p>\n<p>The creator of Claude Code has publicly stated that he hasn&#8217;t written a single line of code by hand in over two months.<\/p>\n<p>In one day, he was able to merge 27 PRs, all handled by Claude.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/6ae6efe2-9e21-4995-9f22-0386d0979498.webp\"\/><\/p>\n<p>OpenAI researcher Roon put it even more bluntly: &#8220;I don&#8217;t write code anymore; 100% is done by GPT.&#8221;<\/p>\n<p>Now, another expert, after deeply experiencing Claude Code and Codex, exclaimed, &#8220;In five years, humans won&#8217;t write code anymore!&#8221;<\/p>\n<p>Over the past few days, Rails&#8217; creator DHH personally took on a major undertaking\u2014<\/p>\n<p>Rewritten entirely in Rust from the Python library &#8216;TerminalTextEffects&#8217;, using only Claude Fable 5.<\/p>\n<p>Amazingly, this restructuring burned 11 million tokens, almost clearing the challenge in one go.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/00e24a0e-0301-44d6-b433-0ea3d091f2e3.webp\"\/><\/p>\n<p>The results after optimization were phenomenal: startup time was reduced from 87 milliseconds to just 2 milliseconds, and rendering speed increased by 9.6 times.<\/p>\n<p>As soon as the post was published, it instantly drew a million viewers online.<\/p>\n<p>An AI expert cut to the chase and posed a profound question to the creator of Rails: &#8220;If that&#8217;s the case, where should Ruby go in the next five years?&#8221;<\/p>\n<p>DHH&#8217;s response was very straightforward\u2014<\/p>\n<p>Within five years, very few people will still be manually writing or reading code, so it really doesn\u2019t matter.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/3d09aff5-3d08-4c84-929e-7e4da069b86c.webp\"\/><\/p>\n<p>Who could have imagined that just one year later, the contrast would be so stark!<\/p>\n<p>Hand over the keyboard to AI; I&#8217;d rather retire.<\/p>\n<p>In May last year, DHH was still firmly advocating online that the joy of coding should not be surrendered to AI.<\/p>\n<p>In the lengthy article &#8220;Coding should be a vibe!&#8221;, he clearly stated:<\/p>\n<p>AI is at best a supportive &#8220;pair programmer,&#8221; useful for checking APIs and answering questions.<\/p>\n<p>He even made a strong statement: &#8220;If one day I must completely hand over the keyboard to AI, I&#8217;d rather retire.&#8221;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/1f81d656-e9a1-42b7-9b57-63929091e23d.webp\"\/><\/p>\n<p>I have no intention of giving up coding at all. This isn\u2019t some grunt work I\u2019d hand off to AI\u2014what would be the point? To become a project manager for a bunch of AI &#8220;mob&#8221;?<\/p>\n<p>During Lex Fridman\u2019s six-hour in-depth conversation, DHH insisted that every line of his code was written by hand.<\/p>\n<p>While building a Linux distribution, he repeatedly had AI generate the same Bash conditional statement, until he suddenly realized that without typing it out himself, he hadn\u2019t truly learned it.<\/p>\n<p>The loss of this &#8220;muscle memory&#8221; left him shaken, wondering, &#8220;Could this be the end of learning?&#8221;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/62d3caba-2234-47bf-b280-75d3c6972357.gif\"\/><\/p>\n<p>However, in April this year, the tide turned sharply.<\/p>\n<p>In a podcast, he admitted that he has now fully shifted to an &#8220;agent-first&#8221; approach and has largely moved away from writing code by hand.<\/p>\n<p>Yet, it was from the father of Rails himself that the statement \u201cIn five years, not many people will still be reading or writing code\u201d was uttered.<\/p>\n<p>Fable 5 all-in<\/p>\n<p>In five years, no one will write code.<\/p>\n<p>Take a close look at Claude&#8217;s hardcore rewrite of Python.<\/p>\n<p>TerminalTextEffects, abbreviated as TTE, is a terminal visual effects engine.<\/p>\n<p>It can be used as a command-line program or imported as a Python library into other applications.<\/p>\n<p>Developers can, like magicians, control the movement, colors, gradient effects, and animation sequences of text to transform dull UIs into stunning experiences.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/a10224c2-9031-4a1c-93eb-1bb47e613e4b.png\"\/><\/p>\n<p>The Rust version demonstrated by DHH can run 37 effects.<\/p>\n<p>A software that originally required a Python runtime environment has been transformed by Claude into a mere 3MB executable file.<\/p>\n<p>This new repository is called ttfx and is hosted under DHH&#8217;s own Omarchy organization, with every commit preserved.<\/p>\n<p>The entire process took 3 hours and 11 minutes, with 21,000 lines of main Rust code\u2014nearly identical in size to the original Python version.<\/p>\n<p>In the task, eight agents work simultaneously on separate branches, merging in batches: each reads the code, generates the implementation, compiles it, runs tests, handles failures, then proceeds to the next round.<\/p>\n<p>\u6240\u8c13\u300cone-shot\u300d\uff0c\u5b9e\u9645\u4e0a\u662f\u4e00\u6b21\u6027\u4ea4\u4ed8\u4efb\u52a1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/70f19b5b-520b-4eff-8f79-0d07ecd90eae.gif\"\/><\/p>\n<p>Using the same approach, DHH had Codex complete the task, and the result after a single prompt was also excellent.<\/p>\n<p>However, the speed is 30% slower, and the token cost is $43 (\u00a5290).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/68e42051-a22a-418f-bf63-04957574044d.png\"\/><\/p>\n<p>DHH&#8217;s aggressive move directly drew out several top figures from Anthropic.<\/p>\n<p>Boris Cherny, the creator of Claude Code, couldn&#8217;t resist appearing in the comments to exclaim, &#8220;This is amazing!&#8221;<\/p>\n<p>In response to further questioning from researcher Thariq, DHH revealed an astonishing detail\u2014<\/p>\n<p>He simply asked Claude to create a plan, then intervened zero times throughout the process\u2014no complex workflows, no preset goals, fully empowering the process.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/8149fb83-773c-4dff-b8ad-36fd2331927a.webp\"\/><\/p>\n<p>Million-line codebase, migrate with Bun in one click<\/p>\n<p>TerminalTextEffects, given its limited scale.<\/p>\n<p>What truly demonstrates the power of AI coding is the major refactoring beneath Bun.<\/p>\n<p>Several months ago, founder Jarred Sumner personally led the migration of the large codebase from Zig to Rust.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/2efca615-b596-4540-a2ee-3a655687d47d.webp\"\/><\/p>\n<p>Amazingly, this massive project involving a million lines of code was completed in less than two weeks.<\/p>\n<p>A few years ago, a move of this magnitude would have been a marathon lasting multiple quarters, even years.<\/p>\n<p>Future developers must become &#8220;How to Train Your Dragon&#8221; masters.<\/p>\n<p>Today, all signs are wildly suggesting a harsh yet exciting truth\u2014<\/p>\n<p>The marginal cost of code generation is approaching zero indefinitely.<\/p>\n<p>This inevitably causes many people to fall into panic: &#8220;If no one is coding in five years, will programmers disappear?&#8221;<\/p>\n<p>In fact, &#8220;no one writes code&#8221; does not mean that programmers disappear.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/08\/b83b3b07-39c6-42a2-b4bf-1fd126cc8935.webp\"\/><\/p>\n<p>Future programmers will experience a fundamental shift in their core responsibilities\u2014<\/p>\n<p>Shift entirely from &#8220;writing code by hand&#8221; to defining requirements, designing constraints, establishing testing frameworks, and evaluating whether AI has written the code correctly.<\/p>\n<p>It is foreseeable that when &#8220;coding from scratch&#8221; becomes history, the only two true moats remaining in the future will be:<\/p>\n<p>Gain insight into &#8220;what&#8217;s worth doing&#8221; and define &#8220;what counts as right.&#8221;<\/p>\n<p>Instead of worrying about losing your keyboard, start now by thinking about what kind of Rome you want this boundlessly powerful AI, your &#8220;super coder,&#8221; to build.<\/p>\n","protected":false},"excerpt":{"rendered":"Rails creator DHH used Claude Code to rewrite the Python library TerminalTextEffects into Rust code in 3 hours&hellip;\n","protected":false},"author":2,"featured_media":135838,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[53,3154,9055,182,9056,9751],"class_list":["post-141247","post","type-post","status-publish","format-standard","has-post-thumbnail","category-anthropic","tag-anthropic","tag-anthropic-claude","tag-bitcoin-exchange","tag-claude","tag-crypto-exchange","tag-cryptocurrency-exchange"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/141247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=141247"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/141247\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/135838"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=141247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=141247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=141247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}