▲ | wangii 4 days ago | ||||||||||||||||
how is it better than https://github.com/boost-ext/sml ? there are about 1 million c++ state machines, and sml happens to be the best, or one of them. how does yours differentiate? | |||||||||||||||||
▲ | canyp 4 days ago | parent [-] | ||||||||||||||||
I was about to complain about the use of strings in both libraries, both for the lack of type safety as well as the possible runtime allocation, but then I looked at the assembly for the sml example and there are no strings in the binary other than the obvious "send" one. What exactly happened there? It looks like make_transition_table() is doing some serious magic. Or are the state transitions evaluated at compile-time given that there is no input in the example, and then the transition table gets compiled out? Anyway, I think it would help OP's library to have some assembly output in the readme as well. | |||||||||||||||||
|