~/talk

Kleisli, a Friend Who Means You Well

TalkinFrenchat Scala.IO 2017 · 2017-11-02..11-03· [functional-programming]
links:none on file
slides:none on file

A Scala talk describing the evolution of a rules engine from plain predicates to Either for errors, then to asynchronous Futures, an object-composite, and finally to a generic Kleisli-based design using Cats typeclasses. It shows that naive Future-based async implementation collapses throughput and increases allocations, while the Kleisli/Cats approach separates sync and async execution, recovers performance (meeting 50 ms latency and 500k req/s goals), and reduces per-rule allocations from ~1,800 to ~48 bytes.

AI-written summary · about

  1. 0:00Start
  2. 12:19Problems
  3. 14:44Object-Oriented
  4. 23:06Composition
  5. 25:29Monoid on kind
  6. 32:05Domain Evolution
  7. 34:02Function on kind
  8. 45:58Performance
  9. 47:08Abstraction
  10. 47:34Opening
~/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.