Hacker News new | ask | show | jobs
by xyse53 26 days ago
This doesn't work if the pulls are happening in swarms of ephemeral sandboxes.

Also, maybe FUD, but is there anything useful to learn from (p)npm other than cautionary tales?

2 comments

There is always something useful to learn, even if it's a mistake. pnpm in particular centralizes your packages, and symlinks them to each project that needs them, which cuts down on file copy and disk usage significantly. The same principle could be applied to cargo/rust, python venvs, dotnet, or even large C++ projects could improve their disk usage and file copy significantly if they followed the same idea. Why do you have to have a massive target folder in every rust project if all that could live in a hash addressable shared store. Its the same basic idea of CoW or deduping file systems, but done in the application for far better result.
> This doesn't work if the pulls are happening in swarms of ephemeral sandboxes.

This is incorrect.

It actually will work if you mount a drive. Github mirrors can be on separate drives. Now I haven't fully tested it's safety in that situation yet, like I have with local dev on Windows and MacOS.

> Also, maybe FUD, but is there anything useful to learn from (p)npm other than cautionary tales?

This is also incorrect.

Denigrating pnpm's well regarded optimizations because NPM packages have vulnerabilities unrelated to NPM is missing the point.