Let's talk about package managers
Guys,
It's 2026 and almost 2027. We have AI designing PCBs, doing bank transfers and assisted self-driving cars. But for some reason, C++ devs need, for every package we install, to do research. Why is this package management issue not yet resolved?
Others have tried: VCpkg, conan2, build2, cabinpkg, SCons, CMake's Fetchcontent. All have steep learning curves, none is written in C++ , and feel like compromises. Coming from cargo and uv, i just couldn't believe the CMake boilerplate. `cmake init`? `cmake new`? `cmake add`? Need to do everything by hand. Want an http client? Want a testing library? Want to manage documentation? Figure it out yourself.
We created a package manager for C++ at my company for dependency resolution, as none of the existing package managers were complete. 2 weeks ago, with AI's help i created a public version of it, called cortex (`cx`) and released it on reddit. It uses pubcrub package resolution, mixes `uv` and `Cargo` features for declarative package management in C++, writing in modern C++ 23. It wraps CMake and lets it do most of the work, at least until the build engine is built.
The communities ate me up. Got no single improvement or recommendation.
A question to the community: how do you recommend we tackle the package management problem in this modern age?
•
u/Salty-Paint-9700 1m ago
> how do you recommend we tackle the package management problem in this modern age?
Stop making new package managers. You're making it worse.
The problem is not the package managers themselves. Those can be improved. Any and all of them. Same goes for tooling and integrations. The problem is C++ community has decades of not having a unified way to do this, a handful of common choices now and a metric ton of custom inhouse solutions (like yours here).
Basically incredible fragmentation. You don't deal with fragmentation by fragmenting it more (XKCD standards comic is relevant here). Pick a side (existing one, not new) and pump a boat of money into promotion and adoption by tools.
•
u/azswcowboy 1m ago
> how do you recommend
Use Conan, vc package, or your platform packager. You likely got limited response because the problem is much more difficult than people think and one off attempts go nowhere. If you’re even mildly serious please go look at CPS - common package specification - which is where all of this should go in the future.
•
u/Jakabxmarci 0m ago
"It wraps CMake"
oh god