Re:Writing a Simple Linux Kernel Module
by lmilcin on Friday December 01, 2017 @04:45AM
(#15822915)
It is my understanding that there is no technical reason but rather a personal preference of Linus to continue working with plain C.
I did some kernel development (mainly some drivers) and I am also doing a lot of embedded development (credit card terminals, personal projects for ARM Cortex-M) I must say that I am happy with this choice.
The kernel is complex enough and you want to focus on understanding what really matters without being distracted by arcane constructs that would inevitably come with C++.
My experience with C++ guys is that there will inevitably be a population of smart developers which will try to be "smart" with the language which typically ends up with everybody else spending more time on understanding what is happening than the time that was actually saved by the construct.
C does not pose that problem. C is simple and there is relatively little occasion to be very smart with it, which is a good thing, IMHO.
I did some kernel development (mainly some drivers) and I am also doing a lot of embedded development (credit card terminals, personal projects for ARM Cortex-M) I must say that I am happy with this choice.
The kernel is complex enough and you want to focus on understanding what really matters without being distracted by arcane constructs that would inevitably come with C++.
My experience with C++ guys is that there will inevitably be a population of smart developers which will try to be "smart" with the language which typically ends up with everybody else spending more time on understanding what is happening than the time that was actually saved by the construct.
C does not pose that problem. C is simple and there is relatively little occasion to be very smart with it, which is a good thing, IMHO.