I sincerely hope that they keep procrastinating on packaging forever. Packaging is not a language concern. Its an ecosystem concern. Language packacke managers that are a giant pain for the rest of the ecosystem.
Ok, but your ecosystem concern concept has a big problem. The standard "ecosystems" like Linux distributions are not built around the idea of user built/provided packages, at all.
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.
Most packages in vcpkg use cmake. If library maintainer doesn't do anything too unusual in the CMake config then vcpkg can request ninja builds without any explicit support from the library.
I would argue CMake gets the job done in 99% of cases. Use whatever you want underneath it.
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?
Fetchcontent is fine for small projects but my experience has been for more complex projects vcpkg integrates better with CI and deps that use e.g. meson or autotools. Plus it supports binary caching to keep (re)compile times from getting insane.
cmake is bad for verrryyyy large codebases because it doesn't have good support for distributed compilation and caching. You need buck2 and/or bazel at that point. Despite being a small minority of codebases, they have a disproportionate amount of programmers (Google monorepo is tens of thousands of people or more).
C++ can't standardize something that'd break these use cases so packaging is unlikely to ever be fixed.
The C++ commitee needs to figure out how to describe project metadata in a way that can be read by many different tools, kind of like Python did it. Being able to specify that you depend on a project is still useful even if the delivery mechanism is an OS package manager.
Languages bringing in their own packaging ecosystem via their tool always fall prey to something I call "leftpad syndrome". Go, Rust, JS, Python...
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.
C# has the amazing feature of forcing people to pay for the libraries they use which disincentivizes using libraries. If 50% of NPM packages cost money the ecosystem would be different too!
CPAN doesn't seem to have this problem. A few dependencies have dependencies, but it doesn't seem to be the same deal where you wanted one thing and that pulls in 7 layers of dependencies.
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.
This is because of a couple of cultural and environmental factors.
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.
On the last point: JS/TS rightly gets a lot of flak for excessive third party dependency trees, but the JS stdlib is tiny.
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
The alternative is that everyone is implementing half-baked, bug-ridden "standard"-functionality for every one of their projects. Is that so much better?
I haven't seen what you are talking about. Eigen is not half baked, nor FLAME, nor RapidXML or OpenAL. Same goes for Option++, Easylogging++ (though it's recently deprecatd).
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.
False dilemma. Another alternative is curated libraries. Plus C++ leftpad never will exist because the standard library covers a lot of functionality. Then there's Boost.
That is often better, yes. But it is also not the only alternative - after all, one of the reasons that C will never die is that it's the lingua franca of the ABI world, which kinda implies that writing shared libraries in C may be a thing.
I personally think that standardising std print a mistake (for example).I’ve never worked anywhere or used any project that would use it, and fmt has already left it behind functionality wise. I think the method it was standardised in is a cop out - it being a library type means that I could implement my own without the “baggage” of what print has.
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.
We had public registries before. Also, Linux distributions provide tons of development libraries, which are also used by other packages in the distribution, which is a plus.
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.
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.