Who can make Phobos faster to import?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Dec 21 16:06:38 UTC 2017
On 12/20/2017 10:31 PM, Joakim wrote:
> On Wednesday, 20 December 2017 at 18:21:33 UTC, Andrei Alexandrescu wrote:
>> A tool (call it depend - heh) to automate that would be awesome. For
>> example, this run would make all imported names explicit:
>>
>> depend --explicit *.d
>>
>> This run would push all imports down to the innermost scope of usage:
>>
>> depend --pushdown *.d
>>
>>
>> Andrei
>
> I'm on it. I tried using a version of Seb's frontend library yesterday
> but with the standard dmd main and tried running it on std.stdio, but it
> asserted in asmSemantic because of an asm block somewhere in druntime,
> so I'm back to using a tweaked full dmd with the backend simply disabled
> again:
>
> https://github.com/dlang/dmd/pull/7425
> https://github.com/dlang/dmd/blob/master/src/dmd/gluelayer.d#L47
> https://gist.github.com/joakim-noah/09cf49bee3d82b03a54f
>
> Once I have something basic working, I'll put it up on github, so others
> who are interested can play with it and pitch in to make it a real tool.
That's an awesome start, thanks! -- Andrei
More information about the Digitalmars-d
mailing list