News for hackers. Stuff that matters.
Re:State Machine in Real Life by loopz on Saturday May 02, 2020 @04:43PM (#23054756)
State Machines, also called runtime programs.

I think when people call it "State Machines", it's for when they know the slightest breeze will trip it up. It's so seductive, because your initial use case gets resolved fairly quickly..

Ironically, the places they have worked wonders, is actually game engines from early 90's, where they have specific design, purposes, and limitations.

Re:State Machine in Real Life by heavenlyblue on Saturday May 02, 2020 @07:00PM (#23055562)
State machines don’t need to be runtime programs.

They can be expressed exactly using a static type system - that’s kind of exact the proposition of them.

Re:State Machine in Real Life by ves on Saturday May 02, 2020 @11:32PM (#23056675)
The idris book opens with a section on dependently-typed state machines and it’s magnificent.
Re:State Machine in Real Life by jgwil2 on Sunday May 03, 2020 @12:19AM (#23056832)
What book is this?
Re:State Machine in Real Life by rowanG077 on Sunday May 03, 2020 @06:38AM (#23058168)
Type driven development with idris
Re:State Machine in Real Life by exdsq on Saturday May 02, 2020 @05:11PM (#23054939)
They work well for protocols too!
Re:State Machine in Real Life by heavenlyblue on Saturday May 02, 2020 @07:02PM (#23055569)
A reasonably powerful subset of regex is a state machine.