From owner-freebsd-current@FreeBSD.ORG Sun Feb 15 13:00:18 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 CBC66106564A for ; Sun, 15 Feb 2009 13:00:18 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id A07718FC19 for ; Sun, 15 Feb 2009 13:00:18 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 2B1B9295169; Sun, 15 Feb 2009 08:00:18 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 15 Feb 2009 08:00:18 -0500 X-Sasl-enc: G2b3HsCVTA6ZfFgpwJQ2WXcDDfXcSt5zdzsxFRRX2UEd 1234702817 Received: from anglepoise.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 6ECA132299; Sun, 15 Feb 2009 08:00:17 -0500 (EST) Message-ID: <499811DF.6030905@incunabulum.net> Date: Sun, 15 Feb 2009 13:00:15 +0000 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.19 (X11/20090125) MIME-Version: 1.0 To: Andriy Gapon References: <4995BB1B.7060201@icyb.net.ua> <20090213231513.GA20223@duncan.reilly.home> <4997F105.5020409@icyb.net.ua> In-Reply-To: <4997F105.5020409@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andrew Reilly , freebsd-current@freebsd.org Subject: Re: weeding out c++ keywords from sys/sys 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: Sun, 15 Feb 2009 13:00:19 -0000 Andriy Gapon wrote: > on 14/02/2009 01:15 Andrew Reilly said the following: >> On Fri, Feb 13, 2009 at 08:25:31PM +0200, Andriy Gapon wrote: >>> Rationale: >>> There are people who write FreeBSD drivers in C++, >> >> There are? I can't find any in /usr/src/sys by any of the usual >> suffixes. Whatever would you want to do that for, anyway? That >> would bring a whole extra language runtime support library into the >> kernel, and complicate the boot process with constructors and >> what-not. >> >> Seems like a backwards step, to me. > > Bait not taken, sorry :-) [*] Please don't listen to the nay-sayers, and keep up the good work:- http://web.archive.org/web/20071222161357/http://netlab.ru.is/exception/LinuxCXX.shtml The figures re exception handling quoted sound extremely promising. Like any tool, C++ has its good sides and bad sides, and I suspect the people who are nay-saying got burned by the non-mindful deployment of this tool without sufficient support to "do it right", either from the project they are working in, management (if applicable), or from the tool chain. There are worthwhile projects which use C++ in the kernel, and whose progress has been impeded by the very problem which you are now helping to fix:- http://read.cs.ucla.edu/click/ Nay-sayers: All I ask is that you don't complain when someone who knows how to use the tool, and has the support, gets more working code written :^) cheers BMS