Announcement

Collapse
No announcement yet.

Linus Torvalds' Initial Comment On Rust Code Prospects Within The Linux Kernel

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

  • Linus Torvalds' Initial Comment On Rust Code Prospects Within The Linux Kernel

    Phoronix: Linus Torvalds' Initial Comment On Rust Code Prospects Within The Linux Kernel

    Kernel developers appear to be eager to debate the merits of potentially allowing Rust code within the Linux kernel. Linus Torvalds himself has made some initial remarks on the topic ahead of the Linux Plumbers 2020 conference where the matter will be discussed at length...

    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
    Sensible position on Linus' part.

    Comment


    • #3
      This is getting interesting. I guess it's finally time for me to learn a new language.

      Comment


      • #4
        well, it has to be disabled by default because gcc 4.9 doesn't support it

        Comment


        • #5
          Originally posted by 144Hz View Post
          It might evolve into a viable C replacement.
          viable c replacement has to understand c headers

          Comment


          • #6
            Originally posted by pal666 View Post
            viable c replacement has to understand c headers
            Not necessarily but it does make it easier to replace incrementally. There are multiple solutions for this in many languages. In Rust, one could use bindgen to generate Rust FFI and you then call C code from that

            Comment


            • #7
              As long it's not a requirement to have rust compiler installed, to be able to properly build mainline kernel, guessing it's OK.

              Comment


              • #8
                Originally posted by onicsis View Post
                As long it's not a requirement to have rust compiler installed, to be able to properly build mainline kernel, guessing it's OK.
                It seems likely any early usage of rust would be in specific use cases such as a new driver which might very well not be built by default (so no rustc requirements). But, remember, you are the frog (and the water is slowing getting hotter).

                Comment


                • #9
                  Originally posted by RahulSundaram View Post
                  There are multiple solutions for this in many languages.
                  and nothing works, that's why nothing but c++ is used as viable replacement for c
                  Originally posted by RahulSundaram View Post
                  In Rust, one could use bindgen to generate Rust FFI and you then call C code from that
                  i didn't say "call c code", i said "understand c headers". even perl can "call c code"

                  Comment


                  • #10
                    Ok, but how is the code written in Rust compared to C at the performance level ?
                    Is Rust adding any safety checks at runtime that makes the code slower based on the assumption that the code is badly written ?

                    Comment

                    Working...
                    X