• CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’m pretty skeptical it could be as fast and safe as Rust without the added challenge. Like, even doing what Rust did was a big deal.

        • potatoBoy@programming.dev
          link
          fedilink
          Afaraf
          arrow-up
          1
          ·
          1 year ago

          Can compile to C which then compiles using your favourite compiler. So it can operate at the speed of C

          And the new memory management system is similar to rusts system (and can be fully disabled if you want manual memory management)

          • CanadaPlus@lemmy.sdf.org
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Can compile to C which then compiles using your favourite compiler. So it can operate at the speed of C

            Technically, it all compiles to assembly, but Python is still a lot slower than C or Rust. Speed is lost along the way through those layers of abstraction.

            And the new memory management system is similar to rusts system (and can be fully disabled if you want manual memory management)

            So it doesn’t have a garbage collector? I’m going to have to actually look into this myself.

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          1 year ago

          I think it transpiles to C so theoretically it could be quite fast, but I doubt the generated C is as fast as manually written C or Rust.