• grinka@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 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
      ·
      5 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
        ·
        4 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)