HackerTube

Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018

PyCon 20182 HN recommenders · recommended in 2 months, 2020–2023
YouTube
talk · intermediate · evergreen · 2020–2023 on HN

Nathaniel J. Smith's PyCon 2018 talk introducing Trio, a Python concurrency library designed around usability and structured concurrency. He live-codes a problem and analyzes pitfalls in other async libraries.

Recommended as a clear introduction to structured concurrency and as an explanation of subtle asyncio bugs that Trio avoids.

3 comments from Hacker News

@acidbaseextract2021-10 · in “A viable solution for Python concurrency”

The video (or blog post) below is one of the best explanations I've seen about what subtle bugs are easy to make with asyncio, why it's easy to make them, and how the trio library addresses them. But yes, consider alternatives before you pick asyncio as your approach! Talk: ▶ this video Blog post: link

Strongly recommends View on HN
@kzuberi2023-02 · in “Structured Concurrency Definition”

A useful introduction to the ideas is in Nathaniel's PyCon 2018 talk on trio [1], where he live-codes a solution to a concurrency-spaghetti problem. [1] ▶ this video

Recommends View on HN
@ric2b2020-08 · in “Don't trust default timeouts”

Great list. That last suggestion (Multiple requests) can be tough to implement correctly, I think it's usually called Happy Eyeballs: ▶ this video