~/talk

Live coding session with James Douglas

Talkat Scale By the Bay 2021 · 2021-10-28..10-29· [functional-programming]
links:none on file
slides:none on file

Builds a toy effect system in Scala that represents an I/O program as a pure-value program: three effects (env lookup, read line, write) are encoded as traits hasEnv, hasReadLn, hasWrite and lifted into a Reader-based effect type with map/flatMap. The program composes reads and writes, runs by supplying an environment implementation (stdin stubbed as "james") and prints the expected output, then shows the same logic on ZIO using ZIO[R,E,A] with provide and the runtime — Reader is simple and workable for demos, ZIO is production-ready.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Building an effect system
  3. 5:15Reader Monad
  4. 12:25Program Monad
  5. 15:35Program Run
  6. 18:35Summary
~/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.