~/talk

Finite state machines

Talkat Code Mesh 2017 · 2017-11-08..11-09· [typescript]
slides:none on file

Claim: encoding FSMs into the type system catches real bugs and lets the compiler enforce transitions. Implementations use Haskell and PureScript implementations with ADT and MTL-style classes, an indexed-monad runner that forbids double-use, and PureScript row kinds to compose named machines. A checkout and a flight-reservation demo run with IO side effects interleaved (prints charging and logs). An Idris version uses Idris-dependent types to track item counts and prove correctness. Libraries and examples exist for reuse: index monads and row kinds.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28State
  3. 2:33Finite state machines
  4. 4:33algebraic data types
  5. 10:02MTL style
  6. 12:13Checkout type
  7. 18:37ConcreteStay type
  8. 19:56CheckoutT
  9. 21:50Timeouts
  10. 24:42Summary
  11. 27:18Index monads
  12. 30:38Row kinds
  13. 31:55Indexmonads
  14. 33:41Type signatures
  15. 34:48Dependent types
  16. 36:23Read stuff
  17. 37:06Protocol
  18. 40:28Select More
  19. 40:53Check Out
  20. 43:09Conclusion
~/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.