# "Tackling Concurrency Bugs with TLA+" by Hillel Wayne

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Strange Loop Conference](https://www.youtube.com/@StrangeLoopConf) · Published 2017-10-02 · 30:05 · A tier · Systems thinking

[Watch on YouTube](https://www.youtube.com/watch?v=_9B__0S21y8) · [All RatTube videos](/tube)

## Summary

Hillel Wayne uses TLA+ to explore possible executions of a concurrent system. A model checker does the repetitive work of examining interleavings that would be difficult to inspect reliably by hand.

The demonstration finds and fixes a design bug before the application is implemented. A later example checks a plausible fix against every invariant. Changing one rule can break another through a much longer sequence of steps.

## Section notes

- [5:31](https://www.youtube.com/watch?v=_9B__0S21y8\&t=331s): Concurrency problems require reasoning beyond ordinary local debugging tools.
- [10:36](https://www.youtube.com/watch?v=_9B__0S21y8\&t=636s): A computer can check possible behaviors more reliably than manual enumeration.
- [16:10](https://www.youtube.com/watch?v=_9B__0S21y8\&t=970s): The Toolbox translates and checks the specification, including process interleavings.
- [22:03](https://www.youtube.com/watch?v=_9B__0S21y8\&t=1323s): The model exposes a design bug before application code is written.
- [27:07](https://www.youtube.com/watch?v=_9B__0S21y8\&t=1627s): Candidate fixes break other invariants through a long execution sequence.

## Key concepts

No matching wiki page yet.

## Our take

Hillel Wayne introduces TLA+ through practical examples: writing a specification to check a design, and catching race conditions, duplicated money and deadlocks before they reach code.

## Related videos

- ["Simple Made Easy" - Rich Hickey (2011)](/tube/simple-made-easy-rich-hickey-2011)
- [John Hughes - Testing the Hard Stuff and Staying Sane](/tube/testing-hard-stuff-john-hughes)
- [John Hughes - How to specify it! A guide to writing properties of pure functions | Code Mesh LDN 19](/tube/how-to-specify-pure-function-properties)
- [Leslie Lamport: Thinking Above the Code](/tube/leslie-lamport-thinking-above-the-code)

Summary based on the transcript. Written 2026-11-15.
