Live data from Hacker News

pnpm: Fast, disk space efficient package manager for JavaScript

pnpm.io

161–170 of 173 posts

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#161

Earlier quoted context omitted.

Quoted post unavailable.

> US-backed color revolutions - including the one in your very own country, I see I hope you won't use pnpm and we won't speak again.

As much as you disagree with it, posting it on twitter to harass and get your followed to dunk on that person is not acceptable. https://twitter.com/ZoltanKochan/status/1511638290608308228

Also please do not misunderstand, people mention the US acts in order to point out the hypocrisy shown, not to justify the invasion.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#162

Earlier quoted context omitted.

>> maven just picks an arbitrary one as _the_ version No that’s never been the case. If you have conflicting versions of a dependency in your dependency graph, maven chooses the “nearest neighbour” version - it selects the version specified least far away from your project in the transitive dependencies graph. Pinning a particular choice is easy too - you just declare the dependency and specify the version you want i…

This is what I mean by an arbitrary version: it’s not determined by the dependency but by some characteristic of the dependency tree. And, this is only necessary because the JVM can’t load two versions of the same dependency (ignoring tricks like the maven-shade-plugin)

The JVM can load the same class any number of times through different class loaders -> only the (class, classloader) tuple has to be unique.

I guess the reason they didn’t went the duplicative direction is that java has safe class loading semantics at runtime and due to valuing storage/memory capacity (which was frankly a sane choice, like 10x bigger java projects compile faster than a js project that pretty much just copies shit from one place to another?)

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#163
post #159
post #90

I'm pretty immune to most JS ecosystem churn, but on package managers I'm feeling it. All I want is a package manager that is correct, causes very few day to day issues and is going to work the same way for many years. Yet everyone seems to be optimizing disk usage and speed without even getting the basics (make it work, make it right) fully covered. I don't understand why people are optimizing for disk space at all…

Other than the biggest OS pretty much choking on the node_modules black hole whenever you do a global operation on it (try deleting a js project on Windows)

rimraf is your friend

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#164
post #88

Earlier quoted context omitted.

In the USA there are different people. Good and bad. There are states that are very conservative and there is California. There are some basic values that everyone agrees upon. I think nobody can claim that everyone is bad or good in the US. Same goes for any other democratic society. Same goes for Ukraine. There are a lot of people that I don't like in Ukraine. In Russia there are some good people but they are in ex…

"Even the liberals in Russia are supporting the annexation of Crimea" - Supporting an annexation that has already happened is not the same as supporting a war. - That being said, even the liberals in the US supported the various invasions and occupations. Don't forget that Libya happened under Obama. - Even the liberals in Turkey are supporting the annexation of northern Cyprus, even the liberals in China support the…

Racist rhetoric? Don't be ridiculous. There is no Russian race. I don't block Russians if they leave Russia. I have many Russian friends in Ukraine. Only Russians that live in Russia are blocked. Russians that pay tax to a government that is waging war against my country.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#165
post #88

Earlier quoted context omitted.

In the USA there are different people. Good and bad. There are states that are very conservative and there is California. There are some basic values that everyone agrees upon. I think nobody can claim that everyone is bad or good in the US. Same goes for any other democratic society. Same goes for Ukraine. There are a lot of people that I don't like in Ukraine. In Russia there are some good people but they are in ex…

As someone who lives in the USA and is a USA citizen, I'm frequently surprised by how much people don't hold US voters responsible for the actions of the government. The US has and continues to do some pretty awful things around the world. Turning some parts of Pakistan into hellscapes where an invisible drone could kill you from the sky at any time and regularly does kill women and children with no warning, would be…

> it starts from not judging people by their ethnicity or nationality

Russians that leave Russia are not blocked.

I am Hungarian by ethnicity. I will be probably also judged for the terrible policy of Orban. I feel deep shame for it. So I understand (a little) in what situation those "good" Russians are. And I know that those Russians support my decision and understand it.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#166

Earlier quoted context omitted.

Technically true, but not how it is actually done. People very often specify packages like Babel, React, TypeScript, GraphQL, etc. as peer dependencies even when they shouldn't. Anyway, in any case, auto installing peer deps solves both situations. There really is no reason to not auto install them.

There really is - not everybody is content with having 600MB of unused dependencies being pulled in for no reason. This approach slows things down, including CI, increases surface area for security risks and makes your dependency tree inscrutable. All to account for obviously wrong use of the package manager.

By "autoinstalling peer deps" I don't mean "installing unnecessary deps" - those peer dependencies are required, you still have to install them, I just don't want to manually add them to my package.json.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#167

Earlier quoted context omitted.

There really is - not everybody is content with having 600MB of unused dependencies being pulled in for no reason. This approach slows things down, including CI, increases surface area for security risks and makes your dependency tree inscrutable. All to account for obviously wrong use of the package manager.

By "autoinstalling peer deps" I don't mean "installing unnecessary deps" - those peer dependencies are required, you still have to install them, I just don't want to manually add them to my package.json.

We’ll, it’s hard to argue with that, we simply have very different expectations. You want NPM to automatically fix what is clearly user error so that installing random plugins “just works”, and don’t care that 3rd+ level deps might end up pulling a hundred extra packages you never asked for; I want it to follow its own dependency management rules to the letter and not have anything installed by surprise.

Clearly there is an audience for the former.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#168

Earlier quoted context omitted.

> US-backed color revolutions - including the one in your very own country, I see I hope you won't use pnpm and we won't speak again.

As much as you disagree with it, posting it on twitter to harass and get your followed to dunk on that person is not acceptable. https://twitter.com/ZoltanKochan/status/1511638290608308228 Also please do not misunderstand, people mention the US acts in order to point out the hypocrisy shown, not to justify the invasion.

ah, I was wondering why did this comment chain get flagged so long after the fact

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#169

Earlier quoted context omitted.

"Even the liberals in Russia are supporting the annexation of Crimea" - Supporting an annexation that has already happened is not the same as supporting a war. - That being said, even the liberals in the US supported the various invasions and occupations. Don't forget that Libya happened under Obama. - Even the liberals in Turkey are supporting the annexation of northern Cyprus, even the liberals in China support the…

Racist rhetoric? Don't be ridiculous. There is no Russian race. I don't block Russians if they leave Russia. I have many Russian friends in Ukraine. Only Russians that live in Russia are blocked. Russians that pay tax to a government that is waging war against my country.

Maybe "racist" was not the best choice. Feel free to replace it with "discriminatory" instead.

Anyway, this does not explain your plan to keep the restriction permanently. After all they will not be paying taxes that fund the war effort after the war is be over.

Re: pnpm: Fast, disk space efficient package manager for JavaScript

#170
post #159
post #90

I'm pretty immune to most JS ecosystem churn, but on package managers I'm feeling it. All I want is a package manager that is correct, causes very few day to day issues and is going to work the same way for many years. Yet everyone seems to be optimizing disk usage and speed without even getting the basics (make it work, make it right) fully covered. I don't understand why people are optimizing for disk space at all…

Other than the biggest OS pretty much choking on the node_modules black hole whenever you do a global operation on it (try deleting a js project on Windows)

Some years back, when npm itself didn't do deduplication of modules, it was impossible to work with some projects on windows due to OS path length limit.
Post reply on HN