r/cpp • • Sep 14 '23

Which package manager are you using?

It's 2023 and you should be using a package manager. Which one?

Sep 17 '23
466 conan
625 vcpkg
29 spack
82 CPM
1730 No package manager :(
248 Other (please specify)
38 Upvotes

187 comments sorted by

View all comments

70

u/[deleted] Sep 14 '23

There was no option for

No package manager :)

50

u/[deleted] Sep 14 '23

[removed] — view removed comment

7

u/[deleted] Sep 14 '23 edited Dec 29 '23

arrest steep squealing dependent disgusted simplistic ancient disagreeable toothbrush plants

This post was mass deleted and anonymized with Redact

3

u/13steinj Sep 15 '23 edited Sep 15 '23

Do you work inn programming, i.e a real production environment?

Not the person you asked, but yes.

If so, how often do you introduce new dependencies?

Bit of the wrong question, but I'll answer it anyway. Unfortunately, unironically, at a rate of maybe 1/month on lifetime average. Recent average is unfortunately higher.

In terms of first party internally? Lifetime average is ~4/ month, but has slowed down to just over 1/month.

In terms of how often they are updated... orders of magnitude more often.

E: changed answer based on accurate info rather than my collective amnesia. Only changed qualifiers / numbers.

1

u/lolfail9001 Sep 15 '23

Unfortunately, unironically, at a rate of maybe 1/month on lifetime average.

Are we talking about a single codebase with literal hundreds to thousands of dependencies or a bunch of entirely different projects each with tens? No, i am actually quite curious because i can't imagine ever dealing with codebase that has more than 10-20 meaningful dependencies, package manager or not.

1

u/13steinj Sep 15 '23

What does "meaningful" mean? What does "codebase" mean?

The rate I give means on the order of 100-300 dependencies (sorry, can't get too detailed) assuming all were still in active use. Based on an internal list it's below that lower bound but not by much.

Large scale systems will have a bunch of dependencies. Because maybe you'll have 20 third party deps total across multiple apps using internal "shared" (misnomer) libraries. Maybe a single app ends up with 10, because of the tree of stuff. But those third party tools have their own deps. This repeats recursively. Then someone "just gets it to work" by using one of the transitives in the tree directly for some niche case, and now it's a "meaningful" direct dependency.

The rate I gave is not specific to my current org. Different lifetimes, but previous org had more or less the same number of third party deps, but rarely chose to muck with a transitive so yes only 20 or so were ever "meaningful" as I'm assuming you meant it.

I will admit my current org has far more internal first party dependencies than my most immediately previous one. The one before that, I'd rather not speak of since it wasn't a C++ role.