Programming language benchmarks

Walter Bright newshound2 at digitalmars.com
Thu Apr 28 09:59:03 PDT 2011


On 4/28/2011 9:19 AM, Daniel Gibson wrote:
> But there's no need for a D compiler to optimize loops that just copy
> parts of an array into another array (and similar stuff), because in D
> you use slices for that - they're (probably) faster and easier to use.
> So IMHO it's fair to use slices where possible.
> (And they're a language feature and not just part of the library)
> Furthermore this particular benchmark is a "programming language
> benchmark" and not a compiler benchmark, so it's fair to use every
> feature of the language.


For example, a lot of effort is expended in C and Fortran compilers "reverse 
engineering" loops so they can be recompiled and optimized as vector operations. 
I don't see ever bothering with this in D compilers, as D offers a vector notation.



More information about the Digitalmars-d mailing list