this post was submitted on 24 Dec 2025
242 points (94.2% liked)

Technology

78003 readers
3251 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] franzbroetchen@feddit.org 27 points 2 days ago* (last edited 2 days ago) (2 children)

Easy to achieve if the ai just wraps all code in an unsafe block ^^

[–] lemmeLurk@lemmy.zip 1 points 2 days ago (3 children)

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.

[–] franzbroetchen@feddit.org 4 points 1 day ago* (last edited 1 day 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 language with another paradigm (such as Rust) will most likely produce a burning pile of shit

[–] lightnsfw@reddthat.com 4 points 1 day ago

especially if it’s a well tested codebase.

So not for microsoft products then.

[–] phlegmy@sh.itjust.works 1 points 1 day ago

In theory.
But there's no doubt all their tests will also be shat out from an LLM.

[–] m33@lemmy.zip 1 points 2 days ago (2 children)

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 3 points 2 days ago (1 children)

You shouldn't have said that. Now the rust zealots are going to come for you.

[–] m33@lemmy.zip 2 points 2 days ago

Got downvoted, here they come…

[–] filcuk@lemmy.zip 1 points 2 days ago

Unsafe is expected and necessary in certain situations. Using other languages doesn't change that fact.
It's talked about in the docs