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

PyCon 20182 HN recommenders · 2020–2023
30K views · talk · evergreen · Uploaded 2018-05-13

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.

Watch on YouTube

3 comments from Hacker News

@ric2b2020 · 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: [VIDEO]

@acidbaseextract2021 · 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: [VIDEO] Blog post: [LINK]

Strongly recommendsView on HN
@kzuberi2023 · 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] [VIDEO]

RecommendsView on HN