Troupe:multi-role finite state machine
ziggit.dev·8h·
Discuss: Hacker News
Flag this post

November 16, 2025, 1:12am 1

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.

Some similar libraries:

  1. Home - Choral Language Website
  2. GitHub - gshen42/HasChor: Functional choreographic programming in Haskell

This project was initially called “polysession,” and I only intended it for developing multi-role communication protocols.

However, I later discove…

Similar Posts

Loading similar posts...