5 ms·
Ugh. Hate to be Debby Downer. I mean, nice effort, but one of the crappy things about some of these newish languages is how each of them comes with their own pa
by ryandrake 10y ago
Ugh. Hate to be Debby Downer. I mean, nice effort, but one of the crappy things about some of these newish languages is how each of them comes with their own package manager baggage that is different from the package manager that all the rest of your software is installed through.
So I have my Debian setup and I'm happily using apt to install all my software. Now ruby comes along and I need some libraries and have to go and install everything with gem. And I can't use apt to see what gems I have installed and vice versa! Argh!!! Now I have to write some python code and here comes pip... And node/npm... and on and on.
apt-get install libx11-dev is just fine for my C and C++ development needs, thankyouverymuch. I don't see the value in yet another incompatible package manager.
- ioquatix 10y agoThe reality is that these tools add value that extends beyond mere package management. You are right though, if you just use them to install things, and not as part of a development process, they might seem superfluous.
- tyoverby 10y agoLet's say that you and I both create a library. You try to publish your C++ library to the standard debian repository, and I'll try to publish mine to cpam, npm, pip, etc... If you actually manage to get your library included, then we can compare how long it takes to update your library.
- paulddraper 10y agoSure. I publish to deb repos all the time. (I've found Bintray to be the easiest.)
- tyoverby 10y agoI didn't say "a" deb repo, I said "the standard debian repository". Just like when I'm talking about NPM, I'm talking about the main NPM repository, not my company's private NPM server.
- paulddraper 10y agoWell, you've chosen a terrible comparison then. How many NPM repos are there? Just one, too-big-to-fail, centralized repository. Don't ding apt/deb just because people setup their own repos rather than put all the code in the world into one bucket. There's a lot more inconvenient things than adding the /etc/apt/sources
- tyoverby 10y ago> How many NPM repos are there? Just one, too-big-to-fail, centralized repository. There are actually plenty, it's just that they're usually found on-prem at a company.
- Sanddancer 10y agoSystems like Debian, though, have the ability to add custom repositories. So after the initial, possibly small package that just configures the sources.list, everything's handled with all the other updates. That's something that npm, etc, can't do.
- pathsjs 10y agoNpm and many other package managers support custom repositories just fine
- adrianmonk 10y agoIn theory there is no reason why build tools can't be integrated with package managers so you don't experience that kind of silliness. For development purposes, you may want to have the system build everything from source (and/or fetching pre-compiled modules from a build system repository), and output a self-contained tree of local files that you can run. For release purposes, you can in theory output a package manager package (RPM, .deb, etc.) that contains only your own code's binaries and dependency declarations that the package manager can go satisfy. There seems to be some degree of integration with build2 (see https://build2.org/faq.xhtml#why-syspkg https://build2.org/faq.xhtml#why-syspkg ) though I don't know how much exactly or whether they go as far as what I'm describing.
- pbiggar 10y agoOnce you've started using language package managers, it become very apparent that they have huge value, that apt-get doesn't bring. In particular, you get the exact version of the library you want. If you've ever had the experience of trying to make your software work with multiple versions of its dependencies because different OSes ship with different versions, then you'll know how annoying this is. This is particularly true of run-time problems. If they don't compile, then that's relatively easy to fix. If there's a difference at run-time, its often way more expensive to fix. With a package manager, you get the exact version, but you also can use different versions for different apps on your system. You can also upgrade without breaking other apps (new security version) or not upgrade if there's some good reason not to.
- flukus 10y ago> In particular, you get the exact version of the library you want. If you've ever had the experience of trying to make your software work with multiple versions of its dependencies because different OSes ship with different versions, then you'll know how annoying this is. Isn't this just kicking the can down the road though? The incompatibilities are still something you either have to deal with or users end up with 58 outdated versions of each library and the security vulnerabilities they bring. > Once you've started using language package managers, it become very apparent that they have huge value, that apt-get doesn't bring. This is what's wrong with so much modern development, we do what's easy for developers, not what's best for users.
- pbiggar 10y ago> This is what's wrong with so much modern development, we do what's easy for developers, not what's best for users. In the client software case, software that works is what's best for users. If you upgrade a library and apps start working, that sucks. If you're running server-side software, you want dev-production parity, or you can't know it works. So you _need_ to use a package manager. But the same applies to client software: you can't test all these permutations, so you can't even tell it works, and it probably doesn't.
- 10y ago
- santaclaus 10y ago> apt-get install libx11-dev is just fine for my C and C++ Language level dependency managers tend to cover a much wider selection of the extant third party library ecosystem than system level package managers.
- pjmlp 10y agoBecause Debian isn't the only game in town for OSes? I for one don't want to bother with M×N packages.
- cyphar 10y agoFor what it's worth I completely agree with you. I've recently started learning Rust and the only thing that truly bothers me about it is that it appears as though you _must_ use Cargo to manage your dependencies. I work for a company that supports a distribution (SUSE) and I also participate in a distribution's community (openSUSE) and this mentality of "let's just reinvent package management" really does bother me, because it feels like the benefits of having a single package manager for the entire system is being ignored. And this ease of pushing new packages results in a huge amount of small packages so that a standard "hello world" in many frameworks requires something like 700 packages (from a distribution side, that's 700 downstream packages that we now need to curate and maintain). Don't get me wrong, language package managers do have benefits, but they make life absolute hell for distributions. And distributions having full control of package management definitely brings benefits to users. Rust is the most extreme example, where projects can require a particular version of the nightly build of the compiler. How the hell is a distribution meant to be able to build and ship Rust code in that instance (given that distributions also provide the development tools necessary for working on said projects)? Do we create a new package for every nightly compiler build? How do we curate it? One of my colleagues gave quite a fair review of the situation and some potential future steps in his talk "Package Managers all the way down"[1]. But bringing this mentality verbatim to C++ is not a step in the right direction IMO. [1]: https://www.youtube.com/watch?v=4ua5aeKKDzU https://www.youtube.com/watch?v=4ua5aeKKDzU
- steveklabnik 10y agoYou don't have to, it's just the path of least resistance. We've been working with distros on packaging stuff; it's mostly sorted. Each distro is doing the thing that works for them. Additionally, making sure we play well with other build systems is a big goal this year generally.
- nonsince 10y agoAlso, for cargo's usecase (mostly-reproducable builds, a space that rubygems also attempts to fill) system package managers are simply insufficient. Nix is the only one that comes close, and you A) can't remotely expect anyone to have that installed already B) have no control over the repository or toolchain
- IshKebab 10y ago> apt-get install libx11-dev is just fine for my C and C++ development needs, thankyouverymuch ... on Linux.
- rafinha 10y agoWell I think exactly the opposite. In C++ it's a nightmare to build a prototype with a new library. You spend a huge time setting up the build system for that particular library, need to figure out how to plug into your code, fix dependencies (which in practice always have something broke/missing). That being, I think a propper package manager would add value to c++ dev,
- rcxdude 10y agoCommon problems with using distribution package managers for software development: - not all versions are available, and the versions which are available is different across distributions - even if the version is the same, the location is not consistent, necessitating search logic to find libraries to link to and headers to include - even if the version is supposedly the same, the distribution may have enabled different options, fiddled with the package or otherwise made it unsuitable for your use. Upstream developers often loathe to support the version your distribution uses. - multiple versions cannot be installed independently, and the version you need may conflict with the packages you are using on your system but are not dependencies of your project - This likewise can cause conflicts between different projects you are working on, causing a need for VMs and projects like vagrant, which are very heavyweight and mean you need to maintain multiple copies of your preferred editor and IDE setup. - Forking a dependency to fix or customize it (to submit a fix upstream or not) gets even more painful. All of these are much less painful for language based package managers.