From owner-freebsd-arch@FreeBSD.ORG Sat Oct 27 10:50:25 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F93716A421; Sat, 27 Oct 2007 10:50:25 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1630D13C465; Sat, 27 Oct 2007 10:50:25 +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 C068D3FB3F; Sat, 27 Oct 2007 06:50:24 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 27 Oct 2007 06:50:24 -0400 X-Sasl-enc: yA15BHnlIbrxuRGMBHsfk7E01ZLnzO/7+zxIa+DUbVpS 1193482224 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 5024F203DC; Sat, 27 Oct 2007 06:50:24 -0400 (EDT) Message-ID: <472317EF.8040300@incunabulum.net> Date: Sat, 27 Oct 2007 11:50:23 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.6 (X11/20070928) MIME-Version: 1.0 To: Alfred Perlstein References: <4722BDBE.5030408@incunabulum.net> <20071027063728.GK33488@elvis.mu.org> In-Reply-To: <20071027063728.GK33488@elvis.mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arch@freebsd.org Subject: Re: C++ in the kernel X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2007 10:50:25 -0000 Alfred, Thanks for the feedback. Alfred Perlstein wrote: > Heh, Click was extremely unstable for us on both FreeBSD and Linux. > I have been working with Eddie Kohler to stop the bit-rot of the kernel support for FreeBSD and submitted a mega-patch a few months ago. Can you provide further details to me off-list of what isn't working for you? > I do think it would be nice to suppost at miniumum a subset of > C++ in kernel, but I think someone would have to come forward to do > the heavy lifting. :) > I think what the Netlab results show is that it's possible to use a relatively rich set of C++ language features in an embedded context without bloat. Certainly Bjarne Stroustrup seems to be less in favour of the 'reduced subset' approach touted a few years ago. The point being, C++ makes it very easy to write bad code, however, that is no reason to rule out its use as it is a very powerful tool when wielded correctly, as my past and current experience working on XORP has borne out. regards BMS