RFC: C version of devd daemon.

Steve Kargl sgk at troutmask.apl.washington.edu
Fri Jun 12 18:09:17 UTC 2009


On Fri, Jun 12, 2009 at 07:52:06PM +0200, Roman Divacky wrote:
> On Fri, Jun 12, 2009 at 10:27:40AM -0700, Steve Kargl wrote:
> > On Fri, Jun 12, 2009 at 10:55:18AM -0600, cpghost wrote:
> > > On Fri, Jun 12, 2009 at 03:23:47PM +0000, Antonio Gonz?lez Castro wrote:
> > > > Hi, I'm not sure this is interesting or useful, but I translated devd daemon
> > > > from C++ to C.
> > > 
> > > Why would you want to do that? IMHO, the code in
> > > /usr/src/sbin/devd/devd.cc is beautiful, concise
> > > and very readable.
> > 
> > To allow one to use an alternative compiler technology
> > to compile the system.  See, for example, clang and pcc.
> 
> clang will ultimately support C++ just fine. dont forget devd
> is not the only C++ code in our src. we also have groff and
> libstd++

Yes, I know in a year or two clang will compile C++.  And,
yes, I know that groff and libstdc++ require a C++ compiler.
The difference is that devd is required for a functioning
system while neither groff nor libstdc++[1] would be required.

[1] If devd is written in C, then a C++ library would not
be needed.

-- 
Steve


More information about the freebsd-current mailing list