~/talk

How to write synchronization mechanisms for Fiber

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [concurrency, ruby]
slides:none on file

Presents a concrete Fiber idiom and a tiny event library that combines a select abstraction with Fiber resume to get blocking‑style non‑blocking IO; implements a rendezvous queue for Fiber synchronization (no mutexes needed) and a proof‑of‑concept single‑threaded HTTP server running WEBrick on one thread. Provides actual code for timer jobs and TCP accept/read loops, shows it works but warns about hazards: blocking library calls (JSON parse, drivers) freeze all Fibers and require careful boundaries.

AI-written summary · about

  1. 0:00Introduction and context
  2. 7:24Fiber fundamentals explained
  3. 13:01Synchronization with fibers
  4. 21:07Socket server programming with fibers
  5. 29:15Summary and key takeaways
  6. 33:26Q&A session
~/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.