Will there be performance and security improvements?

  • ExLisper@linux.community
    link
    fedilink
    English
    arrow-up
    59
    arrow-down
    3
    ·
    edit-2
    1 year ago

    It’s a better, more modern language in general. It has way better tooling (better, more user friendly compiler, better package manager), really good set of modern features (null-safety, good error handling, type-classes, algebraic types), it’s easier to modularize your code (workspaces, modules). Rust does a lot of things right and is fun to work with. That’s why it’s the most liked language overall. It’s not hype, it really is that good. It will just make working on the kernel easier. And on top of that it offers some memory safety and concurrency features.

    P.S. I forgot about amazing documentation. Again, way better then what you can find for C.

    P.P.S Zero cost abstractions.

    • duncesplayed@lemmy.one
      link
      fedilink
      English
      arrow-up
      41
      ·
      1 year ago

      The “tooling” argument is kind of backwards when we’re in the kernel. The package manager is not allowed to be used. Even the standard library is not allowed to be used. Writing code free of the standard library is kind of new in the Rust world and getting compiler support for it has been one of the major efforts to get Rust into the kernel. Needless to say tools around no-stdlib isn’t as robust as in the user world.