frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: CXXStateTree – A modern C++ library for hierarchical state machines

https://github.com/ZigRazor/CXXStateTree
1•zigrazor•5h ago
Hi HN!

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!

Repo: https://github.com/ZigRazor/CXXStateTree

Comments

jeffreygoesto•4h ago
Nice and compact. I only wound have two nitpicks:

The Readme sais "zero heap allocations" but the code uses list and unordered map and moves, did you mean "zero allocations after state tree building"?

Also for embedded it would be useful to separate all in/out, dot export etc. to a second library that you can omit on small targets.

zigrazor•4h ago
yes, it means "zero allocations after state tree building". Thank you for the suggestions, I think we could separate target with compilation switch. If you want you can open an issue on the repo. Thank you so much

Atlassian migrated 4M Postgres databases to shrink AWS bill

https://www.atlassian.com/blog/atlassian-engineering/migrating-jira-database-platform-to-aws-aurora
1•maxloh•2m ago•0 comments

Report on China Eastern 5735 Crash Withheld over National Security Concerns

https://airlinegeeks.com/2025/06/27/report-on-deadly-crash-withheld-over-national-security-concerns/
1•agubelu•3m ago•0 comments

Show HN: CPU Shit Drawer – AI Generates JSON Coordinates, CPU Renders with PIL

https://poops-draw.site/
2•thunderlab•6m ago•0 comments

Ultracite – Zero-config Biome preset for JavaScript

https://github.com/haydenbleasel/ultracite
1•fmerian•6m ago•0 comments

Ask HN: How to create a website to express bad product experience?

1•hownotcensored•6m ago•0 comments

Interaction with megafauna in S. America earlier than widely accepted theory

https://archaeologymag.com/2025/07/sloth-bone-shows-possible-human-inflicted-trauma/
1•gametorch•7m ago•0 comments

VMware's rivals ramp up their efforts to create alternative stacks

https://www.theregister.com/2025/07/07/vmware_rivals_ramp_virtualization_efforts/
1•rntn•13m ago•0 comments

Show HN: Tallya – The minimal UX foundation for count labels

https://github.com/faizanu94/tallya
1•faizanu94•14m ago•0 comments

Why Matt Mullenweg went to war over WordPress

https://www.theverge.com/decoder-podcast-with-nilay-patel/693052/automattic-ceo-matt-mullenweg-wordpress-drama-wp-engine-open-source
1•donohoe•14m ago•0 comments

VibeTunnel: Turn Any Browser into Your Mac's Terminal

https://steipete.me/posts/2025/vibetunnel-turn-any-browser-into-your-mac-terminal
1•teehemkay•17m ago•0 comments

Show HN: Promptbuild.ai – Version control for LLM prompts

https://www.promptbuild.ai
1•error7891•18m ago•0 comments

PhantomGPU: GPU performance emulator to benchmark ML models on virtual GPUs

https://github.com/bugthesystem/PhantomGPU
2•ziyasal•20m ago•2 comments

The untold story about how Olive Garden's most popular special came to be

https://www.cnn.com/2025/07/05/food/olive-garden-never-ending-breadsticks-story
1•mooreds•22m ago•0 comments

Meta's grand WhatsApp fintech experiment in India has fizzled

https://restofworld.org/2025/whatsapp-pay-download-india/
1•Brajeshwar•24m ago•0 comments

Subscriptions That Respect Users

https://v5.chriskrycho.com/notes/subscriptions-that-respect-users/
1•mooreds•24m ago•0 comments

Ask HN: Any resources for finding non-smart appliances?

20•everyone•24m ago•7 comments

Catalytic converter theft is down by 80% in NYC

https://gothamist.com/news/catalytic-converter-theft-is-down-by-80-in-nyc-heres-why
1•geox•28m ago•0 comments

The Harmful Consequences of the Robustness Principle (2021)

https://www.ietf.org/archive/id/draft-iab-protocol-maintenance-05.html
1•mooreds•29m ago•0 comments

Kyocera Pegatron and Smart Show CXL over Optics at Computex 2025 – ServeTheHome

https://www.servethehome.com/kyocera-pegatron-and-smart-show-cxl-over-optics-at-computex-2025/
1•rbanffy•31m ago•0 comments

Free AI Girl Generator: Create Your Dream AI Girl

https://dreamyify.com/
1•treecyx•34m ago•0 comments

It doesn't make sense to wrap modern data in a 1979 format, introducing .ptar

https://www.plakar.io/posts/2025-06-27/it-doesnt-make-sense-to-wrap-modern-data-in-a-1979-format-introducing-.ptar/
1•touristtam•34m ago•0 comments

Side Quests Are the New Main Thing

https://sidequest.substack.com/p/side-quests-are-the-new-main-thing
1•jsmoov•35m ago•0 comments

I'm Building LLM for Satellite Data EarthGPT.app

https://www.earthgpt.app/
4•sabman•35m ago•1 comments

Radiocarbon dating reveals Rapa Nui not as isolated as previously thought

https://phys.org/news/2025-06-radiocarbon-dating-reveals-rapa-nui.html
1•pseudolus•39m ago•0 comments

Show HN: I made a tool to list your AWS account Lambda Function invocation time

https://github.com/alvin-rw/alli-lister
1•pxsnlrbg•39m ago•0 comments

Winners of the $10k ISBN visualization bounty

https://annas-archive.li/blog/all-isbns-winners.html
2•luckys•43m ago•0 comments

Show HN: A browser extension that removes the algorithmic X 'For you' evil tab

https://github.com/alterebro/bye-for-you
2•alterebro•44m ago•0 comments

Stop Burnout Before It Starts: A One-Page Early-Warning Worksheet

https://ledgeroflife.blog/stop-burnout-before-it-starts-a-one-page-early-warning-worksheet/
1•shadowvoxing•45m ago•0 comments

As women have far fewer babies, the US and world face unprecedented challenges

https://www.npr.org/2025/07/07/nx-s1-5388357/birth-rate-fertility-replacement-pronatalist-politics
2•pseudolus•51m ago•0 comments

Stop Using Nix-Env

https://stop-using-nix-env.privatevoid.net/
1•todsacerdoti•51m ago•0 comments