sdzx-1/ray-game
View on GitHub ↗ ★ 8 Zig
Explore the limits of polystate
6 mentions on Hacker News by 1 person: 1 story, 5 comments · first 2025-06-23 · latest 2025-06-26
20082026
-
…is: reason about program behavior through symbols, then transform these symbols into code. https://github.com/sdzx-1/ray-game/blob/master/How-to-proper...
comment by goless · 2025-06-26 · in Polystate: Composable Finite State Machines -
https://github.com/sdzx-1/ray-game/blob/master/How-to-proper...
comment by goless · 2025-06-26 · in How to Properly Use Polystate? -
…combining two small state machines, and I think nested selects are sufficient to illustrate this. https://github.com/sdzx-1/ray-game/blob/9646bc3c0f1c11314aaf... How do you understand such behavior?
comment by goless · 2025-06-25 · in Polystate: Composable Finite State Machines -
…at the code here you'll see that the select state uses some functions from the parameter state. https://github.com/sdzx-1/ray-game/blob/master/src/select.zi... So you can see that the select state itself is incomplete, and the parameter…
comment by goless · 2025-06-24 · in Polystate: Composable Finite State Machines -
…way to combine: Higher order finite state machines that require other states as parameters to work. https://github.com/sdzx-1/ray-game/blob/master/src/select.zi... The select, inside, and hover states here are all high-level states, and…
comment by goless · 2025-06-23 · in Polystate: Composable Finite State Machines