Skip to content
Tech News
← Back to articles

I used Fable to rewrite 65kLoC of Go in Rust. It cost $400

read original more articles
Why This Matters

This article highlights how leveraging Fable and advanced LLM techniques enabled a cost-effective and efficient rewrite of 65,000 lines of Go code into Rust, demonstrating a promising approach for large-scale language migrations in the tech industry. It underscores the potential for automation to reduce costs and accelerate development timelines, benefiting both developers and organizations seeking to modernize legacy systems.

Key Takeaways

I used Fable to rewrite 65kLoC to Rust. It cost $400.

September 1, 2026 · 3 min

I kept joking that I would have learned Rust a long time ago, but C++ money is not enough for a decent fursuit. Moreover, I'm bald, so I cannot simply dye my hair blue.

But then two things happened at once.

First, I tried the /teach skill by Matt Pocock 1 to learn Rust, and it clicked: "Teach a C++ programmer idiomatic Rust, skip syntax and helloworld, only focus on main differences." This skill is like a personal trainer — overcoming the pleasant challenge keeps me engaged, and at the same time, the material never gets overwhelming. I recommend trying it.

Around the same time, I came across "Rewriting Bun in Rust" 2 and got curious about the method:

Each dynamic workflow was a loop like this - a workflow for: Generate a porting guide mapping Zig patterns & types to Rust patterns & types

Mechanically port every .zig file to a .rs file, matching the PORTING.md and LIFETIMES.tsv

file to a file, matching the PORTING.md and LIFETIMES.tsv Fix every crate's compiler errors

Get subcommands like bun test or bun build to work

... continue reading