From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 11 23:03:36 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 AC4CB16A4DA for ; Tue, 11 Jul 2006 23:03:36 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id E80E743D46 for ; Tue, 11 Jul 2006 23:03:35 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 58999 invoked by uid 1001); 11 Jul 2006 23:03:34 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 11 Jul 2006 19:03:34 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17588.11845.706643.154947@bhuda.mired.org> Date: Tue, 11 Jul 2006 19:03:33 -0400 To: rick-freebsd@kiwi-computer.com In-Reply-To: <20060711224627.GA93273@megan.kiwi-computer.com> 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> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer 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: Tue, 11 Jul 2006 23:03:36 -0000 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. It may not be a good choice, as I haven't looked at it seriously. But I certainly wouldn't start trying to improve the FreeBDS kernel by adding support for a new language without doing so. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.