Live data from Hacker News

Uv is the best thing to happen to the Python ecosystem in a decade

emily.space

561–570 of 1001 posts

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#561

Earlier quoted context omitted.

conda was great to me

conda ruined my shell and never successfully worked for me. I guess YMMV

All my experience with Conda is from helping my friend nuke it off his laptop

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#562
post #188

I gotta say, I feel pretty vindicated after hearing for years how Python’s tooling was just fine and you should just use virtualenv with pip and how JS must be worse, that when Python devs finally get a taste of npm/cargo/bundler in their ecosystem, they freaking love it. Because yes, npm has its issues but lock files and consistent installs are amazing

>finally get a taste of npm good god no thank you. >cargo more like it.

Both of these work

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#563
post #367

I gotta say, I feel pretty vindicated after hearing for years how Python’s tooling was just fine and you should just use virtualenv with pip and how JS must be worse, that when Python devs finally get a taste of npm/cargo/bundler in their ecosystem, they freaking love it. Because yes, npm has its issues but lock files and consistent installs are amazing

But you are just using virtualenv with pip. It doesn't change any of the moving pieces except that uv is virtualenv aware and will set up / use them transparently. You've been able to have the exact same setup forever with pyenv and pyenv-virtualenv except with these nothing ever has to be prefixed. Look, uv is amazing and I would recommend it over everything else but Python devs have had this flow forever.

[deleted]

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#564
post #520

Uv is so good. I'm a curmudgeon about adopting new tooling, and tried uv with a lot of skepticism, but it was just better in every way. And even if it wasn't so polished and reliable, the raw speed makes it hard to go back to any other tool. Uv combined with type hints reaching critical mass in the Python ecosystem, and how solid PyLance is in VSCode, feels so good it has made me consider investing in Python as my pr…

On performance: 3.13 removed the GIL and added experimental first-party JIT (like PyPy). In two years I bet we’ll be seeing v8 level performance out of CPython.

I'd be surprised if we saw anything more than the 4x speedup from compiling Python with something like Nuitka/mypyc/etc can bring.

I also believe the JIT in v8 and Python are different, the latter relying on copy-and-patch while v8 uses a bunch of different techniques together.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#565
post #445

Earlier quoted context omitted.

> The script now works like a standalone executable But whoever runs this has to install uv first, so not really standalone.

And a shell

I don’t think they need a shell unless uv itself requires it, the shebang is handled by the exec syscall.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#567

Does uv handle CUDA versioning? This is the big reason I'm still on conda -- I can save a whole environment with `conda list --explicit`, including CUDA stuff, and I can set up a new machine with the same environment just from that file.

It handles CUDA version for PyTorch: https://docs.astral.sh/uv/guides/integration/pytorch/#instal...

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#568
post #520

Uv is so good. I'm a curmudgeon about adopting new tooling, and tried uv with a lot of skepticism, but it was just better in every way. And even if it wasn't so polished and reliable, the raw speed makes it hard to go back to any other tool. Uv combined with type hints reaching critical mass in the Python ecosystem, and how solid PyLance is in VSCode, feels so good it has made me consider investing in Python as my pr…

On performance: 3.13 removed the GIL and added experimental first-party JIT (like PyPy). In two years I bet we’ll be seeing v8 level performance out of CPython.

I would surprised to see performance as good as V8, although that would be great. As I recall the v8 team performed exceptionally well in a corporate environment that badly wanted js performance to improve, and maybe inherited some Hotspot people at the right time.

I'd be quite delighted to see, say, 2x Python performance vs. 3.12. The JIT work has potential, but thus far little has come of it, but in fairness it's still the early days for the JIT. The funding is tiny compared to V8. I'm surprised someone at Google, OpenAI et al isn't sending a little more money that way. Talk about shared infrastructure!

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#569

Earlier quoted context omitted.

And a shell

I don’t think they need a shell unless uv itself requires it, the shebang is handled by the exec syscall.

Of course. Hense the bash shebang - the shebang is the step before the shell is used. Thanks.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#570
post #29

These rust based tools really change the idea of what's possible (when you can get feedback in milliseconds). But I'm trying to figure out what Astral as a company does for revenue. I don't see any paid products on their website. They even have investors. So far it seems like they have a bunch of these high performance tools. Is this part of an upcoming product suite for python or something? Just curious. I'm not a f…

It doesn't really matter that it's Rust. npm is written in JS.

npm runs dog slow IME
Post reply on HN