~/talk

Futures From the Ground Up (For Beginners, by Beginners)

Talkat Colorado Gold Rust 2019 · 2019-09-20..09-21· [rust, concurrency]
links:none on file
slides:none on file

Implements a working single-threaded runtime: a wait_for_child future that wraps waitpid/waitid (WNOHANG semantics) and returns a ExitStatus, registers the provided Waker into a reactor hashmap keyed by PID, and yields Pending instead of blocking. The reactor blocks on waitid, calls waker.wake() for the PID, and the executor moves the task from waiting to next and polls it again. Uses Rust Future trait, Waker API and async/await and runs to completion.

AI-written summary · about

  1. 0:00Introduction to futures
  2. 1:06What are futures
  3. 3:12Executor and reactor basics
  4. 7:25Implementing a future
  5. 12:45Task and waker system
  6. 19:07Executor implementation
  7. 23:01Reactor interface
  8. 24:47Closing observations
~/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.