News for hackers. Stuff that matters.
Re:Finite State Machines by pknerd on Monday February 22, 2021 @09:12AM (#26224722)
Anyone implemented in Python or Go for production systems?
Re:Finite State Machines by dkarp on Monday February 22, 2021 @10:18AM (#26225479)
I've used https://github.com/pytransitions/transitions in production python systems.

It worked great but the system was fairly simple and wasn't changed often. In my opinion, it's nicer when the state machine can be defined as configuration (in XML or whatever) and then generate the code. Unfortunately that's not possible with vanilla pytransitions, but I suppose you could build a layer on top of it.

Re:Finite State Machines by pknerd on Monday February 22, 2021 @01:19PM (#26228093)
Re:Finite State Machines by dkarp on Tuesday February 23, 2021 @04:32AM (#26235401)
I did not! I used it last a couple years ago, so maybe that's new. Thanks for sharing!
Re:Finite State Machines by pknerd on Monday February 22, 2021 @01:18PM (#26228082)
Interesting!

> Unfortunately that's not possible with vanilla pytransitions

Can you elaborate?

Re:Finite State Machines by rad_gruchalski on Monday February 22, 2021 @05:30PM (#26231560)
Re:Finite State Machines by davidkpiano on Monday February 22, 2021 @02:54PM (#26229671)
I'm working on XState for Python: https://github.com/davidkpiano/xstate-python

Still a work-in-progress, but hope to make this production-ready this year.

Re:Finite State Machines by dzonga on Tuesday February 23, 2021 @12:43PM (#26240259)
x-state is easily the best js library for modelling state-machines on the front-end. the art is lost to many frontend engineers that UI is a series of states responding to inputs. so yeah, David thanks for your library.