~/talk

Concurrent State Machines with Cats Effect

slides:none on file

Shows how to build a coordinating component by composing Cats Effect primitives: Ref for atomic state updates (mutual exclusion) and Deferred for signaling (serialization). Implements a concrete countdown latch with waiters and notifiers, storing state in a Ref, completing a Deferred when count reaches zero, and launching parallel workers and periodic readers to demonstrate correctness. Claims this recipe generalizes to queues, semaphores and circuit breakers and the latch example runs and behaves as expected.

AI-written summary · about

  1. 0:00Intro
  2. 1:10State Machines
  3. 2:12Concurrency
  4. 4:49Coordination
  5. 7:25Queue Circuit Breakers
  6. 8:15Agenda
  7. 9:57Synchronization
  8. 11:52Synchronization Flavors
  9. 13:18Mutual Exclusion
  10. 14:33Synchronized Keyword
  11. 15:31Vocabulary
  12. 16:25Demo
  13. 16:48Cats Effect
  14. 19:22Counter
  15. 19:57Worker
  16. 20:30View
  17. 23:01Love State Machine
  18. 23:20The Big Idea
  19. 24:59Concurrent State Machines
  20. 28:13Recipe
  21. 28:57Countdown Latch
  22. 30:10Code Example
  23. 31:40Coordination Interface
  24. 33:10State
  25. 36:44Decrement
  26. 37:52Countdown
  27. 38:20Review
  28. 41:21Conclusion
  29. 42:36QA
  30. 44:47Concurrent State Machines Recipe
  31. 47:30concurrency in other languages
  32. 50:49cancellation logic
  33. 52:39history of cats effect
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.