Rust code in Linux

It's over for cniles, the first Linux kernel module written in Rust has been merged into linus' linux repository.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cbe0e415089636170aa6eb540ca4af5dc9842a60
>net: phy: add Rust Asix PHY driver
>This is the Rust implementation of drivers/net/phy/ax88796b.c. The
features are equivalent. You can choose C or Rust version kernel
configuration.

Beware Cat Shirt $21.68

Rise, Grind, Banana Find Shirt $21.68

Beware Cat Shirt $21.68

  1. 2 months ago
    Anonymous

    What was wrong with the C one

    • 2 months ago
      Anonymous

      it is written in C

    • 2 months ago
      Anonymous

      It wasn't transgender enough.

    • 2 months ago
      Anonymous

      *C-rashes* and nobody willing to maintain it

      • 2 months ago
        Anonymous

        literally buy an ad Rust dev, you've been shilling your lang far too long

        • 2 months ago
          Anonymous

          I don't even code (or know) Rust, but at some point you reach such high complexity in a program that you run out of good C devs which means constant segfaults and CVEs from that point on.

          • 2 months ago
            Anonymous

            We are talking about the linux kernel here you know

          • 2 months ago
            Anonymous

            Yes that is why it was inevitable. Linux is the kernel that always wants to have the newest shiny feature that hardware companies come up with, it has to support all types of architecture, drivers for almost any device on earth ... it is inevitable that complexity will be ever-increasing then. Now the BSD family is a bit more conservative and not nearly complex enough so I predict that they can continue to use C for many years to come

          • 2 months ago
            Anonymous

            Linux is very safe for a monolith, the standards are moon high.

          • 2 months ago
            Anonymous

            > kernel module
            lmao.
            > It's over for cniles
            now that's coping.

            *C-rashes* and nobody willing to maintain it

            > just lie and everything will be just fine
            this is why people find rust and its rust trannies too repulsive to even talk to or bother reading their abhorrent hot takes about things they barely understand.

          • 2 months ago
            Anonymous

            >words words words
            no rebuttal, filtered

  2. 2 months ago
    Anonymous

    You know you can not compile most Rust code without access to the internet, right?

    This is another way to keep control over Linux users, you will no longer be able to use it without being controlled by your ISP.

    • 2 months ago
      Anonymous

      It's true, the Rust compiler sends the source code to troony controlled servers where they check if it contains problematic constants (e.g. CAFEBABE).

      • 2 months ago
        Anonymous

        Fake news. It doesn't send code anywhere and the problematic constant thing only applies to the Rust compiler itself.

  3. 2 months ago
    Anonymous

    Why does Zircon not use Rust? Google is a founding company and actively pushed for it to be included to the Linux kernel?

    • 2 months ago
      Anonymous

      >Google is one person

      • 2 months ago
        Anonymous

        I reckon the Linux and Zircon kernel developers at Google are indeed not completely separated like say Youtube frontend devs and kernel devs.

    • 2 months ago
      Anonymous

      https://nitter.cz/cpuGoogle/status/1397265884251525122

  4. 2 months ago
    Anonymous

    >NOOOOOO YOU CAN'T JUST REWRITE THE SOFTWARE EQUIVALENT OF PERFECTLY FINE ASBESTOS

  5. 2 months ago
    Anonymous

    >NOOOOO MY RUST IS THE BETTER LANGUAGE YOUR C I ASBESTOS

  6. 2 months ago
    Anonymous

    >features are equivalent
    >rust does literally nothing new ever
    Ok, so I'll just keep using the C version if I ever need to enable it.

  7. 2 months ago
    Anonymous

    lines of code does not equal complexity

    • 2 months ago
      Anonymous

      yes it does, for lines of actual written code (aka not comments or some autogenerated file)

      • 2 months ago
        Anonymous

        My one line perl scripts must be pretty simple and easy to understand then (they are not, and you are moronic)

        • 2 months ago
          Anonymous

          I meant normal code. le heckin special one liners need not apply and are forbidden in production code anyway.

          • 2 months ago
            Anonymous

            You can either write 3 lines very skillfully, or write 5 lines more clearly. 3 is more complex in that case.
            Especially true with bithacks and stuff, people just don't know what they're looking at unless it's spelled out for them.

          • 2 months ago
            Anonymous

            Linux kernel and larger software has a very clear policy on readability and code style

  8. 2 months ago
    Anonymous

    >rust code
    >its another driver
    Its meaningless

  9. 2 months ago
    Anonymous

    Good, this is how you do a rewrite. Start small and prove there are no regressions at every step.

Comments are closed.