News for hackers. Stuff that matters.
Re:Cargo-style dependency management for C, C++ and other la... by aprdm on Wednesday October 21, 2020 @03:30AM (#24845556)
What about supporting multiple versions of libraries at a computer? They all support it: npm, rvm, virtualenv, cargo, golang, python, maven and etc.

A very common use case is to use some newer version of something than what shipped with the OS but at the same time you don't want to potentially cause instability in the OS...

Or you know, developing multiple projects w/ different versions from a single OS.

Also in case I really want to do it, I have to go to some obscure website download some payload and read some build instructions to see how to best integrate to my messy CMake/Make system...

All of it could literally be replaced by something akin to

    cppvenv create myproject
    cppvenv --depend-on grpc-1.40 zeromq json
    cppvenv build
Re:Cargo-style dependency management for C, C++ and other la... by qppo on Wednesday October 21, 2020 @04:08AM (#24845743)
You would have to go to some obscure website to download some payload and read build instructions to see how to beat integrate it with your new cppenv program instead. That's the problem to solve, C++ is old and most of it written before those solutions existed, and most of it doesn't use the same set of tools.

Like I said, I don't think this isn't a problem or that a solution wouldn't be nice. It's just not functionally different from the myriad of existing solutions.

Re:Cargo-style dependency management for C, C++ and other la... by dkersten on Wednesday October 21, 2020 @04:32AM (#24845887)
You edit your generated makefile or tweak the autoconf (or whatever you used) config to point at a specific version of the library, I guess.
Re:Cargo-style dependency management for C, C++ and other la... by otabdeveloper4 on Wednesday October 21, 2020 @03:49AM (#24845644)
Nix does what you want.
Re:Cargo-style dependency management for C, C++ and other la... by arximboldi on Wednesday October 21, 2020 @04:09AM (#24845748)
Yes, I love Nix. The only caveat is that it does not work on Windows...