What Julia Does Right

max haughton maxhaton at gmail.com
Sun Dec 11 16:25:44 UTC 2022


On Sunday, 11 December 2022 at 03:49:53 UTC, bachmeier wrote:
> On Sunday, 11 December 2022 at 03:16:24 UTC, max haughton wrote:
>
>> Also saving dependencies in a user folder is tempting and 
>> sometimes correct but if you have to build a real product you 
>> typically have either subprojects or entirely separate 
>> projects with the same dependencies in them — if these are all 
>> stored in their own local folder then you end up fetching and 
>> building things multiple times (dub suffered from the latter 
>> until very recently IIRC). You could have a single per-product 
>> build dir but at that point you've lost the locality and might 
>> as well just have it in /home/ or wherever.
>
> This language is not helpful. It is used by people with a very 
> narrow set of experiences that do not understand other use 
> cases. That leads to terrible design decisions. I for one have 
> no interest in build what you define to be a "real product".

I understand them I just don't think its a useful model to build 
a package manager around. If you just want the package manager to 
be a glorified curl/git wrapper that fetches code with no other 
bells and whistles why not just use curl/git?

What dub should be able to do, wrt to locality is initialise and 
manage submodules for depdendencies automatically, as this makes 
some dependency-safety issues much easier to deal with – makes 
transitioning to internal forks/similar much more easy


More information about the Digitalmars-d mailing list