Proposed improvements to the separate compilation model

Vladimir Panteleev vladimir at thecybershadow.net
Sat Jul 23 14:01:15 PDT 2011


On Sat, 23 Jul 2011 23:16:20 +0300, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> On 7/23/11 1:53 PM, Andrej Mitrovic wrote:
>> Isn't the biggest issue of large D projects the problems with
>> incremental compilation (e.g.
>> https://bitbucket.org/h3r3tic/xfbuild/issue/7/make-incremental-building-reliable),
>> optlink, and the toolchain?
>
> The proposed improvement would mark a step forward in the toolchain and  
> generally in the development of large programs. In particular, it would  
> provide a simple means to decouple compilation of modules used together.  
> It's not easy for me to figure how people don't get it's a net step  
> forward from the current situation.

Then you don't understand what I'm ranting about. It is certainly an  
improvement, but:

1) We don't have an infinity of programmer-hours. I'm saying that the time  
would likely be better spent at improving .di generation, which should  
have a much greater overall benefit per required work unit - and for all I  
can tell, you don't even want to seriously consider this option.
2) Once manually-maintained .di files are usable, they will be used as an  
excuse to shoo away people working on large projects (people complaining  
about compilation speed will be told to just manually write .di files for  
their 100KLoC projects).

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list