Date: Tue, 11 Jul 2006 11:15:58 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= <des@des.no>, Matthias Andree <matthias.andree@gmx.de>, delphij@delphij.net, Julian Elischer <julian@elischer.org>, mag@intron.ac Subject: Re: kern/99979: Get Ready for Kernel Module in C++ Message-ID: <200607111115.59844.jhb@freebsd.org> In-Reply-To: <86zmfg42bd.fsf@xps.des.no> References: <200607092136.k69LaNDX055391@www.freebsd.org> <courier.44B3B9A0.0000609C@intron.ac> <86zmfg42bd.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 July 2006 10:57, Dag-Erling Sm=F8rgrav wrote: > > For example, I think C++ exception handling is really poorly suited for > > low-level code. >=20 > Exception handling is required by the standard, even for freestanding > implementations. Standards aside, in Darwin, the C++ Apple uses does not have any exception handling or RTTI (and maybe not even templates). They use their own set of meta classes to implement an RTTI-like system that allows for future changes in the ABI. You would also benefit from doing some of your own research. > > But the "object model" is still obscure to understand no matter how many > > people all over the world master C++. >=20 > The fact that you don't understand it doesn't mean it's bad. No, but it is obtuse. And very underused. How many device drivers do you know of that use kobj inheritance? > > What's more, can the "object model" function really as OpenDarwin's > > IOKit class model? >=20 > Does it need to? He's trying to port IOKit to FreeBSD for his exercise (if you had read his first e-mail you'd know that). > > Well, you can LOOK DOWN UPON me, but I believe you cannot throw doubt on > > FreeBSD's actuality: so weak USB support (kernel crash easier than many > > other OSs that we laughed at and that we are laughing at), so weak PCI > > device support. >=20 > Please provide references to the PRs you filed about these issues. USB crashes are not that uncommon, and compared to other OS's (such as Wind= ows=20 and OS X both of which I've written a PCI driver for) we require device=20 driver writers to go through a lot more hoops to do certain things like=20 allocate resources. At the very least there is much that can be improved i= n=20 our driver model. =2D-=20 John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607111115.59844.jhb>