Comment Re:don't get it (Score 2) 65
Why not just use the time to make a safe c library of operations and use it?
Is this not one way of doing it? And it's a way that will ensure future code contributions are much less likely to introduce stupid bugs (assuming you agree that Rust does just that).
I don't understand all the naysayers claiming it can't be done. Of course it can be done!
Weird stuff in the code (example above was a char array used to hold binary data) can be examined for how its used to deduce the correct implementation - one of the things that LLM's are actually good at. And since it's talking about large C codebases, they're likely well established and completely devoid of things like tests... so have the Rust output C-compatible libraries and run them through the exact same tests! Any remaining issues are just as likely to exist in the old codebase, but now you can sick a more junior dev (or an LLM) on those issues without worrying about introducing classic C errors.
IMO, the real question is if it's worth doing. Where are the arguments against doing it? The rust folks have some strong talking points on its advantages. What's the benefit to keeping a large C codebase in pure C if/when this option is available?