Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 11:09:06 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        Antonio Gonz?lez Castro <agoca80@gmail.com>, freebsd-current@freebsd.org, cpghost <cpghost@cordula.ws>
Subject:   Re: RFC: C version of devd daemon.
Message-ID:  <20090612180906.GA12679@troutmask.apl.washington.edu>
In-Reply-To: <20090612175206.GA77895@freebsd.org>
References:  <538f43900906120823w388f1c63ic8d0194017faca6d@mail.gmail.com> <20090612165518.GA15530@phenom.cordula.ws> <20090612172740.GA1952@troutmask.apl.washington.edu> <20090612175206.GA77895@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090612180906.GA12679>