Programming languages and performance

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 14 00:28:49 PDT 2015


On 4/14/2015 12:24 AM, bearophile wrote:
> Walter Bright:
>
>> Algorithms don't actually do deforestation or fusion. The magic happens in how
>> the algorithm is implemented, i.e. the elements are created lazily (on demand)
>> rather than eagerly.
>
> Stream fusion is often about laziness. There is a ton of literature about this
> topic.

What I mean is the algorithms do not create temporaries which the compiler then 
untangles.



More information about the Digitalmars-d mailing list