Linux 6.14 Looks To Land Rust PCI / Platform Device Driver Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • darcagn
    Phoronix Member
    • May 2021
    • 66

    #11
    Originally posted by Catmen View Post

    Then rewrite the kernel to RUST if it's that "mature"...​ ? )
    Yes. Let's do it.

    Comment

    • bacteriamanicure
      Phoronix Member
      • Feb 2024
      • 68

      #12
      Originally posted by Catmen View Post

      Then rewrite the kernel to RUST if it's that "mature"...​ ? )
      And give you 20 more years to blab about how Redox isn't NASA grade and the new Rust bindings aren't being used yet?

      How about you port Linux to C++

      Comment

      • dragon321
        Senior Member
        • May 2016
        • 880

        #13
        Originally posted by Catmen View Post

        Then rewrite the kernel to RUST if it's that "mature"...​ ? )
        No need to when we can add Rust as supported language and implement new things with it.

        Comment

        • YBoy360
          Junior Member
          • Jun 2023
          • 13

          #14
          Originally posted by dragon321 View Post

          Unix was rewritten to C just one year after C was created years before first C standard was established. Rust is way more mature than C was back then. It's good thing that Unix developers didn't listen to "skeptical" people back then and continued their work.
          What are you talking about: isn't C created for that purpose ? It has more to do with being "realistic" than "skeptical" ...

          C is almost a machine language. It is simple to write compiler for it, simple to learn. It has a stable ABI. Forcing to write bindings for all languages is immature IMO, and will be forever ...

          Comment

          • duby229
            Senior Member
            • Nov 2007
            • 7783

            #15
            Originally posted by YBoy360 View Post

            What are you talking about: isn't C created for that purpose ? It has more to do with being "realistic" than "skeptical" ...

            C is almost a machine language. It is simple to write compiler for it, simple to learn. It has a stable ABI. Forcing to write bindings for all languages is immature IMO, and will be forever ...
            It's simple to write a C compiler that generates binaries that you have no idea how they will behave. It's much, much harder to write a C compiler with somewhat predictable results. Even after all of these decades there is still no C compiler that doesn't produce undefined behavior....

            Comment

            • ahrs
              Senior Member
              • Apr 2021
              • 587

              #16
              Originally posted by Catmen View Post

              Then rewrite the kernel to RUST if it's that "mature"...​ ? )
              Yes, re-write all of it. EVERY. SINGLE. DRIVER. Maybe you could re-write the original Linux kernel but it's too big now. There's more chance of the kernel adopting C++ than being re-written in Rust.

              Comment

              • CharlieB
                Junior Member
                • Dec 2024
                • 4

                #17
                Why PCI framework ?

                It's ancient. Who even uses it anymore ?
                Or does it share perhaps some things with PCIe framework ?

                Comment

                • bytemaniak
                  Junior Member
                  • Feb 2024
                  • 9

                  #18
                  Originally posted by Catmen View Post

                  Then rewrite the kernel to RUST if it's that "mature"...​ ? )
                  This isn't the gotcha you think it is. The Linux kernel codebase is MASSIVE. Tens of millions of lines of code if you include all drivers.

                  Comment

                  • dragon321
                    Senior Member
                    • May 2016
                    • 880

                    #19
                    Originally posted by YBoy360 View Post

                    What are you talking about: isn't C created for that purpose ? It has more to do with being "realistic" than "skeptical" ...

                    C is almost a machine language. It is simple to write compiler for it, simple to learn. It has a stable ABI. Forcing to write bindings for all languages is immature IMO, and will be forever ...
                    Just like Rust. It was also created for that purpose and others.

                    Rust is also compiled to machine code, all memory safety checks are done during build, runtime is not much more complicated than C runtime. C also didn’t have stable ABI when Unix was rewritten in it, if that wasn’t a bad idea back then why would it be now with much more mature language? I’m not sure what do you mean by ”write bindings for all languages” the only supported languages in Linux kernel are C and Rust so there won’t be bindings for ”all languages”, just for Rust.

                    Comment

                    • bytemaniak
                      Junior Member
                      • Feb 2024
                      • 9

                      #20
                      Originally posted by CharlieB View Post
                      Why PCI framework ?

                      It's ancient. Who even uses it anymore ?
                      Or does it share perhaps some things with PCIe framework ?
                      I think in this case the PCI subsystem also encompasses PCIe

                      Comment

                      Working...
                      X