From owner-freebsd-arch@FreeBSD.ORG Tue Mar 11 20:04:04 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFFCE1065670 for ; Tue, 11 Mar 2008 20:04:04 +0000 (UTC) (envelope-from peter@wemm.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id B74118FC1A for ; Tue, 11 Mar 2008 20:04:04 +0000 (UTC) (envelope-from peter@wemm.org) Received: by an-out-0708.google.com with SMTP id c14so774180anc.13 for ; Tue, 11 Mar 2008 13:04:04 -0700 (PDT) Received: by 10.100.6.13 with SMTP id 13mr13925043anf.16.1205264106316; Tue, 11 Mar 2008 12:35:06 -0700 (PDT) Received: by 10.100.8.6 with HTTP; Tue, 11 Mar 2008 12:35:06 -0700 (PDT) Message-ID: Date: Tue, 11 Mar 2008 12:35:06 -0700 From: "Peter Wemm" To: "Poul-Henning Kamp" In-Reply-To: <5546.1205229755@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080311095557.GX68971@server.vk2pj.dyndns.org> <5546.1205229755@critter.freebsd.dk> Cc: arch@freebsd.org Subject: Re: amd64 cpu_switch in C. 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: Tue, 11 Mar 2008 20:04:05 -0000 On Tue, Mar 11, 2008 at 3:02 AM, Poul-Henning Kamp wrote: > In message <20080311095557.GX68971@server.vk2pj.dyndns.org>, Peter Jeremy write > s: > > > >>The only appreciable downside is that it lowers the barrier of entry for > >>modifying a very sensitive piece of code. > > > >IMHO, this isn't a valid reason. Increasing the both the legibility > >and performance of a very sensitive piece of code is a good thing. > >Having more people understand the code is also a good thing. > > This is not a legal inference, and that's exactly the point Jeff made: > > Just because it is written in C doesn't mean people will understand > it, it merely means that they will _think_ they understand it. I'd like to point out that if I hadn't converted the run queue parts of cpu_switch into C, then KSE might never have happened. At least, not in the form that hit the tree. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell