← Back to Tech Radar
Hacker News tech

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

Trending on Hacker News: I used Fable to rewrite 65kLoC of Go in Rust. It cost $400 (25 points / 17 comments, via iurii.net)

In one line

I rewrote rune, my 65kLoC Go terminal editor, to Rust with Fable 5 for about $400. The trick is to turn a code problem into a data problem.

Opening excerpt

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.

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:

Show me your flowcharts and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won’t usually need your flowcharts; they’ll be obvious. --- Fred Brooks

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (25 points / 17 comments, via iurii.net). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading