kern/99979: Get Ready for Kernel Module in C++

Garance A Drosihn drosih at
Wed Jul 12 01:54:06 UTC 2006

At 7:03 PM -0400 7/11/06, Mike Meyer wrote:
>In <20060711224627.GA93273 at>, Rick C. Petty 
><rick-freebsd at> typed:
>>  On Wed, Jul 12, 2006 at 02:25:21AM +0800, mag at wrote:
>  > > Good packages for various APIs are much easier to learn/debug
>  > > than those original APIs.
>  > What makes you say that C++ would provide a good API?
>Good point. About the only thing C++ has going for it as an OO
>language is popularity. If the goal is just to provide better API
>in the kernel, then there are certainly better languages to add.
>D comes to mind. I'd much rather write D than C++ - but that's
>got more to do with C++ than D, as it's true for most substitutes
>for D. But D is OO - done much better than C++ - and has a front
>end available for GCC.

This would be an interesting idea.  I haven't used D for anything
myself, but some friends of mine have and think that it is quite
good.  They say the available libraries are still "a little thin"
in what they implement, but maybe it'd be better to start with
some kind of "thin" environment, and see how that works out.

I guess that wouldn't help out much with supporting IOKit,
though, if IOKit is already written using C++.

Garance Alistair Drosehn            =   gad at
Senior Systems Programmer           or  gad at
Rensselaer Polytechnic Institute    or  drosih at

More information about the freebsd-hackers mailing list