Statechart-based actor runtime simulates 1 million foraging and fighting ants in-process
sull · x · 2026-11-22
After a year of work, @dhamidi shared an actor runtime built exclusively on statecharts (inspired by xstate). The demo simulates 1 million foraging and fighting ants, each an actor backed by a statechart. It runs in-process with modest resource use, so fine-grained entities like individual websocket connections can each get an actor — useful for large-scale simulation and agent workloads. It works on servers and in browsers today, with mobile/native planned, and uses XML as a data format that allows inline HTML for self-documenting charts.
More from coding & agent
- Tens of thousands of compute nodes power this multi-agent swarm architecture — hwchase17 · 2026-11-22
- Agent ran for hours playing Smash Ultimate but botched the replay-saving task — anpaure · 2026-11-22
- Teknium shares Hermes telemetry: 92.4% of tokens are cache reads — Teknium · 2026-11-22
- Elvis Saravia opens up his "knowledge factory": a daily-automated MD knowledge graph — omarsar0 · 2026-11-22
- Team says Grok Bot agents ran half the prep for a 5,000-person summit in months — GavinSBaker · 2026-11-22
- Dev shows off browser pinball game polished with Gemini 4 Neon's help — AI_Andrew · 2026-11-22