~/talk

Standardised Coroutine Concurrency in Python 3

Talkat ACCU 2017 · 2017-04-24..04-29· [python, concurrency]
slides:none on file

Shows how a tiny scheduler is built from generators, demonstrates a mechanical refactor into real Python 3.5+/asyncio with ensure_future, and explains why coroutines are contagious (everything transitively must be non‑blocking). Claims threads cost ~8MB each, extracts a Lucas example (first >6 digits is 103682) to exercise work, introduces the bear yield placement rule, and ships usable code (including pi-serial-asyncio in production). Ends with two working chat server demos (callback protocol and streams) and debugging tips for event loops and futures.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Coroutine concurrency in Python
  3. 2:42Serial IO
  4. 3:34Python Books
  5. 3:55Structure
  6. 4:52Python
  7. 5:11The problem
  8. 7:17Concurrency vs Parallelism
  9. 10:23Preemptive multitasking
  10. 12:19Async IO
  11. 12:49Whats next
  12. 13:28Work
  13. 15:10Search
  14. 17:20Async Search
  15. 24:28Task
  16. 25:13Task Scheduler
  17. 29:37Prime
  18. 30:30Print Matches
  19. 31:01Prime Lucas
  20. 31:53Repetitive Message
  21. 33:19Rename
  22. 33:31Reorder
  23. 34:00Create Scheduler
  24. 35:58Coroutines are contagious
  25. 36:41Prime function
  26. 37:10Bear yield
  27. 39:19Code contagious
  28. 40:32Extract Coroutine
  29. 41:45Refactoring
  30. 43:43Sync Search
  31. 47:49Sink
  32. 48:18Sleep
  33. 48:55await
  34. 54:20async
  35. 55:25terminology
  36. 56:22futures
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.