Skip to content

Finite State Machines in Forth (1994)

forth.org
86 pointsofalkaed3 comments
On HN

Comments

Compare 'Lambda: the ultimate GOTO' https://www2.cs.sfu.ca/CourseCentral/383/havens/pubs/lambda-... which also uses state machines as its motivating example.

With TCO, a state transition is implemented just as a function call. I find it very elegant and see TCO as great bonus in programming languages.

I haven't thought about this in years! Julian Noble was one of my teachers back when I was an undergrad.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.