News for hackers. Stuff that matters.
Re:I've Just Liberated My Modules by cookrn on Tuesday March 22, 2016 @09:01PM (#11341306)
What if such a system was implemented using IPFS[0] (or similar) for storage?

[0] https://github.com/ipfs/ipfs

Re:I've Just Liberated My Modules by smaddox on Tuesday March 22, 2016 @09:14PM (#11341369)
I'm surprised all package managers don't use an IPFS-like system that uses immutable state with mutable labels and namespaces. Now that IPFS exists, and provides distributed hosting, it's even easier.
Re:I've Just Liberated My Modules by viraptor on Wednesday March 23, 2016 @01:46AM (#11342381)
As much as I agree, IPFS is still very much under construction and I don't think any known package managers got started after IPFS was reliable.

You can experiment with ipfs-backed git remotes though. That's already possible.

Re:I've Just Liberated My Modules by noffle on Wednesday March 23, 2016 @01:02PM (#11346242)
gx is a generic package manager on top of IPFS that uses git-style hooks for adding per-language support. It's already being used to manage dependencies on the go-ipfs project: https://github.com/whyrusleeping/gx

Bonus: there's also a IPFS git remote implementation! https://github.com/cryptix/git-remote-ipfs

Re:I've Just Liberated My Modules by jplur on Wednesday March 23, 2016 @11:05AM (#11345118)
Yes the IPFS implementation might change but not the content multihash addressing. Linking to data with those addresses is the generic 'package management' that solves all these problems (references to mutable data at mutable origins, circular dependencies, data caching, namespace conflicts). The specifics of resolving links will hopefully be something we don't think about much.

I've played around with ipfs.js for resolving links into eval'd js at runtime and imagine a npm replacement would be pretty trivial. The IPFS peer to peer swarm seems stable to me but you could also dump all your hash-named files into a s3 bucket or something as a fallback repo.

Re:I've Just Liberated My Modules by nikolay on Tuesday March 22, 2016 @11:35PM (#11341965)
No signatures, no (at least!) an IPFS mirror as a backup option - how can one trust NPM or the likes?!
Re:I've Just Liberated My Modules by kylecordes on Wednesday March 23, 2016 @12:05AM (#11342084)
NPM doesn't even have immutable versions. Many would love to see this improved.
Re:I've Just Liberated My Modules by jakub_g on Wednesday March 23, 2016 @04:14AM (#11342827)
What you mean by that? It used to be possible to republish a version (it broke our build when a dep was republished with a breaking change, that's how I learnt about it) but this was fixed some 2-3 years ago IIRC
Re:I've Just Liberated My Modules by Ericson2314 on Wednesday March 23, 2016 @12:57AM (#11342247)
Somewhat related, I just coincidentally stumbled upon https://github.com/alexanderGugel/ied . "Upcomming Nix-inspired features", to paraphrase their README, could well prevent this debacle.

(And btw, We Nix users very much do hope to start using IPFS :).)

Re:I've Just Liberated My Modules by ArneBab on Wednesday March 23, 2016 @09:07AM (#11344022)
Re:I've Just Liberated My Modules by gritzko on Wednesday March 23, 2016 @07:18AM (#11343446)
Git has crypto for a reason. Every package manager must have it too.
Re:I've Just Liberated My Modules by niutech on Wednesday March 23, 2016 @02:45PM (#11347131)
There is already gx package manager: https://github.com/whyrusleeping/gx