Live data from Hacker News

Show HN: µFSM – A state chart library for embedded applications

github.com

11–20 of 35 posts

Re: Show HN: µFSM – A state chart library for embedded applications

#12
post #9

Very nice! Anything that allows something more sophisticated than switch:case in embedded systems are welcome! Also, state machines are way too often overlooked as a proper model for embedded systems architecture. My guess is that proper implementation may become hard (specially if you want to nest them), and there are lots of hardware engineers doing firmware. In my case, when I want to use a state machine for a pro…

I went to the Quantum Leaps site to check out their run-to-completion scheduler(s), one of the rare RTOS alternatives out there. They seem to have an incredible vision, yet, unfortunately, the site and the books make you want to stop reading and go alone.

Re: Show HN: µFSM – A state chart library for embedded applications

#13

Thanks for sharing! I'm working on a device and I've been searching for a good FSM library in C with no dynamic allocation :)

Same here, I've started 2 or 3 times and not liked any of my own implementations, this might actually be useful to me tonight.

Re: Show HN: µFSM – A state chart library for embedded applications

#15
post #9

Very nice! Anything that allows something more sophisticated than switch:case in embedded systems are welcome! Also, state machines are way too often overlooked as a proper model for embedded systems architecture. My guess is that proper implementation may become hard (specially if you want to nest them), and there are lots of hardware engineers doing firmware. In my case, when I want to use a state machine for a pro…

I second the use of statemachine for embedded systems.

They’re particularly ideal for embedded systems. The limited ram in many embedded systems makes a full dynamic language difficult to fit but a state chart interpreter can be very minimal while production runs can be compiled directly to code. Memory management in state charts can often be much easier to handle.

There’s also a lot of benefit to describing valid states for your system both in terms of correctness and the ability of algorithmically finding an optimal reduced state machine.

Personally I am fond of SCXML as it’s fairly concise, can include code snippets, and has a relatively well documented standard easy to display by converting to Vue/React/WebComponents. XMI with its connection to UML didn’t seem appealing to me, but this project seems pretty robust!

Re: Show HN: µFSM – A state chart library for embedded applications

#16
post #9

Very nice! Anything that allows something more sophisticated than switch:case in embedded systems are welcome! Also, state machines are way too often overlooked as a proper model for embedded systems architecture. My guess is that proper implementation may become hard (specially if you want to nest them), and there are lots of hardware engineers doing firmware. In my case, when I want to use a state machine for a pro…

I second the use of statemachine for embedded systems. They’re particularly ideal for embedded systems. The limited ram in many embedded systems makes a full dynamic language difficult to fit but a state chart interpreter can be very minimal while production runs can be compiled directly to code. Memory management in state charts can often be much easier to handle. There’s also a lot of benefit to describing valid st…

And anyone interested in SCXML, there’s a similar project https://github.com/tklab-tud/uscxml

Re: Show HN: µFSM – A state chart library for embedded applications

#20
post #9

Very nice! Anything that allows something more sophisticated than switch:case in embedded systems are welcome! Also, state machines are way too often overlooked as a proper model for embedded systems architecture. My guess is that proper implementation may become hard (specially if you want to nest them), and there are lots of hardware engineers doing firmware. In my case, when I want to use a state machine for a pro…

I went to the Quantum Leaps site to check out their run-to-completion scheduler(s), one of the rare RTOS alternatives out there. They seem to have an incredible vision, yet, unfortunately, the site and the books make you want to stop reading and go alone.

The site was not that bad a few years ago, but I guess this new structure sells better for some companies.

At the time, I actually bought the book and I liked it. It was a bit dense in the beginning, and I skipped the example, but I had some good takeaways, specially on the implementation of the system, which is described in the book.

Post reply on HN