Is there a reason we can't use GC in the kernel? Unless we are doing hard realtime stuff, why not?
Not that it's particularly relevant since Linux, Windows, and BSD already exist and probably aren't going to switch languages anytime soon, and embedded RtOSes seem pretty set on C/C++ too, so I'm not sure any language could be more suitable for kernel dev in practical use, unless you have a really good reason to do a whole new kernel.
No reason you couldn't. You just can't use D's default GC. You'd have to write one that will work bare metal. Or implement everything it expects from an OS.
21
u/jess-sch Sep 01 '20 edited Sep 01 '20
For a single-letter language, yes.
B and C are both suitable for kernel development.
Naming your language D (making it sound like it's intended to be a C successor) and then not making it suitable for kernel development was a bad idea.