Readit News logoReadit News
dagenix commented on Python has had async for 10 years – why isn't it more popular?   tonybaloney.github.io/pos... · Posted by u/willm
dagenix · 8 hours ago
The problem, IMO, with asyncio is that its way, way too complicated. In my experience, anyio (https://github.com/agronholm/anyio) provides a much better interface on top of asyncio. And since it can use asyncio as a backend, it maintains compatibility with the asyncio ecosystem. FastAPI, for example, uses anyio.

One thing that I don't see being mentioned in any of the threads here talking about green threads is cancellation. A huge benefit, IMO, of anyio is that it makes cancellation really easy to handle. With asyncio, cancellation is pretty hard. And with green threads, cancellation is often impossible.

dagenix commented on Asyncio: A library with too many sharp corners   sailor.li/asyncio... · Posted by u/chubot
dagenix · a month ago
In my experience, the key to using asyncio is to use anyio. Anyio is an interface that you can use ontop of asyncio and fixes most of its shortcomings.

https://anyio.readthedocs.io

dagenix commented on Using uv and PEP 723 for Self-Contained Python Scripts   thisdavej.com/share-pytho... · Posted by u/thisdavej
frfl · 5 months ago
Seems like you're dismissing the uv single file setup approach without fully understanding it. I'd recommend giving it a try. It's indeed simpler and snappier than any other package manager to date.
dagenix · 5 months ago
I'm not dismissing uv, I'm critiquing the article.
dagenix commented on Using uv and PEP 723 for Self-Contained Python Scripts   thisdavej.com/share-pytho... · Posted by u/thisdavej
dagenix · 5 months ago
> This approach eliminates the need for complex setup tools like requirements.txt or package managers...

And yet, the rest of the article is about uv. According to uv itself:

> An extremely fast Python package and project manager, written in Rust.

It's a package manager!

dagenix commented on Happy 10k Day   blog.comma.ai/happy10kday... · Posted by u/LorenDB
norswap · 6 months ago
I think it did much better on safety in some tests (no I don't have sources, going from memory :/), but is less capable by design on some more trickier scenarios. Basically pretty much what you would something like this to be.
dagenix · 6 months ago
It doesn't seem like https://comma.ai/ has sources either.
dagenix commented on Happy 10k Day   blog.comma.ai/happy10kday... · Posted by u/LorenDB
dagenix · 6 months ago
So, a hackier version of Tesla's autopilot? Sounds, uh, terrifying.
dagenix · 6 months ago
I especially like how there is next to no mention about safety on the main page. But at least its only $999 and it has AI and 50k GitHub stars, so, thats nice.
dagenix commented on Happy 10k Day   blog.comma.ai/happy10kday... · Posted by u/LorenDB
dagenix · 6 months ago
So, a hackier version of Tesla's autopilot? Sounds, uh, terrifying.
dagenix commented on NixOS 24.11 "Vicuña" Released   nixos.org/blog/announceme... · Posted by u/opengears
dagenix · 9 months ago
The pretty significant updates to MacOS support are really cool to see!
dagenix commented on Engineers do not get to make startup mistakes when they build ledgers   news.alvaroduran.com/p/en... · Posted by u/fagnerbrack
dboreham · 9 months ago
I've been doing this so long that I've finally realized that if someone can't explain why something is the way it is, that means it's wrong, or at least some arbitrary choice among several equally good alternatives.

u/dagenix

KarmaCake day2457July 15, 2017View Original