On Wed, Feb 26, 2003 at 05:19:17PM -0600, Reggie Bautista wrote:

> Just out of curiosity -- once these examples are both compiled, will they
> take up an equivalent amount of space and/or take an equivalent amount of
> time to run?

These days, generally the version produced by the compiler will be smaller
and faster. It's very very hard to properly optimise hand assembler for
modern CPUs, there's too much going on. :-)

> Or more generally, when programming languages include shorter ways of doing 
> things that previous languages, how much of that comes from the writers of 
> the newer languages having a better understanding of how to do things, and 
> how much comes from shortcuts written into the newer language that make 
> coding easier, but make no actual difference after compilation?

Uh ... I don't actually see any difference between the two parts of that
statement...

Generally, languages may include certain features which make it very easy to
do certain things - most modern languages have hash table functionality
built in, for example. However, it doesn't *really* gain you anything except
not having to write the code yourself. :)

-- 
Paul
_______________________________________________
http://www.mccmedia.com/mailman/listinfo/brin-l

Reply via email to