News for hackers. Stuff that matters.
Re:Statecharts: hierarchical state machines by ciarcode on Sunday April 26, 2026 @09:19AM (#47910098)
Well, this is used in the automotive domain for long time now. Look at matlab/simulink: you can draw your algorithm as a state machine and generate the code out of it. Recently I implemented a state machine to manage a quite complex react component, who moves from one visual state to another through some css transitions. It’s not a difficult state machine, but I think people are not so well versed in it.
Re:Statecharts: hierarchical state machines by renticulous on Sunday April 26, 2026 @09:23AM (#47910130)
I assume game engines might already have this or sophisticated version of this already implemented.
Re:Statecharts: hierarchical state machines by fmbb on Sunday April 26, 2026 @09:38AM (#47910240)
Sure. State machines are often useful.

A general framework is I think more rarely useful.

Unreal Engine is a popular game engine and it seems to contain dozens of different state machine frameworks.