• arjache@fedia.io
      link
      fedilink
      arrow-up
      5
      ·
      2 months ago

      Code written in Rust has been shown to have significantly fewer security vulnerabilities than code written in C. Distributions like Ubuntu ship a lot of security updates, so by switching to Rust-based utils, they can reduce their workload in the long run.

      • masterofn001@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 month ago

        There’s probably some zero day exploit someone is holding onto until everything is rust and then, bam!. Yeah, that’s just silly to think. Just silly.

      • asdfasdfasdf@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 month ago

        No, it isn’t just hype. The hype is justified.

        Outside of security you have some very really world benefits, like performance gains in various scenarios as well as lots more people willing to contribute and a much better type system (more maintainability).

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 months ago

          Rust is better for writing multithreaded applications which means that the small amount of utilities that can utilize parallelism receive a significant speedup. uutils multithreaded sort was apparently 6x faster than the GNU utils single threaded version.

          P.S. I strongly doubt handwritten assembly is more efficient than modern C compilers.

          • Possibly linux@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            My simple assembly program can rum circles around compilers. As long as something is small it is possible to optimize better than a C compiler.

            • gens@programming.dev
              link
              fedilink
              English
              arrow-up
              0
              arrow-down
              1
              ·
              2 months ago

              Compilers have a lot of chalenges to even compile, let alone optimize. Just register allocation alone is a big problem. An inherent problem is that the compiler does not know what the program is supposed to do. Humans still write better assembly then compilers.

              The one down arrow on the guy you are responding to is from me, just so everybody knows.

          • qaz@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 months ago

            I’m not sure why people are downvoting you, since Fortran is known to be extremely performant when dealing with multidimensional arrays.