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...

    http://www.phoronix.com/scan.php?pag...Kernel-K-Build

  • #2
    Same thing on the desktop.
    https://gitlab.gnome.org/GNOME/gnome..._requests/1355

    It might evolve into a viable C replacement.

    Comment


    • #3
      Sensible position on Linus' part.

      Comment


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

        Comment


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

          Comment


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

            Comment


            • #7
              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


              • #8
                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


                • #9
                  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


                  • #10
                    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

                    Working...
                    X