Will there be performance and security improvements?

    • Cpo@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Aside from that I think C is more performant than C++ (indeed when you use the bells and whistles that C++ offers), you are comparing the libraries with each other.

      The fact that the implementation of one random std::Sort is faster than the implementation of qsort() is comparing libraries, not the languages. You are comparing the algorithm of the Rust Sort with quicksort (which is obviously the qsort you are referring to.

      I am certain there are sort implementations in C which outperform Rust.

      Having said that, I immensely enjoy Rust because it forces me to think about the error handling and it does not give me the quirks of C/C++ (index out of bounds, memory corruption).

        • Cpo@lemm.ee
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          1 year ago

          while C has to fiddle with void* and function pointer to get similar flexibility, which are much harder to optimize, as none of the type information is there.

          I thought we were discussing speed, not ease of use?

            • Cpo@lemm.ee
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              1 year ago

              …so now we are discussing not speed again but ease of use.

              Not everything with an R in it is faster than C. Read up about it. Everyone says so.

              I’m out.