Announcement

Collapse
No announcement yet.

Rust 1.78 Upgrade For Linux 6.10, Dropping In-Tree "alloc" Fork To Save ~10k Lines

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rust 1.78 Upgrade For Linux 6.10, Dropping In-Tree "alloc" Fork To Save ~10k Lines

    Phoronix: Rust 1.78 Upgrade For Linux 6.10, Dropping In-Tree "alloc" Fork To Save ~10k Lines

    There's another Rust upgrade coming for the Linux 6.10 kernel to bump the Rust version baseline required for building the Rust in-tree kernel components. This raising of the baseline will continue until a suitable minimum version is achieved where official Rust compiler "just works" well with the Rust'ed kernel bits. The Rust upgrade in Linux 6.10 also does away with its in-tree "alloc" fork for big code savings and simplifying maintenance...

    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

  • #2
    What's wrong with Rust in kernels?

    Comment


    • #3
      Originally posted by timofonic View Post
      What's wrong with Rust in kernels?
      The main issue is that there's a number of missing features in current Rust that makes kernel integration a lot harder than it could be

      Features that we would like to see: Remove the need for defining __rust_* methods. Issue: #68. PR: rust-lang/rust#86844 (1.71). Make unsafe_op_in_unsafe_fn the default dialect in a future edition. ...


      From what I can tell they tend to be ergonomics issues, not being able to squeeze out enough performance, or things that need to be guaranteed but aren't

      Comment


      • #4
        Originally posted by timofonic View Post
        What's wrong with Rust in kernels?
        Nothing wrong, it's just work in progress. Either look at it, or don't, and observe the finished result when the time comes.

        Comment


        • #5
          <Offtopic>
          Michael

          For your attention: https://forums.developer.nvidia.com/...rietary/292698

          </Offtopic>

          Comment


          • #6
            Originally posted by avis View Post
            <Offtopic>
            Michael

            For your attention: https://forums.developer.nvidia.com/...rietary/292698

            </Offtopic>
            Good questions and for me it sadly shows they have no / prevent a more open strategy. Honestly I am quite confused what that is all about with there being so much open, closed variance and corner cuttings, all the different drivers for a specific use and questionable compatibility with each other and the hardware. It's a total mess with no clear course to me.

            Comment


            • #7
              I'm just going to say it, I wish the kernel developers would stop the flirting with Rust that they have been engaging in and either port the kernel completely over to Rust or stick with C.

              But pick a lane already and move on.

              Comment


              • #8
                Originally posted by sophisticles View Post
                I'm just going to say it, I wish the kernel developers would stop the flirting with Rust that they have been engaging in and either port the kernel completely over to Rust or stick with C.

                But pick a lane already and move on.
                You can't even begin to discuss moving over (which will never happen) until you have proven viability first.

                Comment


                • #9
                  Originally posted by sophisticles View Post
                  I'm just going to say it, I wish the kernel developers would stop the flirting with Rust that they have been engaging in and either port the kernel completely over to Rust or stick with C.

                  But pick a lane already and move on.
                  It is not as easy. Too much people and volume. But they are porting the kernel. The experimental support of Rust if for developing modules for the kernel. It is a very clean approach to experiment with Rust without changing the kernel itself.

                  Comment


                  • #10
                    Originally posted by sophisticles View Post
                    I'm just going to say it, I wish the kernel developers would stop the flirting with Rust that they have been engaging in and either port the kernel completely over to Rust or stick with C.

                    But pick a lane already and move on.
                    Even if they committed to completely rewriting the kernel in Rust tomorrow, it wouldn't happen for 20 years.

                    The current path (focusing on drivers) provides plenty of value. Drivers are mostly self-contained (changing them has less fallout on the rest of the kernel) and have less eyes on them (easier for simple mistakes to creep in undetected)

                    Comment

                    Working...
                    X