Concurrent applications with Free monads and STM
summary
Claims that Free monads plus STM give a practical inversion-of-control for real concurrent apps, demonstrated by a Hydra framework that runs a labyrinth CLI game, a meteor-counting multi-process demo, and a production blockchain node for Income that coordinates TCP/JSON-RPC peers. Uses Hydra framework with STM-backed state vars and eDSL command-line subsystems, supports logging inside transactional sequences, offers test interpreters and property and integration tests, notes performance tradeoffs but reports successful production use and manageable bugs.
AI-written summary · about
chapters (11)
- 0:00Intro
- 3:30Labyrinth game (Hydra framework)
- 9:29MeteorCounter app (Hydra framework)
- 11:17Blockchain app (Node framework)
- 14:28Blockchain app state
- 17:53Concurrent STM-based graph
- 19:55Graph code sample
- 22:42Testing nodes (virtual environment)
- 23:37Testing the labyrinth logic (black box, property-based)
- 24:27Testing the labyrinth logic (black box, integration)
- 26:29Performance of Free monads (dumb testing approach)
