Hacker News new | ask | show | jobs
Troupe:multi-role finite state machine (ziggit.dev)
2 points by goless 219 days ago
1 comments

Multi-role finite state machine, used for multithreaded programs or distributed programs.

The behaviors of multiple characters are orchestrated into a state machine. Imagine a theater with many characters performing a play. The behaviors of all characters are arranged as a whole in the script. When a certain message is sent, everyone will complete their performance according to the script.