• ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    73
    arrow-down
    26
    ·
    2 days ago

    I’m not sure why they feel it’s Linus’ responsibility to make Rust happen in the kernel. I’m certainly not happy someone is being harassed, but none of this is the fault of the Linux Foundation or the people that have been working on the kernel for decades.

    If Rust is going to happen, then it’ll happen. Or fork it and make a Rust Linux with blackjack and hookers, and boy, will everyone left behind feel silly that they didn’t jump on the bandwagon. But nobody has to make your dreams their focus or even interact with it if they don’t want to. And these social media outbursts aren’t accomplishing what they think they’re accomplishing.

    • patatahooligan@lemmy.world
      link
      fedilink
      arrow-up
      22
      arrow-down
      2
      ·
      1 day ago

      I’m not sure why they feel it’s Linus’ responsibility to make Rust happen in the kernel.

      That’s not what’s being said here, as far as I can tell. Linus is not expected to somehow “make Rust happen”. But as a leader, he is expected to call out maintainers who block the R4L project and harass its members just because they feel like it. Christoph Hellwig’s behavior should not be allowed.

      I’m not saying Marcan is necessarily correct, to be clear. It might well be that Linus chose to handle the issue in a quieter way. We can’t know whether Linus was planning on some kind of action that didn’t involve him jumping into the middle of the mailing list fight, eg contacting Christoph Hellwig privately. I’m merely pointing out that maybe you misunderstood what Marcan is saying.

      Or fork it and make a Rust Linux with blackjack and hookers, and boy, will everyone left behind feel silly that they didn’t jump on the bandwagon.

      That’s what they’re doing. But if you read the entire post carefully, he explains why maintaining a fork without eventually upstreaming it is problematic. And it’s not like they’re forcing their dream on the linux project, because the discussions have already been had and rust has officially been accepted into the kernel. So in the wider context, this is about individual maintainers causing friction against an agreed-upon project they don’t like.

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      65
      arrow-down
      10
      ·
      2 days ago

      If Rust is going to happen, then it’ll happen.

      How can it happen if individual maintainers say they’ll do everything in their power to keep Rust out of the kernel? There’s fundamentally no way forward. The R4L devs already gave every commitment they could, but some maintainers fundamentally don’t want it.

      And before anyone brings it up: no, the maintainers weren’t asked to touch Rust code or not break Rust code or anything else.

      • vanderbilt@lemmy.world
        link
        fedilink
        arrow-up
        20
        arrow-down
        7
        ·
        2 days ago

        Fact is Rust isn’t ready for every part of the kernel. C/Rust interop is still a growing pain for Linux and troubleshooting issues at the boundary require a developer to be good at both. It’s an uphill battle, and instead of inciting flame wars they could have fostered cooperation around the parts of the kernel that were more prepared. While their work is appreciated and they are incredibly talented, the reality is that social pressures are going to dictate development. At the end of the day software is used by people. Their expectations are not law, but they do need addressed to preserve public opinion.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          36
          arrow-down
          5
          ·
          2 days ago

          Again: what cooperation is possible when the maintainer says “I’ll do everything in my power to keep Rust out of the kernel”? When they NACK a patch outside of their Subsystem?

          • aksdb@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 day ago

            Can a maintainer really NACK any patch they dislike? I mean I get that Hellwig said he won’t merge it. Fine. What if for example Kroah-Hartman says “whatever, I like it” and merges it nonetheless in his tree?

            • LeFantome@programming.dev
              link
              fedilink
              arrow-up
              3
              ·
              1 day ago

              I doubt Greg is pulling in Rust until it has been through the mainline. That said, Linus can merge anything he wants.

              • aksdb@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                1 day ago

                It was an example. I don’t have a fucking clue how all the maintainers are named.

                The main question was: why can a maintainer NACK something not in their responsibility? Isn’t it simply necessary to find one maintainer who is fine with it and pulls it in?

                Or even asked differently: shouldn’t you need to find someone who ACKs it rather than caring about who NACKs it?

            • catloaf@lemm.ee
              link
              fedilink
              English
              arrow-up
              1
              ·
              22 hours ago

              Yes, but asking him in this case was basically a courtesy, the code isn’t going into anything he manages. He can reject it, but that’s an opinion, not a decision. It can still be merged if the regular maintainer (or someone senior like Linus himself) approves.

          • Tgo_up@lemm.ee
            link
            fedilink
            English
            arrow-up
            4
            arrow-down
            9
            ·
            1 day ago

            Can you quote where that was said?

            I’ve been following this debate for a bit and as far as I can tell it’s not so much that they’ll do what they can to keep rust out but more to make sure that the people who want to develop in rust are the ones who end up maintaining that part of the code and not the current maintainers.

            • FooBarrington@lemmy.world
              link
              fedilink
              arrow-up
              25
              arrow-down
              1
              ·
              edit-2
              1 day ago

              Sure: https://lore.kernel.org/rust-for-linux/[email protected]/

              I accept that you don’t want to be involved with Rust in the kernel, which is why we offered to maintain the Rust abstraction layer for the DMA coherent allocator as a separate component (which it would be anyways) ourselves.

              Which doesn’t help me a bit. Every additional bit that the another language creeps in drastically reduces the maintainability of the kernel as an integrated project. The only reason Linux managed to survive so long is by not having internal boundaries, and adding another language complely breaks this. You might not like my answer, but I will do everything I can do to stop this.

              Can’t get more explicit than this.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          6
          arrow-down
          7
          ·
          2 days ago

          Which means unnecessary duplication of code, because every driver has to track kernel Interfaces separately. Why? What’s the advantage?

      • ubergeek@lemmy.today
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        6
        ·
        1 day ago

        It will happen via it being better, and being shown to be better. And it will take time to unseat 30 years of C.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          15
          ·
          1 day ago

          Not if they’re being prevented from showing to be better by C devs who, literally, “will do everything [they] can do to stop this”.

          Nobody is trying to unseat 30 years of C.

          • ubergeek@lemmy.today
            link
            fedilink
            English
            arrow-up
            6
            arrow-down
            10
            ·
            1 day ago

            Nobody prevents anyone from maintaining their own tree, thereby proving it works.

            And yes, Rust is trying to replace C, in the kernel. Let’s start off by being honest here, k?

            • LeFantome@programming.dev
              link
              fedilink
              arrow-up
              5
              arrow-down
              1
              ·
              edit-2
              1 day ago

              If we are going to be honest, let’s not be misleading.

              Nobody is looking to replace C in the kernel just to switch out the language. This is not a “rewrite it in Rust” initiative.

              What the R4L folks want is to be able to write “new” code in Rust and for that code to call into the C parts of the kernel in an idiomatic way (idiomatic for Rust). So they need to create Rust interfaces (which they, the R4L side, are doing). This whole controversy is over such an example.

              At this point, we are talking about platform specific drivers.

              Now, new kernel code is written all the time. Sometimes newer designs replace older code that did something similar. So yes, in the future, that new code may be written in Rust and replace older code that was written in C. This will be a better design replacing an inferior one, not a language rewrite for its own sake.

              Core kernel code is not getting written in Rust for a while though I do not think. For one thing, Rust does not have broad enough architecture support (platforms). Perhaps if a Rust compiler as part of GCC reaches maturity, we could start to see Rust in the core.

              That is not what is being talked about right now though. So, it is not a reasonable objection to current activity.

              • ubergeek@lemmy.today
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                5
                ·
                23 hours ago

                If R4L authors want to use Rust so badly, then still:

                Maintain your own tree! Let’s see how simple and clean these interfaces are over the longer haul.

                They will get mainlined if they are technically superior.

                • LeFantome@programming.dev
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  58 minutes ago

                  I doubt you care but others may want to know that you just hit the nail on the head. Just not the way you think.

                  All the Rust folks want is for “technically superior” solutions to be accepted on their merits. The exact problem is that some influential Linux folks have decided that “technically superior” is not the benchmark.

                  Take the exact case that has led to the current debate. The maintainer said explicitly that he will NEVER accept Rust. It was NOT a technical argument. It was a purely political one.

                  In the Ted Tso debacle. a high profile Rust contributor quite Linux with the explicit explanation that the best technical solutions were being rejected and that the C folks were only interested in political arguments instead of technical ones.

                  If it was true that “technically superior” solutions were being accepted, the R4L team would be busy building those instead of arguing.

            • FooBarrington@lemmy.world
              link
              fedilink
              arrow-up
              18
              arrow-down
              3
              ·
              1 day ago

              Nobody prevents anyone from maintaining their own tree, thereby proving it works.

              Yet the Linux project officially OK’d the R4L experiment, so why does this stuff still have to be kept out-of-tree?

              And yes, Rust is trying to replace C, in the kernel.

              No, Rust is not trying to replace C in the kernel.

              Let’s start off by being honest here, k?

              Sure, why don’t you give it a try?

              • ubergeek@lemmy.today
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                9
                ·
                1 day ago

                Yes, it’s been ok’d. That means it’s ok to go in, once proven.

                So, R4L peeps need to figure out how to convince maintainers that is works.

                So, go do it?

                • FooBarrington@lemmy.world
                  link
                  fedilink
                  arrow-up
                  13
                  ·
                  1 day ago

                  How do you convince a maintainer that NACKs a PR outside his subsystem while explicitly saying:

                  I will do everything I can do to stop this

                  Please explain how one can convince such an individual.

                  • ubergeek@lemmy.today
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    arrow-down
                    9
                    ·
                    1 day ago

                    I already did: maintain your own tree, and prove it out, that it’s better.

                    If the maintenance load is so light, it’ll be easy work to do, to keep the tree in line with upstream.

                    If it’s so obviously technically better, people will see it, and more people will push to mainline your tree.

                    It’s work. And you need to convince others on technical merit. So, do the work.

                    Just like what folks did with OpenBSD, the grsecurity tree.

    • arisunz@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      35
      arrow-down
      2
      ·
      2 days ago

      why they feel it’s Linus’ responsibility to make Rust happen in the kernel

      who does? are you talking about marcan? because as far as i can see, what they’re asking for is for linus to make a stance and actually say whether R4L is a thing they want or not. because linus’ attitude so far has been “let’s wait and see” which hasn’t been all that helpful, as said in the blog post.

      • vanderbilt@lemmy.world
        link
        fedilink
        arrow-up
        14
        arrow-down
        2
        ·
        2 days ago

        Ultimately Linus’ opinion here does not matter in the positive. He can say Rust in kernel is good, but that does not summon the skill and work to make it happen. He can say it’s bad and quash it, at the potential expense of Linux’s future. His position of avoiding an extreme is a pragmatic one. “Let them come if they may, and if they do not it was less a loss for us.”

        • arisunz@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          22
          arrow-down
          3
          ·
          2 days ago

          see, i could maybe agree with this if it weren’t for the amazing work from R4L that already has been and continues to be done, despite subsystems maintainers putting their foot down and going “Not In My Back Yard, bucko!”. how many more maintainers does R4L have to lose before Linus realizes he might need to take a stance as a project lead?

        • JuxtaposedJaguar@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          23 hours ago

          Linus can merge whatever patches he wants to, and the stonewalling subsystem maintainers would have to deal with it–like he did with the eBPF scheduler. R4L maintainers already wrote the patches, they literally just needed to be merged.

    • esa@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      arrow-down
      3
      ·
      edit-2
      1 day ago

      Thing is, there is already Rust in Linux, and Torvalds wants more, faster. He’s being sabotaged by C purists, who at this point should stop acting unprofessionally, or at the very least make their own “only C” fork if they disagree with his leadership so much.

    • MazonnaCara89@lemmy.ml
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      2 days ago

      I’m not placing blame on the Linux Foundation, Linus, or anyone else for that matter. However, I believe that if Linus has publicly endorsed the use of Rust in the kernel, that decision is already largely set in motion. On the other hand, if the community collectively opposes the integration of Rust with C and no action is taken to address these problems, and everyone say no, then there is little to no reason to make the initial statement.

      Much of the work being produced by Rust developers seems to struggle, often because it’s not made in C and because of maintainers saying “No I don’t want any rust code near my C code”.

      I recognize that there are various technical factors influencing this decision, but ultimately it was the creator’s choice to support it.

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        2
        ·
        edit-2
        2 days ago

        Isn’t it reasonable for a maintainer to say “no rust here” when they don’t know rust, don’t want to learn it, and have decades of experience in C, and are maintaining that part of the system

        • LeFantome@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          53 minutes ago

          The project has said it is a goal to move to a dual language model. So, no, it is not reasonable.

          What would be reasonable would be technical arguments or pragmatic logistical concerns with the goal of finding solutions. What would be reasonable would be asking for and accepting help.

          None of the reasonable stuff is happening. So, it not reasonable.

        • catloaf@lemm.ee
          link
          fedilink
          English
          arrow-up
          13
          ·
          1 day ago

          Yes.

          But that’s not what’s happening here. The guy who said no is not the maintainer of the rust code, and is not expected to touch the rust code at all.

      • srecko@lemm.ee
        link
        fedilink
        arrow-up
        12
        arrow-down
        4
        ·
        2 days ago

        It’s also his legitimate choice to wait. He can’t see the best way forward and is deciding to wait on his decission or let the community decide instead of him. As much as we like to think of him as autocrat in some way, he respects people that work on kernel and he respects their time. The smartest move is often to wait on a decision. And even if it’s not a smartest move in this case, it can still be better than making a wrong decission that will demoralize the community even more.

    • Ledivin@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      7
      ·
      edit-2
      1 day ago

      And these social media outbursts aren’t accomplishing what they think they’re accomplishing.

      I’m extremely technical, but not actively into Linux, though I’ve set up various distros dozens up times. These posts have driven me away from Linux in an extremely hard way - anyone with opinions like the Kernel team simply don’t deserve support, and Linus is clearly past his prime and making bad decisions. This has shown me that Linux is going to (likely already has) slowly stop improving due to its explicitly anti-progress leadership. Until a fork with good leaders manages to take a real market share, the OS will stagnate.

      I’m sure this is a minority opinion, but to claim that the social media blitz hasn’t had its intended effect is objectively false. Fuck the kernel team.

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        1 day ago

        Linus is pro-Rust. It is not clear from what you wrote that you realize that. He has merged plenty of Rust code. I personally expect him to merge the change that caused all this current drama (though I could clearly be wrong about that).

        Right or wrong, this is how Linux kernel dev has always worked. How long did it take for real time to get in? How smoothly is the bcachefs merge going? Have you read any of the GPU driver chatter?

        Honestly though, it is not just the kernel. How much different is the Wayland scene?

        I am hardly defending Linux here by the way. I think the maintainers are blocking progress. I am merely pointing out that it is hardly new or unique.

        Anyway, RedoxOS is quite progressive. They would probably love help from anybody that finds Linux kernel dev too stodgy.