From owner-freebsd-arch@FreeBSD.ORG Wed Oct 31 20:01:02 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 387EC16A419; Wed, 31 Oct 2007 20:01:02 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id EBF6913C4A8; Wed, 31 Oct 2007 20:01:01 +0000 (UTC) (envelope-from jan.grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1InGGs-0007Hf-BX; Wed, 31 Oct 2007 16:18:23 +0000 Received: from cse-jg.cse.bris.ac.uk ([137.222.12.37]:51810) by mail.ilrt.bris.ac.uk with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1InGGg-0002aW-Fg; Wed, 31 Oct 2007 16:18:10 +0000 Date: Wed, 31 Oct 2007 16:18:10 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@tribble.ilrt.bris.ac.uk To: Bakul Shah In-Reply-To: <20071031153248.4395A5B59@mail.bitblocks.com> Message-ID: <20071031161042.T41569@tribble.ilrt.bris.ac.uk> References: <20071031153248.4395A5B59@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-ILRT-MailScanner: Found to be clean X-ILRT-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.682, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.72, BAYES_00 -2.60) X-ILRT-MailScanner-From: jan.grant@bristol.ac.uk X-Spam-Status: No X-Spam-Score: -0.8 X-Spam-Level: / Cc: Poul-Henning Kamp , Alfred Perlstein , Garance A Drosehn , 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: Wed, 31 Oct 2007 20:01:02 -0000 On Wed, 31 Oct 2007, Bakul Shah wrote: > For example what if you can't gain the lock and want > to do something else? Two, while C++ gives you a way to > solve this problem, it does it in a "clever" way, not an > obvious way. RAII is a very common C++ idiom; that kind of thing'd be obvious to anyone who's mired^Wimmersed in C++ on a regular basis. That's the point here - if this was the language technology already in use, then it'd be obvious, and nobody would think much about it. It's not, so it looks alien, much like any other alternatives that'll get raised along the line of C-plus-stuff look alien. Amongst C++ users with taste (and I claim that they do exist) the natural question that'll then be asked is, since you can already express this idea in C++ why would you adopt a less widespread (or novel) language? jan PS. Paint it green. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ There's no convincing English-language argument that this sentence is true.