Re: RFC: C version of devd daemon.

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 12 Jun 2009 11:09:06 -0700
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
Received on Fri Jun 12 2009 - 16:09:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:49 UTC