• 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.