Our template emission strategy is broken

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 11 06:06:41 PST 2015


On Wednesday, 11 November 2015 at 13:56:51 UTC, Martin Nowak 
wrote:
> On Wednesday, 11 November 2015 at 13:47:27 UTC, Johannes Pfau 
> wrote:
>> I think we should really fix these issues, working separate 
>> compilation is very important.
>
> No, it's not. Separate compilation is C++-ishly slow by design 
> (b/c all dependencies get imported over and over again, just 
> like headers).
> We should endorse compiling small (rather independent) packages 
> to static/shared libraries.

Note that many of template emission issues that affect "plain" 
separate compilation are likely to affect package-based static 
libraties as well, thus in context of this thread distinction is 
not very important.


More information about the Digitalmars-d mailing list