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 2 months ago
Easy to achieve if the ai just wraps all code in an unsafe block ^^
lemmeLurk@lemmy.zip 2 months ago
franzbroetchen@feddit.org 2 months 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 2 months ago
especially if it’s a well tested codebase.
So not for microsoft products then.
phlegmy@sh.itjust.works 2 months ago
In theory.
But there’s no doubt all their tests will also be shat out from an LLM.
m33@lemmy.zip 2 months 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 2 months ago
You shouldn’t have said that. Now the rust zealots are going to come for you.
m33@lemmy.zip 2 months ago
Got downvoted, here they come…
filcuk@lemmy.zip 2 months ago
Unsafe is expected and necessary in certain situations. Using other languages doesn’t change that fact.
It’s talked about in the docs