• wyrmsbane@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    Rust does not have better performance over C. The entire appeal of Rust is memory safety, which I would argue that GPU drivers don’t need as much as performance. This is all Hype-Slop.

    I do appreciate that they’ve essentially open-sourced Nvidia’s proprietary driver, however.

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      Beating the original driver isn’t hard though. It’s known that Nvidia doesn’t care about Linux and has extremely shitty drivers.

      Meanwhile AMD embraces their opensource driver and works with the community to make it better.

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      Drivers absolutely need memory safety over performance. When drivers crash it’s much worse than when some random app crashes.

      • wyrmsbane@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day ago

        When you write drivers in C, it forces you to write them well. When you write them in Rust you lose both performance and a clean codebase.

        When was the last time a GPU driver crashed on you in Linux? I have personally never experienced it myself, and I have been using Linux for almost a decade.

        GPU drivers are some of the oldest and highest quality software we have. A Rust sloppified project is the antithesis of that.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          When you write drivers in C, it forces you to write them well.

          🤣 Oh my god…

          When you write them in Rust you lose both performance and a clean codebase.

          This is so ridiculous I’m assuming it’s satire.

    • qjkxbmwvz@startrek.website
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      The point isn’t that it’s Rust, the point is that the proprietary drivers put artificial performance restrictions in place which this gets around — real performance gains due to clock speed increase (and nvenc session number increase, among others).

      • wyrmsbane@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 days ago

        If thats true, then it is great news. I would rather see these improvements be merged into the nouveau driver, rather than a rust sloppified project that will likely be abandoned in a year.

      • Shatur@discuss.tchncs.deOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 days ago

        While I think Nvidia drivers for Linux are shitty, I wouldn’t rush with this experimental drivers because these GPUs sometimes burn even with lower clocks 😅

    • Shatur@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      I think they used Rust because it’s easier to deal for LLMs.

      But there are some optimizations in Rust that are enabled by default due to borrow checker. For example, basically all variables are marked as restrict. In C nobody uses it because it’s too easy to get UB with this, but with Rust it’s free optimization. However, in Rust when you create arrays, they zero-initialized by default, while in C you can start with garbage and fill them later (you can skip zero-initialization with unsafe, but it’s rarely done).