• Technus@lemmy.zip
    link
    fedilink
    English
    arrow-up
    52
    ·
    1 month ago

    Because Rust lets you choose when something is unsafe vs writing all unsafe in code all the time:

    Note the other 159 kernel CVEs issued today for fixes in the C portion of the codebase

            • ryannathans@aussie.zone
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 month ago

              Talking about how unsafe is not some new fancy rust feature and exists in other languages. Your comment makes it sound like the choice is some new wild computing concept.

              • Hawk@lemmynsfw.com
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 month ago

                Memory safe languages that are not garbage collected are not all that common. Ada and Rust are two examples.

                With great care C++ and zig can be.

                I’m sure there’s a good reason a lot of the big players and the community at large have picked up rust though. Docs, error messages, cargo community etc.

                I would argue that Rust does bring a lot to the table. I certainly would never code in C for work but I’ll happily reach for Rust.