~/talk

Production-ready functional programming

links:none on file
slides:none on file

A production-ready concurrent object pool written in Scala using cats-effect builds safe acquisition and release with Resource and Deferred, composes many per-connection resources into one pooled resource, and uses a Ref/queue-style state machine to match waiting consumers to returned items. Implementation is about 75 lines for the pool, 117 lines including example, shows allocation and shutdown prints when run, avoids mutable vars, and preserves nonblocking concurrency and correct cleanup under failures.

AI-written summary · about

  1. 0:00Introduction
  2. 5:11Why functional programming fails
  3. 7:23Pool of objects example
  4. 17:49What is IO in Scala
  5. 26:48Implementing the pool
  6. 48:20Running the pool
  7. 53:07Key takeaways
  8. 56:24Q&A
~/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.