Hacker News new | ask | show | jobs
by reverius42 15 days ago
Does an AI rewrite in Rust cancel out?
2 comments

That remains to be seen, but my guess would be that if you do it like Ladybird (with human-in-the-loop and a decent level of review) then probably yes, if you do it like Bun (1M LoC in a week) then probably no.
I did recently read an article about how, due to better training data, an AI writes better code in Rust than most other languages.

How that translates to the number of bugs, I don't know.

I would think that existing bugs would be caught, but new bugs would be introduced. The problem remains, but at least it has a new name now.

I’m developing three codebases right now where all of the code is written by AI (Swift, Python, Rust) and the Rust codebase requires the least pruning and has the fewest wtf moments.
I suspect it is the feedback from the stricter compiler, not differences in training data between python and rust