~/talk

Event-Driven asyncio: A Case Study of Trio's API

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
speakerdeck:jrfk
slides:none on file

Case study of a robot decision engine that runs on over 100,000 units with constrained CPUs MCUs and sensors shows Python async delivering single‑thread concurrency while saving resources The team compares trio and trio-util with anyio and asyncio and implements a concrete Value combinator API that watches websocket inputs composes values and cancels cleanly The implementation runs in production handles dozens of sensors per robot and replaces ad hoc callbacks with structured concurrency

AI-written summary · about

  1. 0:00Introduction
  2. 1:14Python for robot engines
  3. 3:08Case study overview
  4. 4:11Python and Trio for async
  5. 6:43Handling multiple inputs
  6. 7:48Watching multiple inputs demo
  7. 10:01Trio's Value API explained
  8. 13:01Event API limitations
  9. 14:03Closing remarks
~/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.