~/talk

Technique for writing debuggable Haskell functions

links:none on file
slides:none on file

Practical technique: split a stateful Haskell step function into describe and apply, where describe produces a list of change events (eight distinct kinds in the example) and apply deterministically updates history; composing them must satisfy describe ∘ apply ≡ step. Implementations use Reader for describe, simple apply ~ half a screen of code, and tests assert both output and the intermediate change list; also demonstrated with free monad lifting (parsec-free) and stream/Vector build–fold analogies.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:47Debugging trading software
  3. 3:11Debugging challenges
  4. 4:33Splitting step into describe and apply
  5. 7:44Benefits of decomposition
  6. 8:47Compiler and vector examples
  7. 11:56Pattern value for testing
  8. 12:16Mid-talk Q&A
  9. 13:23Describe non-lossy requirement
  10. 14:50MapReduce and homomorphisms
  11. 15:10Free monad example
  12. 17:41Debugging Parsec parsers
  13. 19:06Generalizing the pattern
  14. 20:31Con extensions definition
  15. 21:12Left and right con extensions
  16. 21:55Category theory insight
  17. 22:16Future exploration
~/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.