[Issue 14654] rdmd should compile package at a time

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jun 6 09:58:03 PDT 2015


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

--- Comment #4 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Vladimir Panteleev from comment #3)
> Yes, they are orthogonal. But:
> 
> 1. It is potentially higher-impact. Even with per-package compilation, DMD
> will still need to lex/parse/etc. ALL modules.

It's almost surprising rdmd is so immensely useful, eh :o).

BTW there was work on collecting dependencies while actually building. One nice
solution would be for dmd -v to generate a line at the end of imports to mean
"done". Then rdmd can run dmd concurrently and terminate if no need to generate
code.

> 2. Any improvements we make now to rdmd may be harder to migrate into dmd

I see it as the polar opposite. Improvements in rdmd clarify what sort of
primitives and interfaces we need for highly modular compilation.

--


More information about the Digitalmars-d-bugs mailing list