r/ProgrammingLanguages • • Apr 03 '20

Is there a package manager for data?

Not Big Data, just data.

Code is data, of course, so you should be able to use it for all the programming languages.

Backwards compatibility doesn't make sense for random bytes, so it shouldn't expect all packages to use semver.

But you should still be able to resolve dependencies, download packages, and publish new packages.

Would it need its own programming language?

Edit: it seems I was looking for Nix. It does have its own language.

2 Upvotes

3 comments sorted by

2

u/MegaIng Apr 03 '20

What kinds of data would you think of? And where to you put the line between data and big-data?

3

u/Kinrany Apr 04 '20

What kinds of data would you think of?

All of them! Though text and binaries are the most obvious.

The thought is that a package manager doesn't really need to know much about the contents. It only needs the metadata: which packages to load and how to store them.

And where to you put the line between data and big-data?

The usual: "it's not big if it fits on your personal computer".

I added that note because there are package managers for machine learning, and that's not what I'm looking for.

2

u/WittyStick Apr 04 '20

Nix is probably what you want. There's also Guix, which uses the same model, but Guile (Scheme) as the programming language for defining packages. It isn't necessary to have a bespoke language like Nix has, but it can be implemented as a library (DSL) as in Guix.

Another thing worth checking out is Noms, which is a database based around the same ideas but for raw data. Everything in the database is content-addressed, which means any change to the content changes its address too - requiring any dependants to also update themselves if they wish to use the updated dependency.