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

  • masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    1
    ·
    1 month ago

    Pretty much all high level languages do because they’re already designed around automatic memory management.

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