From owner-freebsd-chat@FreeBSD.ORG Sat Mar 6 14:12:43 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22EDB16A4CE for ; Sat, 6 Mar 2004 14:12:43 -0800 (PST) Received: from priv-edtnes04.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94E5343D45 for ; Sat, 6 Mar 2004 14:12:42 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([154.5.85.228]) by priv-edtnes04.telusplanet.netSMTP <20040306221242.GIMA5819.priv-edtnes04.telusplanet.net@catseye.biscuit.boo>; Sat, 6 Mar 2004 15:12:42 -0700 Date: Sat, 6 Mar 2004 14:17:42 -0800 From: Chris Pressey To: Colin Percival Message-Id: <20040306141742.4f41ba27.cpressey@catseye.mine.nu> In-Reply-To: <6.0.1.1.1.20040306214526.08c5ed70@imap.sfu.ca> References: <20040306005744.T38020@haldjas.folklore.ee> <20040305153505.74061868.cpressey@catseye.mine.nu> <20040306013914.D38020@haldjas.folklore.ee> <404A465A.1040009@stephanmantler.com> <6.0.1.1.1.20040306214526.08c5ed70@imap.sfu.ca> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.9 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-chat@freebsd.org Subject: Re: FreeBSD Most wanted X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 22:12:43 -0000 On Sat, 06 Mar 2004 21:53:51 +0000 Colin Percival wrote: > At 21:44 06/03/2004, stephan mantler wrote: > >Also, to get a bit closer to the original topic. I can't remember > >where I > >read this (DDJ probably), but apparently programmers who have a deep > >understanding of computer architecture through low level programming > >also produce "better" code in high level languages. My interpretation > >is that they are simply feeding the compiler a better foundation to > >work with. > > Having seen quite a lot of undergraduate "computer science" students > over past decade, I can certainly support that interpretation. Nobody > quite understands why hash tables are not a perfect data structure > until they've tried to implement one in assembly language. (And, > after performing such a task, few people will use hash tables without > asking themselves, at least for a moment, if there might be a cheaper > solution to the problem at hand.) > > Colin Percival Not sure what you mean here... surely it's no easier to implement (say) an AVL tree or a red-black tree in assembly? In fact, I'd think a hash function would often be a good candidate for hand-coded assembly - if you want to play "Beat the Compiler" :) -Chris