• ozymandias117@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      There’s assembly and makefiles too

      Less of a joke answer, there has been work to allow Rust bindings for drivers.

    • BartyDeCanter@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      According to the github analysis, the kernel repository is:

      • C 98.3%
      • Assembly 0.7%
      • Shell 0.4%
      • Makefile 0.2%
      • Python 0.2%
      • Perl 0.1%
      • Other 0.1%

      So yeah, its basically all C, plus a tiny bit of assembly for very low level bootstrapping and some helper scripts.

    • jabjoe@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Lots of core UNIX and Linux projects are. C++ is not liked by a lot of low level FOSS community. I think Rust is going to get further into these areas. I know C++ well but prefer C. I know plenty of others who feel the same.

        • jabjoe@feddit.uk
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          Yes, I think Rust is a better C++ and will replace it in many places. Though all three will be around for ever to be honest.

          • 0x4E4F@sh.itjust.worksOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 months ago

            Yes, first Rust code was released in 6.6 I think and MS also started implementing Rust code in the Windows kernel.