Lazyweb: I know that, technically, any computer program can be represented as a finite state machine, and we can model state machines if we choose to, but is there a programming language or syntax that explicitly embodies that paradigm?

Follow

@jasongorman

If you describe something as an FSM, you need to describe the states and transitions. For any nontrivial program you can't enumerate states nor list the full table of transitions. So, I expect that you want languages where what you write is a description of the full state of the program and a transition function (in some fashion).

Nothing that is literally like that comes to my mind, but this reminds me of en.wikipedia.org/wiki/Function, where you write functions that take streams of input events and produce output events. You can think of the internal state of the function as FSM state and the function's logic as defining transitions. (This approach admits compositionality in a pretty obvious way; I don't see how anything more FSM-like would, which is, I suspect, correlated with me not knowing practical languages that are more FSM-like.)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.