cross-posted from: https://lemmy.world/post/25857381

Hellwig is the maintainer of the DMA subsystem. Hellwig previously blocked rust bindings for DMA code, which in part resulted in Hector Martin from stepping down as a kernel maintainer and eventually Asahi Linux as a whole.

  • fmstrat@lemmy.nowsci.com
    link
    fedilink
    English
    arrow-up
    44
    arrow-down
    1
    ·
    1 day ago

    A lot of people commenting on this seem to have gaps in their knowledge of what happened. I highly recommend reading the linked email, as it is both short and has valuable context.

    • Arthur Besse@lemmy.mlM
      link
      fedilink
      arrow-up
      8
      arrow-down
      2
      ·
      1 day ago

      A lot of people commenting on this seem to have gaps in their knowledge of what happened

      We’re in a Linus-email-🍿-thread, so that kind of goes without saying doesn’t it? 😂

      • KubeRoot@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        On the bottom of the page you have a tree representation of replies, with clickable links to each message. The layout might not work well on mobile with limited screen width though, but you can just click through them.

    • spooky2092@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      29
      ·
      1 day ago

      I really appreciated him saying ‘I don’t want yes men, I need people to call me on my bullshit, but I’m calling you out on yours’.

      I read through the next few replies, and it seems like the anti-rust maintainer just has an axe to grind and can’t stand people working in a language they don’t understand.

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        22 hours ago

        He understands Rust and claims to like it. He simply disagrees with the decision to have a mixed language kernel and is trying to unilaterally stop it from happening.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      106
      arrow-down
      2
      ·
      edit-2
      2 days ago

      He is totally correct and it is great to see him finally step in to settle this drama. Hopefully it will reduce the level of noise going forward.

  • catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    137
    arrow-down
    10
    ·
    2 days ago

    Gee Linus you think you could’ve fucking said something before it got to this point?

    • TimeSquirrel@kbin.melroy.org
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      1 day ago

      I can relate. I can emphasize with someone who’s learned every nuance of a language, and after 30-40 years suddenly these kids come in with their strange hieroglyphics slowly replacing everything you’ve worked on.

      • HiddenLayer555@lemmy.ml
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 day ago

        Except that’s literally the reality with computers. Everything evolves and things go obsolete. I’m sure the COBOL and Fortran programmers were pissed when the kids started using C too.

    • Semperverus@lemmy.world
      link
      fedilink
      English
      arrow-up
      33
      arrow-down
      17
      ·
      2 days ago

      It literally wasn’t about Rust specifically though. Christoph literally said it was about anything that was not C, including assembly, C++, brainfuck, or whatever, entering the kernel. Christoph likes Rust. Christoph (rightfully) does not like mixed language codebases for projects as large and important as Linux

      • gomp@lemmy.ml
        link
        fedilink
        arrow-up
        25
        arrow-down
        3
        ·
        2 days ago

        (rightfully) does not like mixed language codebases for projects as large and important as Linux

        You make it sound like it’s a matter of taste rather than a technical one (and I suspect it actually might be just about taste in the end)

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

          Its a little of column A, little of column B type situation.

          Yes, some of it is his taste, but that taste is coming from a technical place. Primarily long term maintainability of the project.

          I realize what Linus came out and said outlines that no code is entering Christoph’s part of the project, but Christoph is playing goalie and needs to make sure that never happens in order to keep everything working correctly for a very long time.

          Maybe the DMA module gets rewritten completely in Rust one day, but until then, rust modules interfacing with a C-only component seems to be the best for long-term maintenance.

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

          It appears so now, yes, but when the drama initially came out it sounded like they were asking for a tiny amount of rust in the kernel to make it work, or if not rust, changing the C to tailor it specifically to the rust. Which I think is a reasonable thing to be concerned about from a maintainability perspective long-term, especially if the rust developers decide to leave randomly (Hector’s abrupt quitting over this very issue is a prime example).

          • Norah (pup/it/she)@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            17 hours ago

            A bunch of people were trying to make that argument to explain Hellwig’s disagreement, but it was never the case. His argument amounted to “you can’t make create unified code to reference mine, you must have each driver maintain its own independent calls to my code”.

      • Serinus@lemmy.world
        link
        fedilink
        arrow-up
        7
        arrow-down
        5
        ·
        1 day ago

        Rust is straight up better than C. It’s safer and less prone to errors.

        It’s not feasible to convert the entire Linux codebase at once. So your options are to either have a mixed codebase, or stick with effectively Cobol into 2020.

        • Semperverus@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          3
          ·
          edit-2
          1 day ago

          Rust is great, but you are not thinking from a long-term project perspective. Rust is safer, but Linux needs to be maintainable or it dies.

          Based on what you’re saying, the only way its going to reasonably be converted to Rust is if someone forks Linux and matches all the changes they’re making in C as they happen but converts it all to Rust. Once its all converted and maintainability has been proven, a merge request would need to be made.

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

            That is not how it will happen, if it ever fully converts at all.

            Rust will first be added in a way that allows it to run on top of existing C code. That is what we are seeing here with Rust being used to write drivers.

            As sub-systems get overhauled and replaced, sometimes Rust will be chosen as the language to do that. In these cases, a sub-system or module will be written in Rust and both C code and Rust code will use it (call into it).

            The above is how the Linux kernel may migrate to Rust (or mostly Rust) over time.

            As devs get more comfortable, there may be some areas of the kernel that mix C and Rust. This is likely to be less common and is probably the most difficult to maintain.

            Nobody wants to rewrite working, solid kernel modules in Rust though. So, it seems very likely that the kernel will remain mostly C for a long, long time. There are no doubt a few areas though where Rust will really shine

            No need for a fork or a rewrite.

  • jcg@halubilo.social
    link
    fedilink
    arrow-up
    13
    arrow-down
    2
    ·
    2 days ago

    Anyone got more context on this I can read through? I haven’t kept up with this other than Linus’s notorious attitude.