Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2025 (6)
20082026
  1. …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...
  2. https://github.com/sdzx-1/ray-game/blob/master/How-to-proper...
    comment by goless · 2025-06-26 · in How to Properly Use Polystate?
  3. ▲ 1
    How to Properly Use Polystate?
    story by goless · 2025-06-26 · 3 comments
  4. …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?
  5. …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…
  6. …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…