What Julia Does Right

Hipreme msnmancini at hotmail.com
Sat Dec 10 10:43:42 UTC 2022


On Saturday, 10 December 2022 at 05:53:37 UTC, Greggor wrote:
> On Friday, 9 December 2022 at 19:07:21 UTC, Walter Bright wrote:
>> On 12/9/2022 6:11 AM, Paul Backus wrote:
>>>> Resolving environments feels instant, as opposed to the 
>>>> glacially slow Conda that Python offers. The global 
>>>> "general" registry is downloaded as a single gzipped 
>>>> tarball, and read directly from the zipped tarball, making 
>>>> registry updates way faster than updating Cargo's crates.io.
>>
>> dmd could be enhanced to read source files from a zip or 
>> tarball, so these wouldn't have to be expanded before 
>> compilation.
>
> I would love that, I usually only read the forums & lurk, I 
> made an account just to say this!
>
> In my case, I don't use dub, or any other package manager, I am 
> a strong believer of your project should build without a 
> internet connection. In a lot of my project what I do is have 
> all my dependencies in tar files & the build script unpacks 
> them and then builds them.
>
> It would be lovely if I could skip the unpacking and directly 
> feed them into dmd.
>
> Not only that, this could also be an awesome way of easing 
> distributing programs via src.
>
> I would love it if I could do something like `dmd 
> myproject.tar.xz -of=myproject`

While I think that there's many advantages in not using a package 
manager, I also think that having it is really productive, being 
able to just add your dependency, it automatically checks the 
most recent version and then save that version information is 
absolutely important, it is easy. The compilation command would 
never be of that size unless you're work in a really small 
project.

Although dub has many problems today, I would really like to see 
it becoming more and more useful. Currently, for me, as a package 
manager, it is good enough. As a build system, it does not fit 
all my requirements which I have been opening issues on its repo.

But unfortunately, for changing my project which is pretty big 
right now from dub to any other build system is currently 
inviable **for me** because I would lose days until making it 
stable, which I could use it for coding more features.

I can say that for any newcomer, `dub` is a bless, not needing to 
know any build cli, specific details that shouldn't be required 
of every developer is a game changer. Build process is a very 
important step to every project out there, having one which is 
simple to use is the best choice.


More information about the Digitalmars-d mailing list