News for hackers. Stuff that matters.
Re:How I Learned to Stop Worrying and Love the State Machine by nrclark on Monday February 26, 2018 @04:05PM (#16468952)
Is there much in the way of FOSS statechart implementations? It's been a while since I looked into the ecosystem.

I remember that the canonical one was always the Quantum framework, but I never wanted to deal with the licensing aspect of it.

Re:How I Learned to Stop Worrying and Love the State Machine by davidkpiano on Monday February 26, 2018 @06:49PM (#16470022)
Hey! I'm the creator of xstate: https://github.com/davidkpiano/xstate - a pure, functional, declarative implementation of statecharts in TypeScript. It has zero dependencies, is frameworkless, and fast (O(n) state and transition look-up time for most cases).

I have some important updates to announce at JSConf Iceland, including the ability to translate to/from SCXML, and an improved visualizer.

Let me know what you think!

Re:How I Learned to Stop Worrying and Love the State Machine by nrclark on Monday February 26, 2018 @08:07PM (#16470373)
I think that looks awesome! Makes me wish I was a JS programmer so I could try it out :)
Re:How I Learned to Stop Worrying and Love the State Machine by ahartmetz on Monday February 26, 2018 @11:40PM (#16471115)
Qt has QStateMachine http://doc.qt.io/qt-5/qstatemachine.html which is modeled after State Chart XML https://www.w3.org/TR/scxml/ (but no XML is required to use it)

It's LGPLv3 if you use Qt > 5.6 (LGPLv2 earlier), and 5.6 is getting old now.

Re:How I Learned to Stop Worrying and Love the State Machine by keithnz on Monday February 26, 2018 @07:47PM (#16470284)
I use statemachines a lot in embedded systems and decorate the code with comments that are easy to translate into graphvizs "dot" languge.

Also played around with doing dynamic charts as the code runs, but stopped doing that as it was more novelty value than any other kind of value :)

Re:How I Learned to Stop Worrying and Love the State Machine by Serow225 on Monday February 26, 2018 @04:55PM (#16469317)
Definitely not FOSS, but Stateflow is used a ton in scientific computing (Automotive, Control Systems, etc): https://www.mathworks.com/products/stateflow.html
Re:How I Learned to Stop Worrying and Love the State Machine by macspoofing on Tuesday February 27, 2018 @07:33AM (#16472835)
Though you should always have NIHS in the back of your mind, state machines aren't very difficult to implement which means when you write yours you can really tailor it to your use case.
Re:How I Learned to Stop Worrying and Love the State Machine by nrclark on Tuesday February 27, 2018 @09:39AM (#16473647)
Statecharts are a very different beast than a traditional state machine. Putting together a good statechart implementation is a boatload of work.
Re:How I Learned to Stop Worrying and Love the State Machine by macspoofing on Saturday March 03, 2018 @06:37AM (#16508857)
Missed that part. You're correct.
Re:How I Learned to Stop Worrying and Love the State Machine by asangha on Tuesday February 27, 2018 @02:06PM (#16476744)