fwiw, if xstate feels like too much for whatever reason, https://thisrobot.life has seemed like a decent alternative to me.
fwiw, if xstate feels like too much for whatever reason, https://thisrobot.life has seemed like a decent alternative to me.
hmm… seaside… C side… has this been used for anything yet?
Pardon the unnecessary caps, I am using voice dictation.
I created a JavaScript state machine library using them to define each state. https://github.com/JavaScriptRegenerated/yieldmachine
I imagine your approach must be different?
The main drawback with this approach is that it is easy to blow the stack, but it is not too hard to implement trampolining on top of it (by yielding the continuation to a wrapper generator)
To use the generator I send its inputs using `.next()` and obtain current state information, as shown on your library webpage.