by account42 · 1w ago · 0 comments
Even ubuntu's PPAs are just an extension of the trusted repository set.
This means snap and flatpack are the only "ecosystems" left and they are clearly not designed for programmers, which is why in this vacuum every programming language has its own ecosystem.
If you want cargo you also need the entire ecosystem to also adopt making everything MIT/BSD and that isn’t happening and no offence but if a project is setup and using CMake features from this decade you can just use CMake FetchContent to include it and build it.
Even boost can be included this way.
Why would you want to add more dependencies that are brittle and break?
C++ can't standardize something that'd break these use cases so packaging is unlikely to ever be fixed.
Reduce friction for adding packages to a project, and everyone imports everything in a whim.
sudo-rs was pulling in a couple of million LOCs at one point. Yeah, most of it was unused at the end of the day, but it's a massive surface for something like sudo of all things.
Cargo culting is considered harmful.
> Languages bringing in their own packaging ecosystem via their tool always fall prey to something I call "leftpad syndrome"
I'm not aware of such problem in C#, for example.We have search engines and web registries, and they precede package managers mostly. Moreover, Linux distributions' repositories acted as a directory and everyone used these packages, which were not half-baked either.
It's not the optimal solution, but it's better than leftpad, proc-macro2 (and associated drama), and 5-link deep dependencies I have seen any programming language which has first-class packages support (incl. Go and Rust).
In my opinion, assembling a set of libraries by hand and vendoring them is way better than getting a logging library and pulling the whole world with it.
If c++ added something like fstring’s or C#’s $ string then I would be able to use that functionality in my multi million line code base, and as a language feature the compiler can do more with it than it can do with a random function call.
About half of the things I want from CPAN are available through distribution packages, and things will usually work when I use the distribution packages I can get and then install the rest from CPAN.
First, CPAN is old and is labor of an older generation of programmers who were attentive to that sort of problem. Language being Perl and having the same culture in it helped a lot as well.
Moreover, CPAN is available in distributions, as you say, and no distribution maintainer wants to package and ship a dependency hell, so this is a gentle but firm deterrent as well. Lastly, Perl's standard library is comprehensive for what it does, so it doesn't need leftpad style utilities as external libraries.
For a lot of stuff that could be done with the stdlib in a lot of languages you really do either need a 3rd party package in JS or write a lot of code (and tests) yourself
As a last resort, 3rd party package managers do exist. I don't use them unless I'm forced to use them, but they seem to have a shallower dependency tree, so problem is not as exaggerated as in package managers bundled with the languages themselves. Even gopls pulls in 24 more dependencies for its install. Nice.