Program size, linking matter, and static this()

Sean Kelly sean at invisibleduck.org
Fri Dec 16 15:34:00 PST 2011


On Dec 16, 2011, at 3:16 PM, Andrei Alexandrescu wrote:

> On 12/16/11 5:08 PM, Sean Kelly wrote:
>> On Dec 16, 2011, at 1:38 PM, Trass3r wrote:
>> 
>>> A related issue is phobos being an intermodule dependency monster.
>>> A simple hello world pulls in almost 30 modules!
>> 
>> This was one of the major motivations for separating druntime from
>> phobos.  The last thing anyone wants is for something in runtime to
>> print to the console and end up pulling in 80% of the standard
>> library as a result.
> 
> Well, right now druntime itself may have become the interdependency knot it once wanted to shun :o).

The first place to look would be rt/.  I know there's some tool that generates dependency graphs for D.  Does Descent do that?


More information about the Digitalmars-d mailing list