Honestly migrating from one language to another night actually be one of the best use cases for AI, if you don’t change the architecture much it should be doable especially if it’s a well tested codebase.
Comment on Microsoft wants to replace its entire C and C++ codebase, perhaps by 2030
franzbroetchen@feddit.org 1 week ago
Easy to achieve if the ai just wraps all code in an unsafe block ^^
lemmeLurk@lemmy.zip 1 week ago
franzbroetchen@feddit.org 1 week ago
Maybe if the languages are very similar. If you convert C to Rust using AI it might work well but will most definitely not leverage the unique features of Rust. Might as well stay with C in that case. Migrating from an object oriented language like C++ to a procedural language such as Rust will most likely produce a burning pile of shit
lightnsfw@reddthat.com 1 week ago
especially if it’s a well tested codebase.
So not for microsoft products then.
phlegmy@sh.itjust.works 1 week ago
In theory.
But there’s no doubt all their tests will also be shat out from an LLM.
m33@lemmy.zip 1 week ago
That’s funny because using unsafe might be an hint that Rust is not the right tool for the job. Yet we have rust in the kernel, rust coreutils… I just can’t wrap my head arout it, yet.
boaratio@lemmy.world 1 week ago
You shouldn’t have said that. Now the rust zealots are going to come for you.
m33@lemmy.zip 1 week ago
Got downvoted, here they come…
filcuk@lemmy.zip 1 week ago
Unsafe is expected and necessary in certain situations. Using other languages doesn’t change that fact.
It’s talked about in the docs