14 ms·
Yes the kernel is entirely written in C and assembly, there’s a Linus rant about why that is and why he doesn’t want C++ in it. Curious as to what changed his
by edgyquant 5y ago
Yes the kernel is entirely written in C and assembly, there’s a Linus rant about why that is and why he doesn’t want C++ in it. Curious as to what changed his mind about rust
- Yoric 5y agoWell, there's also the BPF. But it's a domain-specific language, by opposition to Rust.
- ncmncm 5y agoNo. eBPF is C++, or Rust, or C, or D, or pretty much any language that can be compiled to LLVM intermediate code and doesn't necessarily rely on a runtime. What can be done in eBPF code is somewhat limited, but nowhere nearso as you might imagine from the restrictions imposed on eBPF programs. Things eBPF code is not allowed to do directly are routinely done in functions eBPF is allowed to call, or in the code that calls the eBPF program in a loop.