While Linux 7.0 is the next kernel version solely over Linus Torvalds’ numbering preference, there is a notable symbolic change that was sent in overnight for this new kernel merge window: formally concluding the “Rust experiment” with upstream kernel developers now in acceptance that Rust for the Linux kernel is here to stay.

The patch was talked about back in December that the Rust experiment is over and it’s here to stay. There are already uses for Rust in production environments, some Linux distributions shipping with Rust kernel code, and millions of Android devices also using it.

  • Lembot_0006
    link
    fedilink
    arrow-up
    4
    arrow-down
    46
    ·
    2 days ago

    Well, it is time to investigate Hurd more closely, I suppose.

      • Lembot_0006
        link
        fedilink
        arrow-up
        3
        arrow-down
        63
        ·
        2 days ago

        I don’t see any future for Rust and forcing such ugly language in the kernel might lead to problems.

        Linus is to blame here more than Rust. C++ would be much more straightforward and welcomed by the kernel community update from C. And Linus is afraid of C++.

        Rust will kill Linux if it persists there long enough .

        • [object Object]@lemmy.world
          link
          fedilink
          arrow-up
          10
          arrow-down
          1
          ·
          1 day ago

          Solid bait there. 🍿

          “C++ would be straightforward and welcomed”, amazing lmao. How do you even come up with this.

        • RustySharp
          link
          fedilink
          arrow-up
          50
          arrow-down
          2
          ·
          2 days ago

          I don’t see any future for seatbelts, and forcing such an ugly implement in cars might lead to problems.

          Seatbelts will kill cars if it persists there long enough.

          • olympicyes@lemmy.world
            link
            fedilink
            English
            arrow-up
            16
            ·
            2 days ago

            The upper middle class family of a childhood friend refused to wear seatbelts (1980s) because mom was injured by her seatbelt in an accident. I remember being surprised at their approach to risk reduction.

            • tomenzgg@midwest.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              19 hours ago

              My dad knew someone who survived a car crash because he went through the windshield because he wasn’t wearing a seatbelt and, if he had, he would’ve been trapped in the car and (in this particular crash) died; he refuses to wear a seatbelt since.

              My father was, likewise, surprised.

          • ByteJunk@lemmy.world
            link
            fedilink
            arrow-up
            18
            arrow-down
            1
            ·
            2 days ago

            I don’t see any future for halos in F1 cars, and forcing such an ugly implement in cars might lead to problems.

            Halos will kill F1 if they persist there long enough.

            • RustySharp
              link
              fedilink
              arrow-up
              2
              ·
              2 days ago

              Haha I was fully expecting this comment when I wrote it. Hi fellow c/fuckcars lurker 👋🏽

        • arcterus@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          32
          arrow-down
          2
          ·
          2 days ago

          I don’t see any future for C++ and forcing such ugly language in the kernel might lead to problems.

          Lembot_0006 is to blame here more than C++. Zig/D/Hare/whatever would be much more straightforward and welcomed by the kernel community update from C. And Lembot_0006 is afraid of Rust.

          C++ will kill Linux if it persists there long enough .

          • wonderingwanderer@sopuli.xyz
            link
            fedilink
            arrow-up
            5
            ·
            2 days ago

            I don’t see any future for Zig/D/Hare and forcing such ugly language in the kernel might lead to problems.

            Arcterus is to blame here more than Zig/D/Hare. Fennel would be much more straightforward and welcomed by the kernel community update from C. And Arcterus is afraid of Fennel.

            Zig/D/Hare will kill Linux if it persists there long enough .

            • lad
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 day ago

              Sounds interesting:

              Fennel is a programming language that brings together the simplicity, speed, and reach of Lua with the flexibility of a lisp syntax and macro system.

              • [object Object]@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                18 hours ago

                Lua itself is great, it runs circles around Python in speed even without LuaJIT, and especially the startup time is almost nonexistent, which is important for scripting. Lisp adds convenience like having everything be an expression and the ability to stick an (if) anywhere for a ternary. And since Lua is so snappy, Fennel has no noticeable overhead. Iirc the Lisp code is compiled to Lua, so long-term there’s practically no overhead at all.

                Although it’s been a while since I’ve used Fennel, so don’t remember if it has any nasty limitations.

                There’s also a similar thing for Python, called Hy.

              • wonderingwanderer@sopuli.xyz
                link
                fedilink
                arrow-up
                1
                ·
                1 day ago

                It does sound interesting, but I was mostly joking just to extend the copypasta.

                I don’t know enough about programming to know whether it’s even suitable for writing a kernel. As far as I’m aware, Lua is mostly used for embedding scripts like in games, but the engines themselves are better written in C or Rust. I would assume a similar concept applies for writing a Kernel.

                Perhaps it would have made more sense if I said Fortran or PS-Algol. It would have been more clear that it was a shitpost

                • [object Object]@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  18 hours ago

                  Lua doesn’t have capabilities for direct access to the memory and such, and those would need to be added by either embedding Lua in C or modifying the interpreter, which is, of course, written in C. So it’s indeed mostly for scripting. Although there’s a game engine/framework Löve, where the entire game can be written in Lua.

                • lad
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 day ago

                  I expect it’s not suited for kernel, yeah, but it sounds like a fun thing to try other than for kernel stuff

        • tyler
          link
          fedilink
          arrow-up
          37
          arrow-down
          1
          ·
          2 days ago

          This has to be one of the most brain dead comments I’ve read about Linux…. ever.

          • bitcrafter
            link
            fedilink
            arrow-up
            22
            ·
            2 days ago

            I think you mean: it is one of the most brain dead comments you have ever hurd about Linux.