~/talk

Finite-state machines? Your compiler wants in!

Talkat Lambda Days 2018 · 2018-02-22..02-23· [frontend-architecture]
slides:none on file

Concrete examples show how to encode a checkout FSM end to end: Haskell ADTs + IO runner models states and events, then an MTL-style type class with associated state separates abstract program from concrete GADT-based instance, and an indexed monad demo makes illegal reuse (placing an order twice) a compile-time type error. PureScript row types illustrate composing multiple named machines, and Idris examples use dependent types to track item counts and proofs. Demos compile and run, warn that error-handling and large hierarchies get awkward.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Stateful programs
  3. 2:01Finitestate machines
  4. 4:01Checkout example
  5. 9:31MTL style
  6. 10:19Type class
  7. 11:43State types
  8. 14:46Cancel states
  9. 15:13Complete type
  10. 16:34Transition state
  11. 17:39Checkout instance
  12. 18:18Concrete state type
  13. 21:27Summary
  14. 22:53Reusing state
  15. 24:16Index Monas
  16. 25:41Index Monas with bind
  17. 27:53Index State Monitor
  18. 28:10Multiple State Machines
  19. 28:57Pure Script
  20. 30:19Type Signature
  21. 31:15Idris
  22. 32:04Items
  23. 32:58State
  24. 33:11State type
  25. 33:23State has items
  26. 33:57Check out
  27. 34:32Proof
  28. 35:49CheckoutShop
  29. 36:32Total
  30. 37:00Forever
  31. 37:22Summarize
  32. 38:34Key Tech
~/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.