Bartosz Milewski seems to like D more than C++ now :)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Sep 20 10:37:39 PDT 2013


On 9/20/13 8:54 AM, Joseph Rushton Wakeling wrote:
> On 20/09/13 17:28, Andrei Alexandrescu wrote:
>> Why would there be a performance loss?
>
> Depends on the particular case, but my experience is that _in practice_
> stuff based around range interfaces can often be slower than raw iteration.
>
> I don't think anyone's saying a performance loss is inevitable or
> unavoidable, but there currently is one.

With dmd that's indeed the case. But LLVM is good at enregistering small 
structs, which is how ranges are implemented.

Andrei


More information about the Digitalmars-d mailing list