Debugging software designs using testable pseudo-code
summary
PlusCal/TLA+ is used as testable pseudo-code and run through a model checker that exhaustively explores interleavings and variable ranges; a tiny bank example lets transfer amounts vary 1–20 and shows 6 atomic interleavings, producing 2,400 state-space checks that reveal an invariant violation where Alice goes negative due to a race. Industry examples include S3, DynamoDB and an Xbox 360 memory protocol fix, and the Raft consensus spec is ~500 lines and verified with TLA+.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 1:42Benefits of TLA
- 3:11Example banking system
- 4:37Pseudocode
- 5:02Concurrency
- 5:57Atomic sections
- 7:00Interleavings
- 10:17TLA Plus
- 13:23Invariance
- 15:16TLA diagrams
- 17:20Summary
- 18:23Software design
- 19:50Writing pseudocode
- 20:24Software design tools
- 21:45Leslie Lamp
- 23:09Amazon and Microsoft
- 25:21Quotes
- 26:41Raft
- 27:31Raft spec
- 28:57Outro
