Greg Kroah-Hartman… urged fellow contributors to embrace those interested in contributing Rust code to improve the kernel.

"Adding another language really shouldn’t be a problem… embrace the people offering to join us

Thoughts on this?

  • WalnutLum@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    13 hours ago

    it would require kernel developers to be savvy in both C and Rust

    From my experience knowing how both C and rust works makes you a better developer in both languages.

    • LedgeDrop@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      2
      ·
      11 hours ago

      Oh absolutely, but you could argue the same for learning lisp or mastering any functional programming language (list comprehensions, etc). It will improve your design patterns when you go back to an object oriented language with some elements of functional programming.

      • WalnutLum@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 hour ago

        Again from my experience, knowing lisp (yay guix and emacs) definitely helps me write more elegant code in every language.

        I also have to explain almost every single thing I write in code review.

      • barsoap@lemm.ee
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 hours ago

        Nah it’s a different axis. Rust doesn’t have a GC, you do need to think about memory, it’s just that the compiler generally enforces things for you. You learn to think like borrowck thinks because you don’t want to get yelled at. Going back to C then you suddenly mistrust a lot of code a lot more, and rightly so.