• trevor (he/they)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        8
        ·
        18 days ago

        I have no idea how. I write better Rust than I do C 🤷‍♂️

        Rust and C are basically identical in terms of performance (more or less). Idk where the myth that Rust is somehow less performant than C came from.

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        17 days ago

        think it’s fair to say performance rust is hard to write

        This situation proved exactly the opposite.

        They wrote a utility to pass functional tests. It did. Then people said it was too slow. So, in just a few days or hours, they dramatically sped it up while still passing the tests.

        Seems like it was pretty easy to write fast Rust code in this case.

        • chocrates@piefed.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          17 days ago

          Fair point. I am mostly going on what I have seen others do on streams when comparing rust and go. Go seemed faster to get good performance and rust sometimes had to write a ton of code to get the same performance.

          I don’t know if you can selectively not use Go’s garbage collector, but that seems to be the only reason Go might be theoretically slower than rust.