Our template emission strategy is broken

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 11 07:07:15 PST 2015


On 11/11/15 9:15 AM, Johannes Pfau wrote:
> Am Wed, 11 Nov 2015 13:56:50 +0000
> schrieb Martin Nowak <code at dawg.eu>:
>
>> 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.
>>
>
> And where do you draw the line? Do we expect ARM users to have 4GB of
> RAM to compile phobos? Is 512MB enough? 64 MB? Even huge C++ codebases
> such as GCC compile with 128MB memory.

Large codebases are best organized to have more packages, not larger 
packages.

Phobos takes about 600MB max to build.


Andrei


More information about the Digitalmars-d mailing list