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: Grsh ā A high-performance shell for FreeBSD written in Rust
Show HN: Grsh ā A high-performance shell for FreeBSD written in Rust I built GRSH because I wanted a modern, memory-safe shell that feels native to FreeBSD but works seamlessly on macOS.<p>While there are many shells out there, GRSH is my take on a minimal, fast, and secure command interpreter written entirely in Rust. It's designed for users who want the safety guarantees of Rust without the overhead of more bloated alternatives.<p>I'm currently working on the official FreeBSD port. Iād love to get feedback on the shell's behavior and performance from the community.<p>Github: <a href="https://github.com/antoniomalara301289/grsh" rel="nofollow">https://github.com/antoniomalara301289/grsh</a>
iMessage-kit is an iMessage SDK for macOS
iMessage-kit is an iMessage SDK for macOS
Using Vectorize to build an unreasonably good search engine in 160 lines of code
Using Vectorize to build an unreasonably good search engine in 160 lines of code
Scaling Go Testing with Contract and Scenario Mocks
Scaling Go Testing with Contract and Scenario Mocks
No other tools from this source yet.