Announcement

Collapse
No announcement yet.

Linux's VGEM Kernel Driver Being Rewritten In Rust

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

  • Linux's VGEM Kernel Driver Being Rewritten In Rust

    Phoronix: Linux's VGEM Kernel Driver Being Rewritten In Rust

    In addition to the in-development Apple M1/M2 DRM kernel graphics/display driver being written in Rust, there is now a second graphics-related kernel driver seeing early work in Rust. The existing VGEM driver is being rewritten in 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

  • #2
    Rewrite rust in rust too.

    Comment


    • #3
      Originally posted by Mario Junior View Post
      Rewrite rust in rust too.
      They're already working on it.

      The goal of this project is to create an alternative codegen backend for the rust compiler based on Cranelift. This has the potential to improve compilation times in debug mode.

      Comment


      • #4
        Originally posted by ssokolow View Post

        They're already working on it.
        You most be kidding me... 😂
        ​

        Comment


        • #5
          Will be fun to check performances. The proof of the pudding is in the eating.

          Comment


          • #6
            🦀🦀​🦀​🦀​🦀​ :3

            Comment


            • #7
              Hopefully these kind of news become more common over time.

              Comment


              • #8
                Originally posted by juxuanu View Post
                Hopefully these kind of news become more common over time.
                This is the sort of spreading news that makes me want to learn Rust myself, because then it's possible to contribute myself in the Linux Community (and beyond).

                Comment


                • #9
                  Originally posted by Mario Junior View Post

                  You most be kidding me... 😂
                  ​
                  Not really. It is a fairly common step in a language to write the compiler in the language itself after a point. Go did this a few years back for example.

                  Comment


                  • #10
                    Originally posted by RahulSundaram View Post

                    Not really. It is a fairly common step in a language to write the compiler in the language itself after a point. Go did this a few years back for example.
                    Rust's compiler has been written in Rust for a long time. Though the earliest prototypes were in OCaml.

                    But it does use LLVM for codegen. rustc_codegen_cranelift isn't really meant to replace that so much as to offer an alternative specifically for faster unoptimized builds, while LLVM would still offer more performant optimized builds. (And cranelift itself was created for use as a WASM JIT. Not initially/specifically for compiling Rust.)

                    Comment

                    Working...
                    X