• NotMyOldRedditName@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    As long as they dont let the AI spew @unsafe lines everywhere or whatever the annotation is, at least a rewrite in rust should have some semblance of stability at least though?

    • grinka@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Just using safe rust to produce correct software is not enough, you can still crash program by using something like unwrap, or by violating interial mutability rules in Mutex (But crashing program is still better than C)

      • NotMyOldRedditName@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

        Oh dang, I didnt know there were other ways. Also just because it runs doesnt mean it does the right thing, but I did think it wouldn’t crash from all the rust talk.

        • grinka@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Well if you’re a human instead of a environment-killing plagiarism machine it’s certainly easier to produce correct & fast software, there is a lot of good features in rust like Algebraic Datatypes from functional programming that is used in error handling. Also rust is not the first language to be memory safe, it’s just that it’s memory safe, fast & compiled, that what are talks about (And also also memory safety doesn’t necessarily mean correctness, it’s more about preventing attackers abusing memory safety bugs, something that proper shutdown of a program can prevent)