Better HN
topnewbestaskshowjobs
Log inSign up

grumpycoder2

1 karma · joined May 5, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

This is... a computer. They've just implemented a Turing machine: a bunch of states with transitions between them defined by a transition function. And that's because, at the end of the day, you still have to do the computation somewhere. You can't get around having to add and subtract the numbers by hitting the buttons, but this ensures that you can do it with way more code than is necessary.