3 ms·
Existing languages in the Linux kernel - https://www.openhub.net/p/linux/analyses/latest/languages_summary https://www.openhub.net/p/linux/analyses/latest/langu
by nindalf 7y ago
Existing languages in the Linux kernel - https://www.openhub.net/p/linux/analyses/latest/languages_summary https://www.openhub.net/p/linux/analyses/latest/languages_su...
Unsurprisingly it's mostly C (95.6%) with a bit of C++ (2%) and Assembly (1.6%) and tiny bits of make (0.2%), shell scripts (0.3%), Python (0.1% and Perl (0.2%). I'd guess it'd be at least half a decade before Rust cracks 1% here.
- cesarb 7y ago> with a bit of C++ (2%) That sounded strange to me, since the dislike of C++ within the Linux kernel is well-known, so I took a quick look. All uses I found were on user space tools, not in the kernel itself, and all of them (except for a "check if this compiles" test file) are in C++ because they have to call into libraries with a C++-only API (LLVM and Qt).
- labawi 7y agoAFAIK kernel itself is only coded in C and assembly. Shell, python, perl and make are for building and tools. Linux kernel does not support c++ (its exceptions, RTTI etc). Only c++ I found was related to perf tool, 6 of 7 cpp files had test in their name.