logoalt Hacker News

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

51 pointsby aka-rideryesterday at 6:39 PM35 commentsview on HN

Comments

drzaiusx11yesterday at 10:50 PM

I recently performed this exact exercise of converting a complex library set from one language into an intermediate state machine representation and then translated into N other languages. It worked well but there's a lot of caveats. I'd highly recommend a direct "port" in most cases tbh, as many bugs are "load bearing" and may not survive the intermediate translation. I speak from experience.

show 1 reply
aka-rideryesterday at 6:39 PM

Following the recent "Rewriting bun in Rust" I thought to run an experiment which turned out to be success.

show 2 replies
vessenesyesterday at 9:35 PM

The title is the worst part of the essay. Which is super interesting, to wit: fable's a very capable model when it comes to transforming concepts in and out of structural descriptions, and you can use it (along with a test suite I presume) to transpile a codebase. I wouldn't have thought to do this, but I think it makes sense, and I like it - it's using model intelligence at a few different steps for sensible things. Thanks for the writeup. De clickbait your title though or you'll keep getting clickbait rage responses :)

show 1 reply
motbus3yesterday at 10:10 PM

Makes sense it would have been 6 USD in GLM 5.3?

show 1 reply
ramon156yesterday at 8:58 PM

what did i read? genuinely? its only a few words, and even that had to be AI written. The topic in the title barely was mentioned.

show 1 reply
cyanydeeztoday at 1:01 AM

And ROI of 0?