~/talk

Async Rust Meets Async Python: How Daft runs user defined Python coroutines from Tokio

Talkat TokioConf 2026 · 2026-04-20..04-22· [rust, python]
name:Colin Ho
github:colin-ho
slides:none on file

Daft runs user async Python coroutines from a Tokio scheduler by keeping a real asyncio loop on the Python main thread, exposing coroutines via PyO3 + Tokio, converting each coroutine to a Rust future that signals completion over a oneshot channel, and recycling results with a shared broadcast to reduce churn. The system splits work into separate IO and compute runtimes, scales to billions of events in practice, and interoperates without blocking Tokio threads.

AI-written summary · about

  1. 0:00Daft introduction
  2. 1:18When to use Daft
  3. 2:41Video frame captioning example
  4. 4:27Query plans in Rust
  5. 5:51Tokio for IO and compute
  6. 7:58Tokio simplifies async
  7. 10:26Python coroutines from Rust
  8. 13:39Dual runtime for Python UDFs
  9. 16:10Scaling Python async UDFs
  10. 18:43Async Rust meets Python
  11. 19:46Summary
~/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.