Show HN: CXXStateTree ā A modern C++ library for hierarchical state machines
Hacker News (score: 21)Description
I've built [CXXStateTree](https://github.com/ZigRazor/CXXStateTree), a modern C++ header-only library to create hierarchical state machines with clean, intuitive APIs.
It supports: - Deeply nested states - Entry/exit handlers - State transitions with guards and actions - Asynchronous transitions with `co_await` (C++20 coroutines) - Optional runtime type identification for flexibility
It's ideal for complex control logic, embedded systems, games, robotics, and anywhere you'd use a finite state machine.
Iād love feedback, use cases, or contributions from the community!
More from Hacker
Show HN: MCP server for up-to-date Zig standard library documentation
Show HN: MCP server for up-to-date Zig standard library documentation Hey HN! I made this because Zig's stdlib changes so much and outdated docs are a problem. Server fetches the latest documentation directly from the ziglang.org and makes it available through the MCP, so LLM can query stdlib functions and builtins.<p>Link: <a href="https://github.com/zig-wasm/zig-mcp">https://github.com/zig-wasm/zig-mcp</a>
Modelling API rate limits as diophantine inequalities
Modelling API rate limits as diophantine inequalities
Amber insect fossils reveal "zombie" fungi likely lived alongside dinosaurs
Amber insect fossils reveal "zombie" fungi likely lived alongside dinosaurs
No other tools from this source yet.