Zed is a modern open-source code editor, built from the ground up in Rust with a GPU-accelerated renderer.

  • UnfairUtan@lemmy.world
    link
    fedilink
    arrow-up
    43
    ·
    4 months ago

    Because most things built with Rust are faster than their equivalent, especially electron-based apps.

    So as a user, regardless of the cult following, i’m happy that this tech exists and is being adopted so fast.

    • Mihies@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      4 months ago

      It’s primarily about safety, not speed. Any C or C++ program should match the speed but not the correctness.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        4 months ago

        no, it’s primarily about speed and resources because the comparison is often not against a hypothetical C/C++ alternative, but against an existing one that is slower and more resource intensive.

        • vrighter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          4
          ·
          4 months ago

          So they should say that it is written with performance in mind. I don’t care how you achieved that. rust, c++, assembly, whatever.

          Mention that it has very good collaborative editing.

          Mention features.

          • upto60percentoff@kbin.run
            link
            fedilink
            arrow-up
            5
            ·
            4 months ago

            VS Code is written with performance in mind. Compared with other electron apps, it’s very performant.

            Compared with even a sloppily written native app though, it’s not great.

            • vrighter@discuss.tchncs.de
              link
              fedilink
              arrow-up
              2
              ·
              4 months ago

              so fucking say that. Designed to be fastest editor. Show benchmarks. Talk about your features. I still don’t care what tools you used to achieve it. It being written in rust does not automatically make things fast. It may even slow things down, in some cases.

          • crispy_kilt@feddit.de
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            Everone claims their software is fast. When stating that it is written in a native language it is actually believable.

            • vrighter@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              but it didn’t do jack shit to help me believe that. Because they did not say that that was the goal. So there was no credibility to affect in the first place.

              Also, your argument does not make sense anyway. As a native language, due to some extra copying needed and some runtime checks that cannot be elided, it is slower than c++. It can be almost as fast, really close, but ever so slightly slower.

              Electron is written in c++. A native language. A native language faster than rust (we’re talking about speed not safety here). And yet, it is the canonical example of “bloated and slow”. If you were to rewrite electron in rust, it’d be safer, but also at least just as slow.

              So if the editor really is faster, it’s not because the code was written in rust. It’s because the devs are writing better code. That’s why just saying it’s written in rust is useless.

    • Matt@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      4 months ago

      Because most things built with Rust are faster than their equivalent, especially electron-based apps.

      And safer, since Electron is just Chromium, which is mainly written in C++.