Re: [Hampshire] [Tech] The "speed of a language"

Top Page
Author: Hugo Mills
Date:  
To: Stephen Pelc, Hampshire LUG Discussion List
Subject: Re: [Hampshire] [Tech] The "speed of a language"

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57a89100.hantslug.org.uk.22938': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Oct 30 14:54:58 2008 GMT
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Thu, Oct 30, 2008 at 02:49:16PM -0000, Stephen Pelc wrote:
> There's nothing that makes a program in one language execute any
> faster than one in another language other than the quality of
> the implementation of the compiler. That in turn assumes that
> performance is the primary objective. Outside the fat desktop
> world, code density may be more important.


Actually, these days, that also applies on the fat desktop. The
default build options on the Linux kernel went from -O2 to -Os over a
year ago, as it produced both smaller *and* faster code. Cache misses
are now so expensive that (e.g.) unrolling loops is no longer worth it
on modern processors, as you push too much code out of the CPU cache.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
       --- A cross? Oy vey, have you picked the wrong vampire! ---