Live data from Hacker News

Entropic – A Federated Package Manager for JavaScript

twitter.com

21–30 of 69 posts

Re: Entropic – A Federated Package Manager for JavaScript

#21

I am wondering, without having much knowledge about it, could a system like Ubuntu's package manager & registry (or any other Linux's distro) be suitable for JS?

Of course. APT is used to install JS libraries already but people prefer the npm because it gives people enough freedom [to make the ecosystem a complete mess].

Re: Entropic – A Federated Package Manager for JavaScript

#22
post #2

I don't believe yet another package manager is going to fix anything, more likely it'll take years to reach maturity, will be riddled with bugs until then, and have some serious fundamental issues on its own that will be revealed down the path, if it ever gains popularity. Don't fix it if it aint broke should be a motto for more developers. Settling for good enough prevents second system effects and retards immaturit…

>Don't fix it if it aint broke should be a motto for more developers.

npm is broke, though. Better to have a replacement ready for when they finally go bang under the pressure of venture capitalism.

Re: Entropic – A Federated Package Manager for JavaScript

#23
post #15

Earlier quoted context omitted.

That's a fault of npm - _the registry_'s policies, not of the package manager. You could do the same with most other popular package managers if you have control over the registry.

Sounds like you're agreeing with the Entropic people: https://twitter.com/bitandbang/status/1134872073896169472 Their approach is to create a different kind of registries, and inevitably they need a new client that supports them.

Yes, changing the registry model is key.

I'm not quite convinced by their federated approach though. It feels like its just spreading out the problems, and not really preventing them from happening, and in the worst case even creating new ones.

As pointed out in the talk, running a registry becomes expensive once it becomes popular. So now instead of 1 central registry (which I agree is not a good idea) needing to fund the hosting, you have maybe 10-100 federated registries, with each one of them needing to fund the hosting and coming up with different economic models around it.

I'm also not sure how they would really be able to ensure immutability of packages in a federated system. A node could simply publish two different packages with the same name and version number to different parts of the network. Yes, you can reduce the impact by saving an integrity hash in a lockfile, but npm already does that today.

Re: Entropic – A Federated Package Manager for JavaScript

#24
post #20

The thing I don't get, is, I'm using Git repos as source for my packages for years now, why can't everyone do this?

Not everyone tags releases so you're stuck if you need a fixed version of a dependency.

Or you can tie it to Github and then download a release from their CDN.

Re: Entropic – A Federated Package Manager for JavaScript

#25

I am wondering, without having much knowledge about it, could a system like Ubuntu's package manager & registry (or any other Linux's distro) be suitable for JS?

Of course. APT is used to install JS libraries already but people prefer the npm because it gives people enough freedom [to make the ecosystem a complete mess].

Can you please explain how APT limits freedom?

Re: Entropic – A Federated Package Manager for JavaScript

#26

Earlier quoted context omitted.

Of course. APT is used to install JS libraries already but people prefer the npm because it gives people enough freedom [to make the ecosystem a complete mess].

Can you please explain how APT limits freedom?

I take it to mean that with npm there is a very low barrier for entry. I mean it's not difficult to actually host an apt repo on your own server or on S3, but there's still more you need to know to get to that stage. I personally think that using something like apt for Node.js dependencies is a very good idea. I work with Node at work and on the side, and my/our usual stack is either Debian or Ubuntu. Even when Docker gets involved it's usually a Debian or Debian based image. [Edit: phrasing]

Re: Entropic – A Federated Package Manager for JavaScript

#27
post #12
post #9

If I visit their website without the www ( http://entropic.dev ), I get some curious JSON: {"server":"entropic","version":"0.0.1","message":"GCU Fate Amenable To Change","website":" https://www.entropic.dev" } Anyone know the significance of "GCU Fate Amenable To Change" ? I did Google it, but that didn't help much.

It's a reference to Iain Banks' culture universe - it's the name of one of the (sentient) ships.

https://theculture.fandom.com/wiki/Contact_Unit

Re: Entropic – A Federated Package Manager for JavaScript

#28
post #20

The thing I don't get, is, I'm using Git repos as source for my packages for years now, why can't everyone do this?

I have only done this partially over the years, but yes I agree, it's a viable alternative and when it comes to private internal modules you don't ever have to worry about singing up to npm enterprise or deploy Nexus or equivalent.

Re: Entropic – A Federated Package Manager for JavaScript

#29
post #20

The thing I don't get, is, I'm using Git repos as source for my packages for years now, why can't everyone do this?

Not everyone tags releases so you're stuck if you need a fixed version of a dependency. Or you can tie it to Github and then download a release from their CDN.

You can indeed reference a git repository with a single commit specified, like described in the npm install docs[1]. Not very user friendly, but it works.

Example:

"dependencies": { "myprivatemodule": "git+ssh://git@github.com:user/project.git#commit-hash" }

[1] https://docs.npm.red/cli/install.html

Re: Entropic – A Federated Package Manager for JavaScript

#30
As "life finds a way", I believe packages will find a way too.

If npm stops being the go-to solution, another one will take its place, naturaly adopted by the community, following the path of least resistance. Centralized or not. It does not really matter. What does matter is the code that's being downloaded. Modules dependencies management is an old problem, countless of tools have tackled.

Is the node and front projects architectures that dependent on npm ? It's a little coupled but not that coupled ? The dependency management still require a little brain power from dev teams, or does it really fully relie on the package managers ?

Post reply on HN