• ubergeek@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days 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
      0
      ·
      9 days 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
        0
        ·
        9 days 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
          1
          ·
          edit-2
          9 days 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
            0
            ·
            9 days 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
              ·
              8 days 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.

                • catloaf@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  8 days ago

                  I don’t know if the code marcan was talking about is still going to be merged. It wasn’t actually being blocked, but that doesn’t mean it was approved either.

                  • ubergeek@lemmy.today
                    link
                    fedilink
                    English
                    arrow-up
                    0
                    ·
                    8 days ago

                    So, not blocked, merged in, already maintaining a tree, just one maintainer isn’t sold yet on the implementation.

                    Im just not seeing a problem then? Aside from the person experiencing burnout, which I get. But burnout may not indicate a cultural problem, either. Especially if the person is coming off of a rough year, personally.