News for hackers. Stuff that matters.
Re:Uv is the best thing to happen to the Python ecosystem in... by chrisweekly on Wednesday October 29, 2025 @04:30PM (#45752642)
Webdev since 1998 here. Tabling the python vs JS/etc to comment on npm per se. PNPM is better than npm in every way. Strongest possible recommendation to use it instead of npm; it's faster, more efficient, safer, and more deterministic. See https://pnpm.io/motivation
Re:Uv is the best thing to happen to the Python ecosystem in... by Ant59 on Wednesday October 29, 2025 @04:40PM (#45752720)
I've gone all-in on Bun for many of the same reasons. Blazingly fast installs too.

https://bun.sh/

Re:Uv is the best thing to happen to the Python ecosystem in... by ifwinterco on Wednesday October 29, 2025 @04:52PM (#45752858)
I think at this point everyone on hacker news with even a passing interest in JS has heard of bun, it's promoted relentlessly
Re:Uv is the best thing to happen to the Python ecosystem in... by trenchpilgrim on Wednesday October 29, 2025 @06:02PM (#45753660)
I'm still meeting devs who haven't heard of it and get their minds blown when they replace npm in their projects. Every day is a chance to meet one of the lucky 10000: https://xkcd.com/1053/
Re:Uv is the best thing to happen to the Python ecosystem in... by fud101 on Thursday October 30, 2025 @12:50AM (#45756547)
I avoided JS for the longest time because i wanted nothing to with node or npm. With bun, i'm finally enjoying javascript.
Re:Uv is the best thing to happen to the Python ecosystem in... by throw-the-towel on Wednesday October 29, 2025 @06:41PM (#45754039)
Did you experience any compatibility problems with Bun?
Re:Uv is the best thing to happen to the Python ecosystem in... by catlifeonmars on Wednesday October 29, 2025 @10:48PM (#45755910)
Bun still segfaults way too often for my comfort but I’m crossing my fingers waiting for it to mature. It is definitely nice to have an alternative runtime to Node.
Re:Uv is the best thing to happen to the Python ecosystem in... by tracker1 on Wednesday October 29, 2025 @05:54PM (#45753583)
Deno is pretty sweet too... shell scripts that don't need a package.json or a node_modules directory for dependencies.
Re:Uv is the best thing to happen to the Python ecosystem in... by chrisweekly on Wednesday October 29, 2025 @10:20PM (#45755740)
Yeah, Deno 2 is pretty compelling.
Re:Uv is the best thing to happen to the Python ecosystem in... by nullbyte on Wednesday October 29, 2025 @04:49PM (#45752825)
I find pnpm annoying to type, that's why I don't use it
Re:Uv is the best thing to happen to the Python ecosystem in... by DemocracyFTW2 on Wednesday October 29, 2025 @05:25PM (#45753265)
IME after years of using pnpm exclusively having to type `pnpm install` instead of `npm install` is easily the single biggest drawback of replacing `npm` with `pnpm`, so yes.

FWIW I use zsh with auto-auto-completion / auto-completion-as-you-type, so just hitting `p` on an empty command line will remember the most recent command starting with `p` (which was likely `pnpm`), and you can refine with further keystrokes and accept longer prefixes (like I always do that with `git add` to choose between typical ways to complete that statement). IMO people who don't use auto-completion are either people who have a magical ability to hammer text into their keyboards with the speed of light, or people who don't know about anything hence don't know about auto-completion, or terminally obsessive types who believe that only hand-crafting each line is worth while.

I don't know which type of person you are but since typing `pnpm` instead of `npm` bothers you to the degree you refuse to use `pnpm`, I assume you must be of the second type. Did you know you can alias commands? Did you know that no matter your shell it's straightforward to write shell scripts that do nothing but replace obnoxious command invocations with shorter ones? If you're a type 3 person then of course god forbid, no true hacker worth their salt will want to spoil the purity of their artisanal command line incantations with unnatural ersatz-commands, got it.

Re:Uv is the best thing to happen to the Python ecosystem in... by ASalazarMX on Wednesday October 29, 2025 @05:42PM (#45753453)
Command alias? Even Windows can do them these days.
Re:Uv is the best thing to happen to the Python ecosystem in... by bdangubic on Wednesday October 29, 2025 @04:55PM (#45752886)
alias it to “p”