logoalt Hacker News

filipdobro • today at 8:47 AM • 7 replies • view on HN

> Dependency friction in C++ is so punishing that authors advertise “header-only, zero dependencies!”

This article kinda sums up all frustrations I have with C++. Vcpkg seemed like a good fix at the time, but it needs so much more improvement and adoption.

A lot of good solutions to the raised issues in the article require us to rip the bandaid off, however I believe the community built around C++ has built their systems around the premise that it must remain stable and predictable.


Replies

mort96 • today at 9:18 AM

I can not express how disinterested I am in using a Microsoft Visual C++ package manager. There will always be a large contingent of C++ users who won't touch vcpkg with a 10 foot pole.

Anyway I don't understand the aversion to just using submodules. What we need is a decent standard build system, not a package manager. We have CMake which is wide-spread but garbage, and we have Meson which is pretty good but not as widely adopted. If every library had a meson.build file I'd be mostly happy with just having submodules to them in my subprojects/ dir.

➕ show 2 replies
happyweasel • today at 9:41 AM

Vcpkg solved most of my problems in a windows env - vs+msbuild+vcpkg in manifest mode. It is also not really intrusive, just one json file. Auto link is very useful. I am very happy when I see a dependency is available via vcpkg.

egorfine • today at 9:45 AM

Unfortunately, vcpkg is not (in practical sense) available for operating systems, it's a windows-only solution.

➕ show 1 reply
atemerev • today at 10:07 AM

I use Spack, from my academic years.

pjmlp • today at 8:59 AM

My only pain point with vcpkg is the team's reluctance, or lack of resources (in a 4 trillion valued company(!)), to make the experience at least as nice as using NuGET, across VS and VSCode.

Note that Clion does exactly this for vcpkg.

madduci • today at 11:05 AM

Yeah, and where are all these zero dependencies libraries that implement TLS, JWT handling, Database Connection? Are here with us?

on_the_train • today at 9:57 AM

Vcpkg was really hurt by skipping a release, without any communication, even ignoring tickets. We thought that our single source of dependencies was silently killed.