~/talk

Tokio: How we hit 88mph

Talkat RustFest Zürich 2017 · 2017-09-30..10-01· [nodejs]
slides:none on file

Tokio claims to be an unusually fast async I/O stack, showing very high requests/sec on benchmark charts by combining the futures crate with mio and a zero-cost futures design. It replaces heap-allocated callbacks with a poll/task model: futures implement poll returning Ready or NotReady, the ambient task notify mechanism wakes work without per-transition allocations, and async/await (nightly) composes this neatly. Tokio targets cross‑platform sockets, runs in production at several companies, and keeps state transitions cheap and thread‑compatible.

AI-written summary · about

  1. 0:00Intro
  2. 5:10Async IO
  3. 6:06Whats happening here
  4. 6:36A very difficult world
  5. 7:12Futures
  6. 8:07Future example
  7. 9:53Tokio
  8. 10:45Tokyo
  9. 11:19Futures Crate
  10. 12:17Async await
  11. 15:00Writing a future
  12. 15:16Threadsafe future
  13. 15:41Trace
  14. 16:03sentinel
  15. 16:20callback
  16. 16:54objectsafe
  17. 17:39if statement
  18. 17:53local solution
  19. 18:13more cases
  20. 19:04elfin
  21. 19:16fn
  22. 22:56API Cost
  23. 23:51Drawbacks
  24. 24:36Recap
  25. 25:32Server Design
  26. 26:24Tasks
  27. 26:37Concurrency
  28. 27:09A task
  29. 28:35Approach
  30. 29:11Future
  31. 30:23Timeout
  32. 30:33Moments
  33. 30:56Unit
  34. 31:08Poll
  35. 31:24TaskNotify
  36. 32:14Design Overview
  37. 36:01Notifications
  38. 37:37Transform
  39. 37:48Pole Read
  40. 39:00Wake Up
  41. 39:21Event Loop
  42. 39:53Questions
  43. 40:58Sink Read
  44. 46:02Reschedule
  45. 47:04Poll event
~/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.