State Machines in Rust
For you who enjoying using state machines but wish they did even more and/or were embedded in each other (nested state machines!), check out this thing called State Charts!<p>Here is the initial paper from David Harel: STATECHARTS: A VISUAL FORMALISM FOR COMPLEX SYSTEMS (1987) - <a href="https://www.inf.ed.ac.uk/teaching/courses/seoc/2005_2006/resources/statecharts.pdf" rel="nofollow">https://www.inf.ed.ac.uk/teaching/courses/seoc/2005_2006/res...</a><p>Website with lots of info and resources: <a href="https://statecharts.github.io/" rel="nofollow">https://statecharts.github.io/</a><p>And finally a very well made JS library by David Khourshid
that gives you lots of power leveraging statecharts: <a href="https://github.com/davidkpiano" rel="nofollow">https://github.com/davidkpiano</a><p>While we're at it, here are some links to previous submissions on HN regarding statecharts with lots of useful and interesting information/experiences:<p>- <a href="https://news.ycombinator.com/item?id=18483704" rel="nofollow">https://news.ycombinator.com/item?id=18483704</a><p>- <a href="https://news.ycombinator.com/item?id=15835005" rel="nofollow">https://news.ycombinator.com/item?id=15835005</a><p>- <a href="https://news.ycombinator.com/item?id=21867990" rel="nofollow">https://news.ycombinator.com/item?id=21867990</a><p>- <a href="https://news.ycombinator.com/item?id=16606379" rel="nofollow">https://news.ycombinator.com/item?id=16606379</a><p>- <a href="https://news.ycombinator.com/item?id=22093176" rel="nofollow">https://news.ycombinator.com/item?id=22093176</a><p>My own interest in Statecharts comes from wanting/trying to use them for UI development on the web, think there is lots of value to be had and time to be saved by using leveraging it.