News for hackers. Stuff that matters.
Re:Uv saves Home Assistant 215 compute hours per month by AtlasBarfed on Wednesday April 03, 2024 @08:57PM (#39925291)
So .. like ... Why not dump python entirely if you are doing a python to rust port of a core aspect of python tool gain?
Re:Uv saves Home Assistant 215 compute hours per month by tedivm on Wednesday April 03, 2024 @09:12PM (#39925433)
Python from the start has always been willing to use other languages and tools if it made sense. It's a pretty common pattern (at least in the data science and research circles I've been in) to write the original in python to see if it works, and then to port it over to a lower level language (C, Rust more and more these days) and expose an interface to it in Python.

For things like dependency resolution, where you're doing a lot of heavy CPU operations, there is a lot of room for optimization in lower level languages.

Re:Uv saves Home Assistant 215 compute hours per month by porphyra on Wednesday April 03, 2024 @09:03PM (#39925362)
because writing python is a lot easier for most people than writing rust but changing from pip to uv is like a one liner?
Re:Uv saves Home Assistant 215 compute hours per month by thorncorona on Wednesday April 03, 2024 @08:58PM (#39925300)
existing code? swapping build tools is extremely different
Re:Uv saves Home Assistant 215 compute hours per month by datascienced on Wednesday April 03, 2024 @09:00PM (#39925318)
Well because best tool for the job. There is no natural law that everything must be bootstrapped. Languages use LLVM for example.
Re:Uv saves Home Assistant 215 compute hours per month by eternityforest on Wednesday April 03, 2024 @09:34PM (#39925592)
Bootstrapping is such an odd concept. Like, something that's self propagating is in a sense not fully reproducible and holonomic, unless you maintain the original non-bootstrapped version which would add tons of work.

A compiler bug could put a bug in the compiler and propagate itself indefinitely.

An implementation in some other languages that has an implementation in C means you could theoretically start from ASM and rebuild.

Re:Uv saves Home Assistant 215 compute hours per month by darby_eight on Wednesday April 03, 2024 @08:59PM (#39925314)
There are obvious answers....

Why do you ask?

Re:Uv saves Home Assistant 215 compute hours per month by Ar-Curunir on Wednesday April 03, 2024 @08:58PM (#39925299)
Changing your build tool to another tool (designed to be a drop-in replacement) is very different from changing your entire codebase...