Linux 6.13 Hits A "Tipping Point" With More Rust Drivers Expected Soon

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • phoronix
    Administrator
    • Jan 2007
    • 67167

    Linux 6.13 Hits A "Tipping Point" With More Rust Drivers Expected Soon

    Phoronix: Linux 6.13 Hits A "Tipping Point" With More Rust Drivers Expected Soon

    In addition to the USB updates and big staging flush merged yesterday for the Linux 6.13 kernel merge window, the "char/misc" pull was also honored for that catch-all of various kernel changes. With the char/misc pull there are some notable additions for those wanting to write kernel drivers within the Rust programming language...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
  • iustinp
    Junior Member
    • Dec 2022
    • 35

    #2
    I know some people might grumble at this, but I'm very happy to hear, especially Greg, saying this is the tipping point. I don't have much time for personal coding lately, but Rust is a pleasure to code in, especially for a systems language. Looking forward to even more Rust code!

    Comment

    • Beryesa
      Phoronix Member
      • Nov 2022
      • 59

      #3
      Hopefully a peaceful forum section as we progress beyond the classic, which some people seem to hate nevertheless

      Comment

      • kpedersen
        Senior Member
        • Jul 2012
        • 2693

        #4
        rust misc driver bindings and other rust changes to make misc drivers actually possible
        Jeez, they have been working on hand crafted (Clearly bindgen is not fit for purpose) Rust bindings for over a year now. Are they not there yet? Who is going to maintain them?

        This is all such a bad idea.

        Comment

        • cb88
          Senior Member
          • Jan 2009
          • 1345

          #5
          Originally posted by kpedersen View Post

          Jeez, they have been working on hand crafted (Clearly bindgen is not fit for purpose) Rust bindings for over a year now. Are they not there yet? Who is going to maintain them?

          This is all such a bad idea.
          Give it a rest.

          Comment

          • Volta
            Senior Member
            • Apr 2019
            • 2244

            #6
            Originally posted by kpedersen View Post

            Jeez, they have been working on hand crafted (Clearly bindgen is not fit for purpose) Rust bindings for over a year now. Are they not there yet? Who is going to maintain them?

            This is all such a bad idea.
            Yes, that will be fun when something breaks. This rust thing is against Linux principles, but since Linus and Hartman became clowns it's not surprising. In good kernel practices there's stated typedefs should be avoided. I bet rust abstractions are much worse than just typedefs in C. Oh, and this rust thing is built upon unstable API. When Hartman wasn't clown:


            Last edited by Volta; 30 November 2024, 01:39 PM.

            Comment

            • kpedersen
              Senior Member
              • Jul 2012
              • 2693

              #7
              Originally posted by Volta View Post

              Yes, that will be fun when something breaks.
              Indeed. When it all falls through and everything touching Rust needs to be ripped out again, even today's GNU Libre kernel will look featureful in comparison.

              Comment

              • oleid
                Senior Member
                • Sep 2007
                • 2472

                #8
                Oh look, Statler and Waldorf are already here.


                Originally posted by kpedersen View Post

                Jeez, [...]

                This is all such a bad idea.
                It would seem people which have lots of kernel experience seem to disagree.


                Originally posted by Volta View Post
                This rust thing is against Linux principles, but since Linus and Hartman became clowns it's not surprising.
                I don't agree, so they must be clowns.
                Last edited by oleid; 30 November 2024, 02:02 PM.

                Comment

                • bachchain
                  Senior Member
                  • Jun 2016
                  • 401

                  #9
                  Originally posted by kpedersen View Post
                  Jeez, they have been working on hand crafted (Clearly bindgen is not fit for purpose) Rust bindings for over a year now. Are they not there yet?
                  All bindgen does is translate C's types into Rust's stdlib equivalents of the C types. It doesn't help at all with all of the type-system level invariant encodings that are the whole reason RFL exists in the first place. It has to be done manually because actual thought needs to be put into what the rules for the correct usage of an API are. The reason it's taking so long is because even the C people themselves can't seem to figure out what the exact rules of their own APIs are (this work benefits them too).

                  Who is going to maintain them?
                  ...The RFL maintainers? Was that not obvious?

                  Comment

                  • amity
                    Junior Member
                    • Apr 2024
                    • 15

                    #10
                    Originally posted by iustinp View Post
                    I know some people might grumble at this, but I'm very happy to hear, especially Greg, saying this is the tipping point. I don't have much time for personal coding lately, but Rust is a pleasure to code in, especially for a systems language. Looking forward to even more Rust code!
                    I've tried getting into it but the syntax is just godawful to me, and if I can't stand to look at it, I cannot code with it. As a C++ developer I am very much looking forward to Swift gaining popularity instead.

                    Comment

                    Working...
                    X