~/talk

Dungeons, Dragons and Functions

Talkat NDC Minnesota 2019 · 2019-05-06..05-09· [functional-programming]
slides:none on file

Reconstructs D&D rules into precise F# types and shows how F# discriminated unions and records make impossible states unrepresentable, turning vague 300–1,000+ page rulebooks into code. Implements a custom dice DSL and an interpreter that evaluates expressions like “2d4+10”. Ships a working D&D combat simulator compiled to JavaScript with a web UI that both simulates millions of fights for balance and runs simple AI strategies, aiming next at reinforcement learning for smarter monsters.

AI-written summary · about

  1. 0:00Start
  2. 1:40Origin Story
  3. 4:44What makes a game interesting
  4. 6:14Player's Handbook (PHB)
  5. 7:21Playing D&D
  6. 9:28Ogres, Goblins, & Company
  7. 10:37Abilities
  8. 11:01Discriminated Union
  9. 11:57Pattern Matching
  10. 12:41Modifiers
  11. 16:09Goblin attacks
  12. 17:17Different structure: OR
  13. 18:24Attack: a sketch
  14. 19:33Pattern Match to extract data
  15. 20:50Modules
  16. 24:38Wyvern attacks
  17. 27:58The truth...
  18. 44:05Evaluation
  19. 52:36Automated Decision Making
  20. 54:54What's missing
  21. 58:20Thank Youl (Cast Bless)
~/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.