From owner-freebsd-current@FreeBSD.ORG Fri Jun 12 18:09:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1CB0106568C; Fri, 12 Jun 2009 18:09:16 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 3E73B8FC14; Fri, 12 Jun 2009 18:09:15 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id n5CI96er056873; Fri, 12 Jun 2009 11:09:06 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id n5CI96JJ056872; Fri, 12 Jun 2009 11:09:06 -0700 (PDT) (envelope-from sgk) Date: Fri, 12 Jun 2009 11:09:06 -0700 From: Steve Kargl To: Roman Divacky Message-ID: <20090612180906.GA12679@troutmask.apl.washington.edu> References: <538f43900906120823w388f1c63ic8d0194017faca6d@mail.gmail.com> <20090612165518.GA15530@phenom.cordula.ws> <20090612172740.GA1952@troutmask.apl.washington.edu> <20090612175206.GA77895@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090612175206.GA77895@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: Antonio Gonz?lez Castro , freebsd-current@freebsd.org, cpghost Subject: Re: RFC: C version of devd daemon. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 18:09:17 -0000 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