~/talk

A Gentle Introduction to Comonads

Talkat Scale By The Bay 2019 · 2019-11-13..11-15· [functional-programming]
links:none on file
slides:none on file

Claims that comonads let pure code inspect and transform values with their surrounding context; implements a Comonad instance for a 2D FocusGrid where extract returns the focused cell and coflatMap enumerates every focus. Uses the Cats library, builds a box blur (5×5 radius), mirror and a Conway’s Game of Life step, composes them, and ports the code to Scala.js to run animated in the browser; works interactively and is reasonably efficient because underlying arrays are shared by reference.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Pure functional programming
  3. 5:08Functors and monads
  4. 10:37Comonads explained
  5. 16:23Practical comonad example
  6. 21:13Image processing demo
  7. 22:42Live coding demo
  8. 23:10Q&A
~/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.