Comment on Why do so many programming languages have their own package manager?

ThunderComplex@lemmy.today ⁨1⁩ ⁨week⁩ ago

I wanna tackle the question „What’s the benefit?“ first. Imagine one package manager with one repository to serve multiple languages. Now I want to install a library for my rust project and I include a Python library (maybe by accident, maybe intentionally). What’s supposed to happen? Rust can’t call into Python so it can’t work.
So ideally libraries would have to be scoped to specific languages, and now we’re almost back to the original situation but with a worse package manager.

And what if I want to include a C++ library in Rust? If that library isn’t heavily using external C then the ABIs are going to be incompatible, and I still can’t use the library properly.

Does that fictional generic package manager also have to ensure compiled languages compile in a ABI compatible manner automagically?

And what is the OS package manager gonna do when you have two separate projects requiring two different versions of the same dependency?

source
Sort:hotnewtop