|
|
|
|
|
by AnimalMuppet
52 days ago
|
|
That's not how rewrites create new bugs. It's not type or lifetime or error checking bugs, for the most part. It's "sometime in the ten years that this code has existed, someone ran into this weird corner case. This little detail right here fixes it. But the guys doing the rewrite weren't around ten years ago, and they don't know that the corner case even exists, so they don't know which specific details of the existing code they need to preserve." And so the handling for corner cases gets lost. Doing a new implementation that preserves all of the features of existing code in all scenarios is really hard. The re-implementation team never knows all the scenarios that matter. Is AI going to fix this? AI won't know all the scenarios and corner cases, either. |
|
The pool of C software worth rewriting is shrinking. There are the few too-big-to-rewrite projects that will never move, but everything else is either getting rewritten, or has more modern replacements already written directly in Rust.
I can't vouch for LLM-assisted rewrites. The results can be randomly dodgy regardless of what you're writing or rewriting. I suspect we'll get plenty more LLM rewrites anyway, and people will just compensate by sending LLMs hunting for bugs by brute force.