Earlier quoted context omitted.
I think Python has a place in many developers toolkits. I've never met anyone who hates Python (though I'm sure they exist), whereas for pretty much any other language one could mention there are much more polarizing viewpoints. (as the saying goes "Python is everyone's second favorite programming language"). The Python team needs not feel any pressure to change to compete, Python has already done quite well and foun…
raises hand I hate python. Every python codebase i’ve had to look after has rotten to the point it doesn’t even build and is a maintenance nightmare. I also hate whitespace instead of {}
Uv is the best thing to happen to the Python ecosystem in a decade
801–810 of 1001 posts
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#802Uv 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…
> But then I remember that Python is dog slow compared to other languages with comparable ergonomics and first-class support for static typing, and...idk it's a tough sell. Case in point: uv itself is not written in Python. It's a Rust tool. It always amazes me when people work on an ecosystem for a language but then don't buy enough into that to actually use it to do the work. Avoidance of dogfooding is a big red fl…
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#803Re: Uv is the best thing to happen to the Python ecosystem in a decade
#804Earlier quoted context omitted.
I think Python has a place in many developers toolkits. I've never met anyone who hates Python (though I'm sure they exist), whereas for pretty much any other language one could mention there are much more polarizing viewpoints. (as the saying goes "Python is everyone's second favorite programming language"). The Python team needs not feel any pressure to change to compete, Python has already done quite well and foun…
raises hand I hate python. Every python codebase i’ve had to look after has rotten to the point it doesn’t even build and is a maintenance nightmare. I also hate whitespace instead of {}
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#805Is it worth running uv inside a docker container?
Using uv at build time can dramatically reduce your build times if you properly handle the uv cache. https://docs.astral.sh/uv/guides/integration/docker/#caching
It's also easy:
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#806Earlier quoted context omitted.
You can't just create yourself an "everything" environment with UV and then experiment with it? Honest question. I think you're basically suggesting that you'd have a VM or something that has system-high packages already preinstalled and then use UV on top of it?
If so, it's certainly not obvious. I mean look at the docs: https://docs.astral.sh/uv/getting-started/features/ I don't see anything resembling "environments" in the list of features or in the table of contents. In some sections there is stuff like "When working on a project with uv, uv will create a virtual environment as needed", but it's all about environments as tied to particular projects (and maybe tools). You…
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#807Earlier quoted context omitted.
You can't just create yourself an "everything" environment with UV and then experiment with it? Honest question. I think you're basically suggesting that you'd have a VM or something that has system-high packages already preinstalled and then use UV on top of it?
If so, it's certainly not obvious. I mean look at the docs: https://docs.astral.sh/uv/getting-started/features/ I don't see anything resembling "environments" in the list of features or in the table of contents. In some sections there is stuff like "When working on a project with uv, uv will create a virtual environment as needed", but it's all about environments as tied to particular projects (and maybe tools). You…
The advantage of being forced to do this is other people (including yourself on a new laptop) can clone your project, run uv install and get working. It's the death of "works on my machine" and "well it'll take them a couple of weeks to properly get up and running".
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#808Earlier quoted context omitted.
You might be interested in pixi, which is roughly to conda as uv is to pip (also written in Rust, it reuses the uv solver for PyPI packages)
I wish the Python ecosystem would just switch to Rust. Things are nice over here… please port your packages to crates.
This is such a deeply unserious take. Do you have hundreds of thousands of hours to give out for free? No?
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#809Earlier quoted context omitted.
I wish we had a language that had the syntax of Python (notably including operator overloading, which is absolutely critical for neural networks, ML, data science and numerical computations), the performance, compile times and concurrency support of Go, the type system flexibility of Typescript, and the native platform integration of C/C++.
There's Mojo, but it's been a while since I've heard anything about it. https://www.modular.com/mojo
Re: Uv is the best thing to happen to the Python ecosystem in a decade
#810https://dotslash-cli.com/docs/
DotSlash to get the interpreter for your platform, and uv to get the dependencies.
Perfect for corporate setups with custom mirrors etc.