Compilation times and idiomatic D code

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 5 20:45:55 PDT 2017


On Wednesday, July 05, 2017 13:12:40 H. S. Teoh via Digitalmars-d wrote:
[...]
> IOW, the very range-based idiom that has become one of the defining
> characteristics of modern D is negating the selling point of fast
> compilation.
>
> I vaguely remember there was talk about compressing symbols when they
> get too long... is there any hope of seeing this realized in the near
> future?

In this case, I think that it's more that Voldemort types are biting us than
that ranges are biting us (though the Voldemort types are typically ranges,
so in practice, using ranges ends up biting you).

https://issues.dlang.org/show_bug.cgi?id=15831

I think that there's a good argument that Voldemort types aren't actually a
particularly good idea given these issues, but the work that's being done to
compress symbols should at least reduce the problem.

- Jonathan M Davis



More information about the Digitalmars-d mailing list