News for hackers. Stuff that matters.
Re:Committing to Rust for Kernel Code by AYoung010 on Thursday November 23, 2023 @02:13PM (#38396330)
I think the assertion is based on the fact that LLVM is written in C++. Doesn’t directly introduce a C++ dependency to the kernel, but it does introduce it to the toolchain.
Re:Committing to Rust for Kernel Code by kibwen on Thursday November 23, 2023 @02:21PM (#38396412)
But rustc is a cross-compiler, you only need a C compiler for one platform and you get a Rust compiler for all platforms. And it's not like LLVM is doing anything that fundamentally prevents it from being written in Rust (see also the Cranelift backend for Rust, written in Rust). I'm still not quite sure what the concrete concern is. Can you elaborate?
Re:Committing to Rust for Kernel Code by fleventynine on Friday November 24, 2023 @01:26AM (#38401135)
Modern GCC is also primarily written in C++, and has had C++ deps since 2013:

https://github.com/gcc-mirror/gcc/blob/master/gcc/input.cc