Our template emission strategy is broken
Johannes Pfau via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 11 06:15:54 PST 2015
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.
I use docker hub to build docker images. One Dockerfile compiles one
small D tool which depends on vibe.d for JSON parsing. Without
separate compilation the build fails as docker hub kills the build
process, out of memory...
More information about the Digitalmars-d
mailing list