News for hackers. Stuff that matters.
Re:Astral to Join OpenAI by arw0n on Thursday March 19, 2026 @02:36PM (#47443842)
Ruff is nice, but not important, uv is one of the few things making the python ecosystem bearable. Python is a language for monkeys, and if you don't give monkeys good tools, they will forever entangle themselves and you. It is all garbage wrapped in garbage. At least let me deploy it without having to manually detangle all that garbage by version.

I'm done pretending this is a "right tools for the right job" kind of thing, there's wrong people in the right job, and they only know python. If no one self-writes code anymore anyway, at least use a language that isn't a clusterfuck of bad design decisions, and has 1 trillion lines of code in the collective memory of people who don't know what a stack is.

Re:Astral to Join OpenAI by bodge5000 on Thursday March 19, 2026 @04:41PM (#47445737)
> If no one self-writes code anymore anyway, at least use a language that isn't a clusterfuck of bad design decisions

I can get behind the idea that LLM's probably don't need a language designed for humans if humans arent writing it, but the rest of this is just daft. Pythons popularity isn't just pure luck, in fact its only been in recent years that the tooling has caught up to the point where its as easy to setup as it is to write, which should really tell you something if people persevered with it anyway.

I'm sorry your favourite language doesnt have the recognition it so rightfully deserves, but reducing python to just "stupid language for stupid people" is, well, stupid

Re:Astral to Join OpenAI by sitkack on Thursday March 19, 2026 @06:16PM (#47447091)
Python is the blub language now.
Re:Astral to Join OpenAI by mapontosevenths on Thursday March 19, 2026 @10:02PM (#47449482)
Keep in mind that when Graham coined that term Java and C++ were considered blub languages.

Speaking as a grey beard myself, I think its safe to say that the grey beards among us will always deride those who didn't have to work as hard as they did.

Re:Astral to Join OpenAI by hilbertseries on Thursday March 19, 2026 @10:27PM (#47449684)
And Python is four years older than Java.
Re:Astral to Join OpenAI by aprdm on Thursday March 19, 2026 @04:35PM (#47445628)
Python existed for years before uv with a huge ecosystem, and will continue to do so after/if it dies
Re:Astral to Join OpenAI by Terretta on Thursday March 19, 2026 @07:24PM (#47447895)
uv, yes*, but really PEP 723:

https://peps.python.org/pep-0723/

* disclosure: We are a commercial client of astral.sh

Re:Astral to Join OpenAI by notpushkin on Friday March 20, 2026 @12:05AM (#47450349)
It’ll probably be a game changer for scripts, yes. Writing “portable” Python scripts was a nice exercise, though (and will be, for a while).
Re:Astral to Join OpenAI by the__alchemist on Friday March 20, 2026 @10:28AM (#47455057)
This is cool! I ended up also inventing my own syntax to place at the top of one-off scripts to specify deps. (For single-file Python scripts, vs one with a full project dir that has pyproject.toml) I will adopt this instead.
Re:Astral to Join OpenAI by shurane on Friday March 20, 2026 @01:47PM (#47458074)
Sounds a lot like vim/emacs modelines. This is neat for standalone scripts.
Re:Astral to Join OpenAI by theptip on Thursday March 19, 2026 @03:19PM (#47444483)
I agree uv is great but let’s not get carried away here. Poetry is good, pip was fine for many use-cases after they added native lock files.
Re:Astral to Join OpenAI by PaulHoule on Thursday March 19, 2026 @03:53PM (#47444936)
if you are working on one tiny project on your machine that pips in four packages you probably think pip was OK.

Circa 2017 I was working on systems that were complex enough that pip couldn't build them and after I got to the bottom of it I knew it not my fault but it was the fault of pip.

I built a system which could build usable environments out of pre-built wheels and sketched out the design of a system that was roughly 'uv but written in Python' but saw two problems: (1) a Python dependent system can be destroyed by people messing with Python environments, like my experience is that my poetry gets trashed every six months or so and (2) there was just no awareness by the 'one tiny project on your machine that pips in four packages' people that there was a correctness problem at all and everybody else was blaming themselves for a problem and didn't have a clear understanding of what was wrong with pip or what a correct model for managing python dependencies is (short answer: see maven) or that a 100% correct model was even possible and that we'd have to always settle for a 97% model. The politics looked intractable so I gave up.

Now written in rust, uv evaded the bootstrap problem and it dealt with the adoption problem by targeting 'speed' as people would see the value in that even if they didn't see the value in 'correctness'. My system would have been faster than pip because it would have kept a cache, but uv is faster still.

Re:Astral to Join OpenAI by Affric on Thursday March 19, 2026 @06:18PM (#47447121)
Well said.

I have used them all and UV is the only one that actually solves the problem.

It’s insane that people would suggest that Python can go back.

Re:Astral to Join OpenAI by fud101 on Friday March 20, 2026 @12:08AM (#47450373)
> everybody else was blaming themselves for a problem and didn't have a clear understanding of what was wrong with pip or what a correct model for managing python dependencies is (short answer: see maven)

I always looked down on the Java ecosystem but if it turns out Maven had a better story all along and we all overlooked it, that's wild.

Re:Astral to Join OpenAI by omcnoe on Friday March 20, 2026 @02:37AM (#47451225)
Maven has its own bone headed design where it SILENTLY resolves conflicting dependency branches through a “closest to dep tree root wins” rule.
Re:Astral to Join OpenAI by notpushkin on Friday March 20, 2026 @12:16AM (#47450431)
I still believe Rust is a red herring here. Your ‘uv but written in Python’ would probably have the same success as uv does now, if you did focus on speed over correctness. And I’ve yet to hear about pipx or Poetry getting trashed, but if it is a problem, I don’t think it’s impossible to solve in Python vs Rust.

> The politics looked intractable so I gave up.

So yeah, this is your actual problem. (Don’t worry, I’m in the same camp here.)

Re:Astral to Join OpenAI by tempay on Friday March 20, 2026 @03:39AM (#47451626)
As much as I'm a Python fan I strongly disagree here that rust is a red herring.

Having a static binary makes distribution way simplier. There are a bunch of ways you could try to achive something like in python but it would be significantly larger.

Performance-wise writing it in python would have heavy startup overhead and wouldn't be able to get close to the same level of performance.

Obviously you could achive the same thing in many other languages, but rust ends up being a really good fit for making a small static binary for this workload of network heavy, IO-bound, async/threading friendly with the occasional bit of CPU heavy work.

Re:Astral to Join OpenAI by _ZeD_ on Friday March 27, 2026 @08:59AM (#47542169)
>>> ‘uv but written in Python’

you mean pdm?

Re:Astral to Join OpenAI by rtpg on Thursday March 19, 2026 @04:30PM (#47445558)
Poetry and friends are so bad that many people continued just using pip -r requirements.txt despite knowing about this other stuff

Poetry having users isn’t the metric for success. pip having way less users is.

Re:Astral to Join OpenAI by bmitc on Thursday March 19, 2026 @08:26PM (#47448561)
How is uv awesome and Poetry so bad? They do basically the same things except Astral re-invents the wheel but only part way instead of just relying on the existing tools. uv is fast. As far as I can tell, there's hardly any difference in functionality except for it also replacing PyEnv, which I never use anyway.
Re:Astral to Join OpenAI by rtpg on Thursday March 19, 2026 @08:40PM (#47448693)
uv assuming your local Python is busted to hell and back helps a lot with isolation.

Poetry's CLI would often, for me, just fall over and crash. Crashing a lot is not a fundamental problem in the sense you can fix the bugs, but hey I'm not hitting uv crashes.

pipenv was even worse in terms of just hanging during package resolution. Tools that hang are not tools you want in a CI pipeline!

The end result: `uv run` I expect to work. `pipenv` or `poetry` calls I have to assume don't work, have to put retries into CI pipelines and things like that.

Re:Astral to Join OpenAI by neves on Thursday March 19, 2026 @09:01PM (#47448902)
uv has a lot of sensible defaults that prevent clueless developers to shoot their own feet. Uv sync, for example, would uninstall packages not in pyproject.toml
Re:Astral to Join OpenAI by fud101 on Friday March 20, 2026 @12:12AM (#47450405)
i kind of disagree with this. uv run is clunky, i don't want that. i want to keep the activate the venv and do shit model. i hate uv run as a primitive.
Re:Astral to Join OpenAI by rtpg on Friday March 20, 2026 @12:36AM (#47450546)
I mean you don't need to use that then. `uv` is still writing to `.venv` by default and you can activate it with `direnv` or w/e.
Re:Astral to Join OpenAI by fud101 on Friday March 20, 2026 @01:06AM (#47450722)
the point about defaults though, the default or defacto workflow is uv run
Re:Astral to Join OpenAI by esseph on Friday March 20, 2026 @06:03AM (#47452546)
Maybe, but that's not how I've been holding it.

I think I have trauma from virtual environments...

Re:Astral to Join OpenAI by JodieBenitez on Friday March 20, 2026 @04:29AM (#47451954)
Performance aside, uv is more standards compliant than Poetry about the pyproject.toml.

But yes, in terms of user interface they are pretty similar. UV performance really does make the difference.

Re:Astral to Join OpenAI by pjmlp on Friday March 20, 2026 @08:11AM (#47453459)
One of them is written in Rust....
Re:Astral to Join OpenAI by the__alchemist on Friday March 20, 2026 @10:30AM (#47455087)
I don't know if it's still true, but ~7 years ago when I last looked at it, Poetry didn't have the kind of UX I have in mind (That Astral/UV do). I remember trying to make it work, and it would choose Python 2 for some reason, despite me never having used it, and it having been obsoleted years before. I remember hitting many problems/errors I can't recall the detail of, but bad UX.
Re:Astral to Join OpenAI by duskdozer on Saturday March 21, 2026 @08:47AM (#47466549)
>people continued just using pip -r requirements.txt

What exactly is the issue with this?

Re:Astral to Join OpenAI by Smaug123 on Sunday March 22, 2026 @07:17AM (#47476364)
The requirements file isn't a lockfile: running that command at different times will give you different venvs.
Re:Astral to Join OpenAI by duskdozer on Tuesday March 24, 2026 @12:48AM (#47498705)
Right, and that's expected.
Re:Astral to Join OpenAI by Terretta on Thursday March 19, 2026 @07:25PM (#47447910)
let's get carried away.

`uv run` a .py with inline script metadata has all the deps installed and your script running in a venv while poetry is still deciding to resolve...

Re:Astral to Join OpenAI by tasuki on Thursday March 19, 2026 @05:08PM (#47446115)
Ahaha, I feel this comment.

I used to do backend development in superior languages, and sometimes do hobby frontend in superior languages, but my work is Python now. And it kind of has to be Python: we do machine learning, and I work with GDAL and PDAL and all these other weird libraries and everything has Python bindings! I search for "coherent point drift" and of course there's a Python library.

The superior languages I mentioned... perhaps they have like a library for JSON encoding and decoding. You need anything else? Great, now you're a library author and maintainer!

Re:Astral to Join OpenAI by larodi on Thursday March 19, 2026 @07:23PM (#47447883)
relax, soon u be rewriting the essence of all these libs into something new. python has its days numbered also perhaps for many engineering decisions that are now cheap via llms.
Re:Astral to Join OpenAI by stuaxo on Thursday March 19, 2026 @10:34PM (#47449748)
The LLMs write bad python as easily as any other language.

To make it good, you need to review and interate.

Re:Astral to Join OpenAI by the_arun on Friday March 20, 2026 @12:15AM (#47450428)
It is very hard to manually review AI generated code. May be we have to use another LLM to review and assume everything is good.
Re:Astral to Join OpenAI by tasuki on Friday March 20, 2026 @07:35AM (#47453185)
This hasn't been my experience. I find LLM code about as hard to review as human code, perhaps a little easier.
Re:Astral to Join OpenAI by galaxyLogic on Friday March 20, 2026 @12:10AM (#47450388)
I think this means reviewing is the main thing with AI, and therefore the language to use should be one where reviewing is easy, for humans.
Re:Astral to Join OpenAI by larodi on Wednesday March 25, 2026 @09:54AM (#47517384)
indeed, from my perspective doing heavy agentic dev for six months, the language all is implemented should be easy. its api - also. like Swift is super easy to read, but the APIs of underlying libs - not so much. Python is reasonably easy to read, but with GIL and everything is a very slow choice. Zig seems a nice apporach to readability, Rust is definitely not so readable.

we may want to invent something akin to concise math notion, but not so much, in between pseudo-code and math.

Re:Astral to Join OpenAI by KaiserPro on Thursday March 19, 2026 @05:28PM (#47446456)
Ok, what am I missing, I've used python for many many years. What does UV give us over pip + venv + pyenv?

(I'm not doing this to be a dick, I genuinely want to know what the use case is)

Re:Astral to Join OpenAI by andyferris on Thursday March 19, 2026 @05:55PM (#47446843)
Everything “just works” and is fast - and that’s basically it.

You can run a script with a one liner and it will automatically get you the same python and venv and everything as whoever distributed the python code, in milliseconds if the packages are already cached on your local computer.

Very easy to get going without even knowing what a venv or pypi or anything is.

If you are already an expert you get “faster simpler tooling” and if you are a complete beginner it’s “easy peasy lemon squeezy”.

Re:Astral to Join OpenAI by ghshephard on Thursday March 19, 2026 @07:37PM (#47448051)
I've used python for roughly 15 years, and 10 of those years I was paid to primarily write and maintain projects written in Python.

Things got bearable with virtualenv/virtualenv wrappers, but it was never what I would call great. Pip was always painful, and slow. I never looked forward to using them - and every time I worked on a new system - the amount of finaggling I had to do to avoid problems, and the amount of time I spent supporting other people who had problems was significant.

The day I first used uv (about is as memorable to me as the the day I first started using python (roughly 2004) - everything changed.

I've used uv pretty much every single day since then and the joy has never left. Every operation is twitch fast. There has never once been any issues. Combined with direnv - I can create projects/venvs on the fly so quickly I don't even bother using it's various affordances to run projects without a venv.

To put it succinctly - uv gives me two things.

One - zero messing around with virtualenvwrappers and friends. For whatever reason, I've never once run into an error like "virtualenvwrapper.sh: There was a problem running the initialization hooks."

Two - fast. It may be the fastest software I've ever used. Everything is instant - so you never experience any type of cognitive distraction when creating a python project and diving into anything - you think it - and it's done. I genuinely look forward to uv pip install - even when it's not already in cache - the parallel download is epically fast - always a joy.

Re:Astral to Join OpenAI by rahkiin on Friday March 20, 2026 @04:24AM (#47451919)
May I ask what OS and filesystem you’re using?
Re:Astral to Join OpenAI by ghshephard on Friday March 20, 2026 @04:17PM (#47460060)
All of them (well - no HPUX in 15+ years, and I've never used uv in Solaris, or AIX) - but the major two client side environments that I use 'uv' in would be WSL2+Ubuntu/ext4 (work) and macOS/APFS at home.

But - neither the speed nor constant issues with pip/virtualenvwrappers are really a function of the OS/File System.

A frequent theme in this thread (probably most clearly described in https://news.ycombinator.com/item?id=47444936) is that relying on your Python Environment to manager your Python Environment - always ends up in pain. Poetry had this issue as well.

One of the key architectural decisions of Astral was to write the Python Environment Management tooling in rust - so that it could never footgun itself.

It also benefited from very enlightened engineering decisions described here: https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html

Re:Astral to Join OpenAI by kortex on Thursday March 19, 2026 @09:45PM (#47449347)
for one, it's one tool, that does the job of all three.

it just works. i'm not sure how else to describe it other than less faffing about. it just does the right thing, every time. there's a tiny learning curve (mostly unlearning bad or redundant habits), but once you know how to wield it, it's a one stop shop.

and as mentioned, it's crazy fast.

Re:Astral to Join OpenAI by Eridrus on Thursday March 19, 2026 @06:05PM (#47446955)
It's not horrifically slow.
Re:Astral to Join OpenAI by antonvs on Thursday March 19, 2026 @06:02PM (#47446930)
> making the python ecosystem bearable

You should really qualify that statement, it implies that the Python ecosystem is bearable.

Re:Astral to Join OpenAI by wiseowise on Friday March 20, 2026 @03:59AM (#47451756)
Bearable compared to what it was.
Re:Astral to Join OpenAI by pojzon on Thursday March 19, 2026 @07:00PM (#47447614)
Yes please, lets start with scraping to bin whole internet using javascript and its family.

See the point ?

Re:Astral to Join OpenAI by notpushkin on Thursday March 19, 2026 @11:57PM (#47450305)
uv is nice, but not irreplaceable. An open source, maintenance mode fork would work just as fine. And even if all of uv disappeared today, I’d go just back to Poetry. Slower? Sure, a bit.

...and then I’ve read the rest of your comment. Please do go read the HN guidelines.

Re:Astral to Join OpenAI by duskdozer on Friday March 20, 2026 @05:22AM (#47452278)
I guess it's an individual solution to that, but it's a solution that basically worsens the actual problem, as I see it, which is strict/narrow version pinning with frequent updates to latest and minimal effort to track backwards compatibility let alone try to maintain it. It just turns it into nodejs constant wrestling with package.json changes.