I used Fable to rewrite 65kLoC of Go in Rust. It cost $400
Hacker News 热议:I used Fable to rewrite 65kLoC of Go in Rust. It cost $400(25 赞 / 17 评论,来源 iurii.net)
一句话概要
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.
原文开头节选
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
(以上为原文节选,完整内容见下方”原文来源”)
这条动态今日登上 Hacker News 首页(25 赞 / 17 评论,来源 iurii.net)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。
原文来源: Hacker News