From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 12 01:54:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99B9A16A4DA for ; Wed, 12 Jul 2006 01:54:06 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp6.server.rpi.edu (smtp6.server.rpi.edu [128.113.2.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2258843D49 for ; Wed, 12 Jul 2006 01:54:05 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp6.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k6C1rvlA020032; Tue, 11 Jul 2006 21:53:58 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <17588.11845.706643.154947@bhuda.mired.org> References: <44B2AE69.4080703@elischer.org> <44B2D2DF.2000401@sh.cvut.cz> <86sll8zl9x.fsf@xps.des.no> <86fyh8zgw8.fsf@xps.des.no> <868xn0z8w9.fsf@xps.des.no> <20060711152949.GB1463@merlin.emma.line.org> <1152642474.29859@origin.intron.ac> <20060711224627.GA93273@megan.kiwi-computer.com> <17588.11845.706643.154947@bhuda.mired.org> Date: Tue, 11 Jul 2006 21:53:56 -0400 To: Mike Meyer , rick-freebsd@kiwi-computer.com From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: freebsd-hackers@freebsd.org, mag@intron.ac Subject: Re: kern/99979: Get Ready for Kernel Module in C++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 01:54:06 -0000 At 7:03 PM -0400 7/11/06, Mike Meyer wrote: >In <20060711224627.GA93273@megan.kiwi-computer.com>, Rick C. Petty > typed: >> On Wed, Jul 12, 2006 at 02:25:21AM +0800, mag@intron.ac wrote: > > > Good packages for various APIs are much easier to learn/debug > > > than those original APIs. > > > What makes you say that C++ would provide a good API? > >Good point. About the only thing C++ has going for it as an OO >language is popularity. If the goal is just to provide better API >in the kernel, then there are certainly better languages to add. > >D comes to mind. I'd much rather write D than C++ - but that's >got more to do with C++ than D, as it's true for most substitutes >for D. But D is OO - done much better than C++ - and has a front >end available for GCC. This would be an interesting idea. I haven't used D for anything myself, but some friends of mine have and think that it is quite good. They say the available libraries are still "a little thin" in what they implement, but maybe it'd be better to start with some kind of "thin" environment, and see how that works out. I guess that wouldn't help out much with supporting IOKit, though, if IOKit is already written using C++. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu