Title. I’m looking for a concrete answer for this.

  • Dhs92@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    1 month ago

    Yeah, Rust is a special case because it handles almost everything at compile time. It also doesn’t rely on garbage collecting like the majority of modern high level languages.

    • Repple (she/her)@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      29 days ago

      Swift also handles everything at compile time, using automatic reference counting. It is also in general faster then c++ in the benchmarking I’ve done for work where we are considering incrementally replacing c++ with it. (Benchmarking was focused on very language-standard code, NOT hand-optimized code focusing on getting every last ounce of speed out).