~/talk

Finding the Free Way

Talkat Typelevel Summit NYC 2017 · on Thursday, 2017-03-23· [scala, software-architecture]
speakerdeck:dscleaver
slides:none on file

Team adoption of Free Monads yields concrete results: algebra-first design, a Play action wrapper so controller methods return Free and get interpreted, synchronous in-memory and mock interpreters for testing, then future-backed production interpreters. Uses cats, kind-projector and Scala 2.11 fixes. Builds reusable interpreters (write to MonadError once), lifting helpers to wrap interpreters into Kleisli/Play request contexts, and a generic retry interpreter that retries any F => M when M is a MonadError. Outcome: much cleaner controller code and faster onboarding.

AI-written summary · about

  1. 0:00Intro
  2. 1:39The Free Monad
  3. 2:29The Theory
  4. 3:03The Code
  5. 5:01Design in Algebra
  6. 6:06Interpreters
  7. 8:41Libraries
  8. 8:57Time Projector
  9. 9:39Retry Interpreter
  10. 9:59Apply Interpreter
  11. 11:43Are we done
  12. 12:20Make it work
~/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.