4 ms·
What other language would someone use to write a kernel or driver? Even if you use a higher-level language for most of the logic you'll likely want the core to
by srj 11y ago
What other language would someone use to write a kernel or driver? Even if you use a higher-level language for most of the logic you'll likely want the core to be C -- amazing considering the language is nearly 40 years old. C is, to me, a systems programming language. Writing code that handles any significant amount of user input in the language is a mistake I believe. Note that this doesn't include C++ which has more modern constructs.
- alkonaut 11y agoThat's Rust: it aims to be a viable replacement for C in bare metal and high performance code including drivers, kernels, embedded and all of those areas where C used to be the only game in town. It should do everything C does, but safely and without performance penalties.
- pjmlp 11y agoToday Ada, Rust, Spark, C++, ATS. Eventually Swift, Systems C# (if it ever comes out MSR), D, or any other language.
- mpweiher 11y agoYou might be surprised that NeXTStep used Objective-C for device drivers in the kernel.
- jernfrost 11y agoThat is pretty cool. Shows some of the versatility of Objective-C. I was also surprised that a low level API like Metal also uses Objective-C.
- snaky 11y agoLua http://bsd.slashdot.org/story/13/02/16/2329259/netbsd-to-support-kernel-development-in-lua-scripting http://bsd.slashdot.org/story/13/02/16/2329259/netbsd-to-sup... www.lua.org/wshop13/Cormack.pdf