MHN
Add a comment on Hacker News →
2 of 459 comments
  1. I like the implication that we can have an alternative to uv speed-wise, but I think reliability and understandability are more important in this context (so this comment is a bit off-topic).

    What I want from a package manager is that it just works.

    That's what I mostly like about uv.

    Many of the changes that made speed possible were to reduce the complexity and thus the likelihood of things not working.

    What I don't like about uv (or pip or many other package managers), is that the programmer isn't given a clear mental model of what's happening and thus how to fix the inevitable problems. Better (pubhub) error messages are good, but it's rare that they can provide specific fixes. So even if you get 99% speed, you end up with 1% perplexity and diagnostic black boxes.

    To me the time that matters most is time to fix problems that arise.

  2. Other design decisions that made uv fast:

    • uncompressing packages while they are still being downloaded, in memory, so that you only have to write to disk once
    • design of its own locking format for speed

    But yes, rust is actually making it faster because:

    • real threads, no need for multi-processing
    • no python VM startup overhead
    • the dep resolution algo is exactly the type of workload that is faster in a compiled language

    Source, this interview with Charlie Marsh: https://www.bitecode.dev/p/charlie-marsh-on-astral-uv-and-th...

    The guy has a lot of interesting things to say.