Speeding up importing Phobos files

Adam Wilson flyboynw at gmail.com
Mon Jan 21 10:21:08 UTC 2019


On 1/20/19 9:31 PM, Walter Bright wrote:
> On 1/20/2019 9:53 AM, Doc Andrew wrote:
>>     Are you envisioning something like the JAR format Java uses?
> 
> jar/zip/arc/tar/lib/ar/cab/lzh/whatever
> 
> They're all the same under the hood - a bunch of files concatenated 
> together with a table of contents.

I notice a trend here. You eventually end up at the Java/JAR or 
.NET/Assembly model where everything need to compile against a library 
is included in a single file. I have often wondered how hard it would be 
to teach D how to automatically include the contents of a DI file into a 
library file and read the contents of the library at compile time.

Having studied dependencies/packaging in D quite a bit; a readily 
apparent observation is that D is much more difficult to work with than 
Java/.NET/JavaScript in regards to packaging. Unified 
interface/implementation would go a LONG way to simplifying the problem.

I even built a ZIP based packing model for D.

-- 
Adam Wilson
IRC: EllipticBit
import quiet.dlang.dev;


More information about the Digitalmars-d mailing list