TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Uv saves Home Assistant 215 compute hours per month

142 点作者 balloob大约 1 年前

8 条评论

porphyra大约 1 年前
Astral is really doing God's work in the land of Python. Ruff is an incredible time saver.
评论 #39925508 未加载
评论 #39925455 未加载
评论 #39925728 未加载
AceJohnny2大约 1 年前
Every time I hear &quot;new system faster than old system!&quot;, my first thought is: what features does the new system not implement, what corner-cases does it ignore?<p>What are the trade-offs?
评论 #39925518 未加载
评论 #39925355 未加载
评论 #39925484 未加载
评论 #39925324 未加载
评论 #39925434 未加载
评论 #39925332 未加载
singhrac大约 1 年前
The comments here betray a significant misunderstanding of both the Python ecosystem and open source work.<p>Getting to a consensus is <i>hard work</i>. They have a vision for how Python packaging and tooling could be better (I assume cargo-like), and a roadmap for improving that. They could have tried to convince the pip maintainers their roadmap was best, but with large fragmented communities like Python it is impossible to reason about how the community will receive changes to tooling. It’s better to build something and get feedback to prove the hypothesis.<p>The choice of Rust is just because they like the developer ergonomics in that language (I suspect a big reason is that they wanted to ship a single binary independent of any Python env). CPython is written in C because… Guido started to write it in C.<p>Many comments here don’t understand that their competitors are actually NOT just pip but the conda ecosystem including micromamba (written in C++) which does not attempt to maintain pip interop at all. Conda realized that there are millions of Python programmers who are not developers and could not debug a GCC error message when pip installing scipy.<p>There are thousands of Python packages that are basically tested on whatever version of Python and libraries the author had installed at the time they wrote it, and literally millions of Github issues that are something like “this doesn’t work because I installed version Y of package X and package Z requires &lt; Y” all vaguely for solveable reasons. Many of these include C&#x2F;C++ code that builds via custom setup.py scripts.<p>If you haven’t lost days of work to solving stupid dependency issues in Python I’m not sure you can relate.
jrockway大约 1 年前
I guess I don&#x27;t have enough context to really understand this. It takes 1.5 hours to calculate what dependencies Home Assistant needs? Wouldn&#x27;t you normally amortize that out for each top-level dependency you add to the project and write it to a lock file or something, so that builds just become fetching the relevant artifacts?<p>Even then, I&#x27;m not sure how it would take 1.5 hours even on pen and paper.
评论 #39927560 未加载
outlore大约 1 年前
Ruff and uv have been a godsend for my workflow. I wrote a little about it here <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39851280">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39851280</a>
armada651大约 1 年前
I&#x27;m going to ask a stupid question, but why not just keep the packages installed?
评论 #39926345 未加载
ZoomerCretin大约 1 年前
Would the authors not have been better off adding their performance improvements to pip rather than creating their own tool? I remember this being a complaint from Node maintainers when Bun was released: they had multiple open performance-related issues with no one available to work on them.
评论 #39925389 未加载
评论 #39925222 未加载
评论 #39925214 未加载
评论 #39925227 未加载
评论 #39925336 未加载
评论 #39925234 未加载
评论 #39925228 未加载
AtlasBarfed大约 1 年前
So .. like ... Why not dump python entirely if you are doing a python to rust port of a core aspect of python tool gain?
评论 #39925433 未加载
评论 #39925362 未加载
评论 #39925299 未加载
评论 #39925300 未加载
评论 #39925318 未加载
评论 #39925314 未加载