Build Your Own Async

Channel:David Beazley · Length:2:12:41 · Published:2019-10-17 · Views:59946

Watch on YouTube

Summary

David Beazley's workshop screencast builds asynchronous programming in Python from scratch, starting from callbacks and continuations and replacing threads to show how concurrency works underneath.

Why HN recommends it

HN people recommend it as the best way to understand what async machinery actually does under the covers.

an amazing resource to understand async at a deep level — HN, 2020

Python, Ruby & scripting languages · Software practice, open source & careers

Subtitles (excerpt)

is David Beasley here the screencast you're about to watch is from workshop that originally presented at the PyCon india conference in october 2009 the original workshop had some audio-visual technicalities that actually made recording sort of very difficult I mean there's a lot of sort of distortion and artifacts and other things that didn't lead to a sort of a very good sort of very good artifact for sort of later viewing so what I've decided to do is actually rerecord kind of the session do a little bit of live coding and cover the same material here and and hopefully kind of clean it up make it a little bit easier to watch that's what that's what you're gonna watch here it's a little bit of background what the the goal of this workshop is is to kind of understand the inner working and thinking that goes on in these async frameworks you know like async IO curio trio things things like that but it's very much focused on I'm kind of the underlined kind of programming model as opposed to a lot of sort of technical details concerning you know like IO libraries and other things so so really the goal is its kind of to just explore the basic programming model and also just to kind of get an awareness of why these libraries

On Hacker News

Yes, something like that. Like here's David's "Build Your Own Async" [1], which I prefer over Philip's (still extremely good) "What the heck is the event loop anyway?" [2]. It's one thing to tell how something works, but to successfully show what the hell its actually doing under the covers, just conveys much more information. [1] [VIDEO] [2] [LINK] — devxpy, 2020-05
I've found this [1] screencast on the low-level principles of async in Python an amazing resource to understand async at a deep level. [1] [VIDEO] — migueloller, 2020-05
> I talk about generators as if they were the coroutine system in Python, but in fact, they’re one of two: Python also has a completely different kind of thing that it actually uses the name ‘coroutine’ for, in which function definitions start with async def and suspend with await . The async and await system of coroutines in Python is in fact layered on top of the yield system, via an intermedia… — mananaysiempre, 2023-09
I highly recommend Victor Skvortsov's exhaustive, 12-part series, "Python Behind the Scenes," a deep dive into the implementation details of just about every Python language feature one could possibly take for granted. There isn't a single one I haven't learned something from, but some of my personal favorites include: * Part 2, How the CPython compiler works: [LINK] * Part 6, How Python's object… — neoncontrails, 2022-03

Related videos