News for hackers. Stuff that matters.
Re:Astral to Join OpenAI by jitl on Thursday March 19, 2026 @11:21AM (#47441026)
uv solved it, it will be the only tool people use in 2 more years. if you’re a python shop / expert then you can do pip etc but uv turned incidental python + deps from a huge PITA for the rest of us, to It Just Works simplicity on the same level or better than Golang.
Re:Astral to Join OpenAI by pdntspa on Thursday March 19, 2026 @12:05PM (#47441685)
Then can they please figure out some way of invoking it that doesnt require prefixing everything with 'uv'
Re:Astral to Join OpenAI by tomrod on Thursday March 19, 2026 @12:23PM (#47441938)
alias in ~/.zshrc?
Re:Astral to Join OpenAI by cjp on Thursday March 19, 2026 @12:29PM (#47442021)
Re:Astral to Join OpenAI by malcolmgreaves on Thursday March 19, 2026 @12:30PM (#47442030)
uv run bash/zsh/your shell of choice
Re:Astral to Join OpenAI by maleldil on Thursday March 19, 2026 @12:41PM (#47442208)
You can source the virtualenv like normal.
Re:Astral to Join OpenAI by arw0n on Thursday March 19, 2026 @02:57PM (#47444173)
For any command, you can create an 'alias' in your shell config. That way you can get rid of the prefix.
Re:Astral to Join OpenAI by ghshephard on Friday March 20, 2026 @07:06PM (#47462004)
Solved with direnv. Also - in my .bashrc in all of my (many) clients:

  $ type uvi uvl uvv
  uvi is a function
  uvi ()
  {
      uv pip install $@
  }
  uvl is a function
  uvl ()
  {
      uv pip list
  }
  uvv is a function
  uvv ()
  {
      uv venv;
      cat > .envrc <<EOF
  source .venv/bin/activate
  EOF

      direnv allow
  }
Re:Astral to Join OpenAI by duskdozer on Saturday March 21, 2026 @08:52AM (#47466575)
That would defeat the purpose of creating and expanding their brand.
Re:Astral to Join OpenAI by 1718627440 on Thursday March 19, 2026 @11:24AM (#47441060)
I don't want software on my computer, that just downloads and installs random stuff. This is the job of the OS in particular the package manager.
Re:Astral to Join OpenAI by zbentley on Thursday March 19, 2026 @11:40AM (#47441302)
Do you not use non-OS package managers?

If not, do you develop software with source dependencies (go, java, node, rust, python)? If so, how do you handle acquiring those dependencies—by hand or using a tool?

Re:Astral to Join OpenAI by 1718627440 on Thursday March 19, 2026 @12:16PM (#47441840)
> Do you not use non-OS package managers?

Mostly no, sometimes I give up and still use pip as a separate user.

> If not, do you develop software with source dependencies (go, java, node, rust, python)? If so, how do you handle acquiring those dependencies—by hand or using a tool

I haven't felt the need to use Go, the only Java software I use is in the OS repo. I don't want to use JS software for other reasons. This is one of the reasons why I don't like Rust rewrites. Python dependencies are very often in the OS repo. If there is anything else, I compile it from source and I curse when software doesn't use or adheres to the standard of the GNU build system.

Re:Astral to Join OpenAI by maleldil on Thursday March 19, 2026 @12:42PM (#47442220)
I hope you understand you are part of a very, very small minority.
Re:Astral to Join OpenAI by zbentley on Thursday March 19, 2026 @07:29PM (#47447949)
Thanks for explaining your workflow. It seems predictable, but like it really locks you into one of the few (albeit popular) programming languages that has many/most of its development libraries repackaged by your OS. There are plenty of very popular languages that don't offer that at all.

Go and Rust, specifically, seem a bit odd to be allergic to. Their "package managers" are largely downloading sources into your code repository, not downloading/installing truly arbitrary stuff. How is that different from your (presumably "wget the file into my repo or include path") workflow for depending on a header-only C library from the internet which your OS doesn't repackage?

I understand if your resistance to those platforms is because of how much source code things download, but that still seems qualitatively different to me from "npm install can do god-knows-what to my workstation" or "pip install can install packages that shadow system-wide trusted ones".

Re:Astral to Join OpenAI by LtWorf on Thursday March 19, 2026 @02:47PM (#47444020)
Personally I run "apt install whateverineed"
Re:Astral to Join OpenAI by QuantumNomad_ on Thursday March 19, 2026 @11:31AM (#47441181)
What’s the point of constraining oneself to what is in the OS package manager? I like to keep my dependencies up to date. The versions in the OS package manager are much older.

And let’s say you constrain yourself to your OS package manager. What about the people on different distros? Their package managers are unlikely to have the exact same versions of your deps that your OS has.

Re:Astral to Join OpenAI by 1718627440 on Thursday March 19, 2026 @12:19PM (#47441880)
> What’s the point of constraining oneself to what is in the OS package manager? I like to keep my dependencies up to date. The versions in the OS package manager are much older.

I favor stability and the stripping of unwanted features (e.g. telemetry) by my OS vendor over cutting edge software. If I really need that I install it into /usr/local, that it what this is for after all.

> And let’s say you constrain yourself to your OS package manager. What about the people on different distros? Their package managers are unlikely to have the exact same versions of your deps that your OS has.

This is a reason to select the OS. Software shouldn't require exact versions, but should stick to stable interfaces.

Re:Astral to Join OpenAI by maccard on Thursday March 19, 2026 @12:07PM (#47441711)
Do you use pip?
Re:Astral to Join OpenAI by mirekrusin on Thursday March 19, 2026 @11:29AM (#47441142)
Then don't use it?
Re:Astral to Join OpenAI by wiseowise on Thursday March 19, 2026 @03:19PM (#47444485)
Don't worry, gramps, pip won't trigger your tinfoil hat.
Re:Astral to Join OpenAI by dotancohen on Thursday March 19, 2026 @03:35PM (#47444710)
In general I agree with you. But not for software dev packages.

The package manager I use, apt on Debian, does not package many Python development repos. They've got the big ones, e.g. requests, but not e.g. uuid6. And I wouldn't want it to - I like the limited Debian dev effort to be put towards the user experience and let the Python dev devs worry about packaging Python dev dependencies.

Re:Astral to Join OpenAI by jitl on Thursday March 19, 2026 @04:11PM (#47445213)
You're welcome to live in the 90s dark ages, I feel this attitude and the shape of the old linux distros like Debian that laboriously re-package years-old software have been one of the biggest failures of open source and squandered untold hours of human effort. It's a model that works okay for generic infrastructure but requires far too much labor and moves far too slowly with quite a poor experience for end users and developers. Why else would all modern software development (going back to perl's cpan package manager in 1995) route around it?
Re:Astral to Join OpenAI by ghshephard on Friday March 20, 2026 @07:18PM (#47462143)
I very much appreciate the sentiment - and agree that random crap (particularly some of the insane dependency chains that you get from NPM, but also Rust) in which you go to install a simple (at least you believe) package - and the Rust/NPM manager downloads several hundred dependencies.

But the problem with only using the OS package manager is that you then lock yourself out of the entire ecosystem of node, python, rust packages that have never been migrated to whatever operating system you are using - which might be very significant.

How do you feel about Nix? It feels like this is a nice half-way measure between reliable/reproducible builds, but without all of the Free For all where you are downloading who-knows-what-from-where onto your OS?