Un naufragio personal

Ángel Ortega

State machines are wonderful tools

Chris Wellons:

I love when my current problem can be solved with a state machine. They’re fun to design and implement, and I have high confidence about correctness [...]

Inspired by a puzzle, I came up with this deterministic state machine for decoding Morse code. It accepts a dot ('.'), dash ('-'), or terminator (0) one at a time, advancing through a state machine step by step [...]

https://nullprogram.com/blog/2020/12/31/