D is supposed to compile fast.

aliak something at something.com
Mon Nov 26 12:37:49 UTC 2018


On Monday, 26 November 2018 at 03:09:03 UTC, Mike Parker wrote:
>> I mean, can you think of any module in the 
>> Python/Javascript/C# standard library that simply including it 
>> will swell your program to the point it can't compile? I'm not 
>> an omnipotent master programmer, but as a professional, I 
>> can't recall ever having this situation in another library or 
>> language.
>
> Have you reached the point in D where you can't compile?

I thought people had reached that point already: 
https://forum.dlang.org/post/mailman.3134.1517944133.9493.digitalmars-d@puremagic.com

I remember reading about a never ending for loop as well. Because 
of the way ctfe has to be handled "purely" without mutations, 
every change is a new allocation (but i could be remembering 
wrong). So just a large enough for loop because "uncompliable". 
And this is just time, the memory consumption is also quite large 
no?

I think there are some caveats which are not mentioned when it 
comes to the fastness of the compiler. I remember last year's 
advent of code, I wanted to do everything at compile time, but at 
some point I thought, no, this small piece of code is taking way 
too long. Not worth it. And me mate's Go code was "consistently" 
fast.


More information about the Digitalmars-d-learn mailing list