Pnpm 12.0

(pnpm.io)

84 points | by jcbhmr 14 hours ago ago

63 comments

  • BlueGreenMagick 13 hours ago

    > It is a rewrite of pnpm in Rust

    Their benchmarks[0] report that a clean install with lockfile is about 3x times faster (7s -> 2.2s) and a no-op install is about 29x times faster (517ms -> 18ms)

    [0]: https://pnpm.io/benchmarks

  • 1matin 12 hours ago

    Whenever you see a lot of long dashes (—) in a writing, there's a high chance Claude has written it.

    • apt-apt-apt-apt 12 hours ago

      Perhaps – but it's a useful grammatical construct in everyday use, handy for structuring sentences.

      And with the prevalence of AI, it rubs off on the smelly humans, who also find it useful and use it more as a result. (I used an en dash here instead of an em one – also valid, easier to type, and shorter).

      • shikck200 8 hours ago

        Nah. I NEVER say the dash pre-AI, at least in commoners writings. Maybe in some books etc. The dash you read today is 99.9% AI generated.

        • arw0n 5 hours ago

          I've used it extensively in English due to learning the language through a lot of older books - but I've never bothered to actually pull out the emdash, I would hope people can see that I'm not trying to subtract one sentence from the other.

        • ofrzeta 5 hours ago

          Where do you think the LLMs got the emdash from? When I worked as a magazine editor we took good care to discern ndash and emdash in printing. In Germany it is a Bindestrich (which links words, hence "bind") and Gedankenstrich (this is where you have a pause in thinking and continue the sentence afterwards).

        • surgical_fire 7 hours ago

          On the rare occasions I used Word to write things in the past, it would replace dashes with em-dash.

          I normally use dashes when writing, never bothered myself with writing an em-dash properly otherwise.

    • veidr 12 hours ago

      This heuristic is commonly believed — and expressed on this website — but is idiotic. Plenty of people have known how to use em dashes when writing on a computer since the 1980s. (This was true even before UTF-8 was invented to make extended characters work across platforms; instead of ⌘⇧-hyphen, we'd just type "--" to approximate it.)

      The reason LLMs tend to use a lot of em dashes is that the human-authored texts they were trained on used a lot of em dashes.

      • tgv 11 hours ago

        > Plenty of people have known how to use em dashes

        Plenty? I don't think it's that many. And knowing how to use them, doesn't mean they would actually use them. In my experience, em dashes are mainly found in academic literature. Chances that an em dash in a new text comes from an LLM are pretty high.

        Your use of it is dubious, I think. Commas would serve equally well --or better-- since it's a simple conjunction, not an interjection.

        • dkdbejwi383 11 hours ago

          Markdown is ubiquitous in the kinds of places Hacker News visitors also tend to visit, like GitHub, various ticketing and project management systems like Jira, note takers like Obsidian and Notion (or an approximation of Markdown).

          I've used `--` for years in place of an em-dash, which markdown renders as an actual em-dash.

      • _leom 10 hours ago

        The text also includes en-dashes, I struggle to believe that someone actually manually typed those.

      • smt88 12 hours ago

        This is untrue and a naive understanding of modern model training.

        Opus 5 does not speak like a normal, average, or common English user. For example, it says “stated plainly” or “worth stating plainly” (two very uncommon English phrases) every two or three responses.

    • sevg 12 hours ago

      In this case, the emdashes are just tip of the iceberg. The writing is so Claude that it’s painful to read (and in fact I stopped reading to save my mental health).

  • deanc 12 hours ago

    I'm curious, as it's not mentioned, are there any performance improvements as part of this rewrite?

  • norman784 12 hours ago

    I got to the conclusion that boring is good enough, for me NPM is the best tool, is not that fast, but the installation speed is not that bad, considering how many times I need to run from scratch, the difference does not matter, it is stable and it's the default Node package manager, so I don't need to bother to install in CI any other tool, etc. My experience for long living projects is to stick with the defaults, because in a few years third party tools will change, it happen to my team with Yarn classic, now that we are with vanilla Node and NPM no worries, same with 3rd party dependencies, just use as less as possible.

    • Chyzwar 12 hours ago

      Unless you care about security, stability, DX, speed and correctness then npm is fine choice.

    • CraigJPerry 12 hours ago

      Describing NPM as boring is a stretch. Given its security model, i think spicy is a far more apt label.

      I have switched to pnpm already.

    • catlifeonmars 5 hours ago

      Npm likes to run package lifecycle scripts of your dependencies by default. You have to explicitly opt out of this.

      It’s probably the worst package manager out of npm, pnpm, yarn, and bun.

    • taspeotis 12 hours ago

      I have the same experience - npm was bad, now it is fast enough.

    • brazukadev 4 hours ago

      yeah the problem is npm is now Microsoft, just like Github. I trust Node. I don't trust NPM.

  • xiaoyu2006 13 hours ago

    Time to hop off I guess. They don't even bother to write changlog on their own.

    • jdkoeck 13 hours ago

      Same here, what if the internals get the same absence of care? No thank you.

  • ledoncool 13 hours ago

    Hooray!

  • winterqt 13 hours ago

    Good to see the maintainers don't care enough to take the time to write a release blogpost themselves. sigh

    • paavohtl 13 hours ago

      I was also bothered by this. I don't care if you use LLMs to write most or all of your code, but at least have the courtesy of actually writing your blog posts & readmes, to demonstrate that you at least understand what the LLM generated for you.

    • techpression 12 hours ago

      Hey Claude, write in the worst possible claudism way you possibly can, and make it sound like every other text on the internet that is published nowadays.

      "This post covers what pnpm 12 adds that pnpm 11 never shipped."

  • mmmeff 13 hours ago

    Am I the only one that hates the decision to no longer support corepack?

    • mirekrusin 13 hours ago

      pnpm 12 supports corepack (or better phrased - corepack supports pnpm 12).

      they just don't recommend it.

      nodejs stopped bundling corepack since node 25, maybe you're referring to that?

    • winterqt 13 hours ago

      Is "pnpm installs the other package managers" what you're talking about, or something else? That doesn't quite read like removing corepack support to me, though I might be missing something obvious.

    • catlifeonmars 13 hours ago

      Same here. Corepack was fine and there is already too much churn

    • Chyzwar 5 hours ago

      It is node.js core that decided to drop corepack, now both yarn and pnpm are build own version of that.

    • joshuat 13 hours ago

      First I'm hearing of it, and it does dampen my enthusiasm for v12 a bit.

  • magnio 13 hours ago

    The more I read these ass Claude Opus writings the more I believe AGI is further away from us.

    • zarzavat 12 hours ago

      I thought 'how bad can it be?', yet only three paragraphs in "a specifier now names a repository rather than choosing a transport"

      If you're going to serve us slop then at least serve us good slop, give it a pass through GPT 5.6 to clean up the English.

      • serbuvlad 12 hours ago

        I remember the most interesting things to do with 3.5 Turbo was to ask it to rewrite paragraphs in different styles.

        Why can modern LLMs basically not do that anymore? They each have their own very particular writing style?

        It it all just beaten out of them in post training?

        • zarzavat 10 hours ago

          The objective of RL changed circa 2024.

          The 3.5-4o era models were trained by RLHF primarily to write in a way that's pleasing to humans.

          Starting with o1 the focus switched to reasoning, coding and benchmarks. If you remember when GPT-5 came out it introduced a new "colder" writing style (which was partly intentional) which made a certain subsection of Reddit Very Upset that Sam Altman had killed their AI boyfriends and they forced him to reinstate the warmer 4o.

          The artificial default voice of modern models is optimized for reasoning efficiency rather than understandability. Unfortunately the artificialness has a tendency to leak out into the output tokens because reasoning tokens and output tokens are all still just tokens. You can prompt recent models to write in a more understandable style and they do a fairly good job of it, but it's not the default anymore, which means you will have to keep re-prompting it.

          I don't think it's an unfixable problem, Anthropic in particular are just not very motivated to fix it because Claude is much less popular for chat than ChatGPT is.

          • serbuvlad 6 hours ago

            You can certainly nudge it directionally, but it has its own style. And verbal tics etc.

            So it simply cannot keep documentation or a codebase in the same style, and it cannot write <information> in <style>.

            With 3.5 Turbo I used to give it bulleted information and paragraphs of what I wanted it to sound like and it'd replicate that style, then I'd edit the factual details it got wrong.

            Now the situation has completely reversed! It can extract the data itself, but I have to write the stuff by hand. Humorously, it will do bulletpoints for me, and I write the thing.

      • IanCal 12 hours ago

        What’s the problem with that? Seems to make sense to me with the example and it’s important to point out. I’d expect an llm to explain in more detail to be honest.

        • anon7000 12 hours ago

          It doesn’t quite make sense at face value by itself. It’s too condensed and takes some effort to parse out what it’s actually getting at. It’s not communicating why the change was made. It’s just a shiny way of saying the words without actually helping me easily understand what’s happening, what’s changing, why, etc.

          In plain English, maybe it’d be more like “Package specifiers for git repositories should no longer include the HTTPS/SSH protocol. Instead, reference the repository name, and pnpm will resolve it through HTTPS. If SSH is still needed, add an override in your global git settings”

          • netniuq 12 hours ago

            yes! and this is sooo weird given that Opus 4.8 or 5 producing this are supposed to be "smart" models – how far into the benchmaxxing do you have to lean to get to this point?

        • zarzavat 11 hours ago

          If you spend all day talking to Claude then its mannerisms begin to grate on you like fingernails on a chalkboard.

          There's nothing wrong with the English per se, it's grammatically correct, it just sounds so "Claude". Claude talks using pithy word soups that lack the niceties and structure of human writing.

        • fatata123 8 hours ago

          [dead]

      • deanc 12 hours ago

        Maybe the author is a non-native English speaker, and this enables him to communicate things he's not able to do himself. Should OSS maintainers start hiring professional translators? Are you going to fund that?

        We really should stop jumping to conclusions and shaming people for using these tools just because you don't like the language of the LLM. How is a non native speaker meant to determine what is English slop and what isn't?

        I should also note, I am a native speaker. There's absolutely nothing wrong with what's written in the part you chose to paraphrase, and it makes sense to me.

        • flohofwoe 12 hours ago

          A non-native speaker most likely writes more 'understandable' English than the weird convoluted Claude style.

          FWIW though, you can ask an LLM to write in 'Simplified Technical English' (see: https://www.asd-ste100.org/), which at times reads like its written for a child, but it is much better for inclusion of non-native speakers.

        • raincole 12 hours ago

          > Should OSS maintainers start hiring professional translators?

          The world existed before 2022.

        • fredrikholm 12 hours ago

          This is a recent degradation; they've been writing blog entries for years.

          As a non native English speaker I can also attest to this trade being extremely demanding of English fluency:

          > public static void DoTheThing(Configuration config)

          Isn't something you can not understand and still function as a software engineer. Yes, some schools and universities teach in other languages, but the entire ecosystem from code to documentation to articles is nearly almost always in English.

          • deanc 12 hours ago

            It doesn't matter. I work with people who aren't native speakers (in a country where English-education is a very high standard) but are mostly fluent in day to day conversation and meetings and they are not comfortable writing long-form texts - and it shows. Your expectations are unrealistic.

            • sevg 12 hours ago

              > Your expectations are unrealistic.

              No they are not.

              Claude isn’t the only option for such a person, as translation tools exist, and English-speaking colleagues exist to proof-read.

              In any case, the article author writes perfectly well in English pre LLM era: https://www.kochan.io/nodejs/it-is-ok-to-keep-random-things-...

        • veidr 12 hours ago

          Ditto. I've started to wonder if the real problem with many of these complaints about LLM writing is actually reading comprehension.

  • IanCal 12 hours ago

    I’m going to write a filter to remove comments that are just bitching about whether something is AI written or not. Seeing “slop” now starts to give me m$ vibes

    • brazukadev 4 hours ago

      > Short-term AI/GPT/LLM consulting services to help you strategize, discuss, and navigate the rapidly evolving world of artificial intelligence.

    • JodieBenitez 11 hours ago

      Or downvote and then remove.

  • knlam 12 hours ago

    just why pnpm? you are stable, you are loved by the community. Now you feel the need to throw it away to rewrite for what? Can anybody give me a good explaination

    • cpursley 12 hours ago

      Check the benchmarks, hopefully even more JS slop is converted to Rust for the sake of humanity.

  • fwlr 12 hours ago

    Had to check the calendar to be sure it wasn’t somehow April 1st. No, it’s August. Huh.

    I don’t see how it’s possible that the pnpm maintainers are unaware of the bun AI-rewrite-to-rust saga… so I’m baffled, befuddled, and overall at a loss to make sense of this decision.

    • johnnypangs 12 hours ago

      To be fair to the pnpm maintainers, they have been working on this well before the bun AI rewrite. The first commit in their rust experiment is in 2021.

      https://github.com/pnpm/pn/commits/main/?after=e24c0b293f1f4...

    • GrayShade 12 hours ago

      https://bun.com/blog/bun-v1.4 has some pretty nice numbers indeed.

    • codeflo 11 hours ago

      > unaware of the bun AI-rewrite-to-rust saga

      I seem to be mostly unaware, at least, it's not self-explanatory to me why a Rust rewrite would be that baffling. What's the verdict on the Bun rewrite, and how does that relate to pnpm's decision? Also, wasn't Bun switching from Zig to Rust instead of from TypeScript to Rust like pnpm? I get the impression that many web infrastructure projects have been switching to more native languages.

      • fwlr 10 hours ago

        I expect the pnpm maintainers to be familiar with it because bun is one of the other three or four major JavaScript package managers. To put it another way, if you gathered up the 100 people in the world working on the most similar problems to pnpm’s own work, like 15 or 20 of them would be working on bun.

        I believe the objective verdict on the rewrite is “actually, everything went better than expected”, but it was and seemingly still is quite controversial and engendered a fair bit of bad blood, which I would have thought would be undesirable or demotivating to maintainers.

    • raincole 11 hours ago

      Bun rewrite seems like a big success story.