frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: StatechartX – performant state machine runtime written in Go

https://github.com/comalice/statechartx
1•all2•1h ago

Comments

all2•1h ago
Hello all,

My name is Albert and I built this statechart engine to scratch my own itch. I work with embedded systems and in an environment where process is paramount. My current employer has a number of certifications that require semi-annual audits of process, paperwork, etc.

I kept reaching for tools I knew about (python-statemachine in particular) in order to solve process problems, but nothing really scratched the itch; I needed an engine that took declarative workflows that were versionable and more importantly, not a part of the core runtime. I want to be able to push/pull/up/down workflows the same way I do docker containers. I want those workflows to expose API endpoints and webhooks so I can interface with them in a variety of ways (UI, test completions, ECO/ECR flows involving people, and so on).

This library is a foundational piece of that puzzle; it gives me a relatively performant statechart execution engine that I can build my dream app on top of.

It consists of two runtimes: an event driven runtime, and a tick-based runtime. The event driven runtime does not make guarantees about event execution order for parallel states, where the tick-based system does. The tick based runtime is single-threaded on purpose, in order to guarantee event evaluation order, which makes it deterministic.

As an aside, I plan on building out a number of demos using this engine in the coming weeks. Amongst the demo ideas are: an AI agentic pipeline doing something arbitrary, like research (because why not), a simple game engine integration where the tick-based runtime takes the place of 'system' in an entity-component-system architecture, and probably an http server implementation just for kicks.

Thanks for taking a look!

---

Oh, and here are some benchmarks for the alpha release:

StatechartX Benchmarks (i5-5300U, 4 cores, Linux)

  Runtime              Burst      Sustained   Latency   Queue   Allocs
  ---------------------------------------------------------------------
  Realtime (1000Hz)    15.05M/s   ~6.1M/s     279 µs    10K     0
  Core - Simple        8.86M/s    8.86M/s     ~83 ns    100K    0
  Core - Internal      12.08M/s   12.08M/s    ~83 ns    1K      0
  Core - Concurrent    4.00M/s    4.00M/s     ~83 ns    10K     0
  Core - Parallel      3.69M/s    3.69M/s     ~83 ns    100K    0
  Core - Hierarchical  3.41M/s    3.41M/s     ~83 ns    100K    0
  Core - Guarded       3.01M/s    3.01M/s     ~83 ns    100K    0

  Memory: 32KB/machine | Zero allocations under load | Graceful backpressure

  Event-driven: burst = sustained (constant, predictable)
  Tick-based: burst > sustained (15M submit, 6.1M process)

Private Equity Saks Another Retail Outlet

https://prospect.org/2026/01/20/private-equity-saks-another-retail-outlet/
1•mooreds•45s ago•0 comments

The Foundation Sprint: From the Creators of the Design Sprint

https://www.lennysnewsletter.com/p/introducing-the-foundation-sprint
1•mooreds•12m ago•0 comments

Show HN: Ekctl CLI for Managing Calendars and Reminders on macOS

https://schappi.com/blog/meet-ekctl-a-command-line-interface-for-managing-calendars-and-reminders...
1•schappim•12m ago•0 comments

Best Practices for Ownership in GLib

https://blog.sebastianwick.net/posts/glib-ownership-best-practices/
1•JNRowe•13m ago•0 comments

Claudeception

https://github.com/blader/Claudeception
1•mooreds•13m ago•0 comments

Don't Trip[Wire] Yourself: Testing Error Recovery in Zig

https://mitchellh.com/writing/tripwire
1•todsacerdoti•14m ago•0 comments

Ask HN: How did Gemini go from being awful to incredible back to awful?

2•wewewedxfgdf•15m ago•1 comments

Realistic Designs N-Q – Atomic Rockets

https://www.projectrho.com/public_html/rocket/realdesigns2.php
1•thunderbong•18m ago•0 comments

TinyMMO Jam

https://itch.io/jam/tinymmo-jam
2•raytopia•20m ago•0 comments

An election booth inside a forest in India – for just one voter

https://www.aljazeera.com/gallery/2024/5/8/an-election-booth-inside-a-forest-in-india-for-just-on...
1•KnuthIsGod•21m ago•0 comments

A Reminder Why Digitising Old Printed Material Is Important (2025)

https://blog.decryption.net.au/posts/digitise_reminder.html
1•walterbell•23m ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
1•tanelpoder•23m ago•0 comments

Protect the Dolls

https://naomicunningham.substack.com/p/protect-the-dolls
1•yes_you•35m ago•0 comments

Unpleasant Design and Hostile Urban Architecture (2016)

https://99percentinvisible.org/episode/unpleasant-design-hostile-urban-architecture/
2•jacobedawson•37m ago•0 comments

Against Generative AI: Is Art the Last Refuge of Our Humanity?

https://lithub.com/against-generative-ai-is-art-the-last-refuge-of-our-humanity/
1•FigurativeVoid•38m ago•0 comments

African trade has been vastly underestimated

https://www.economist.com/middle-east-and-africa/2026/01/18/african-trade-has-been-vastly-underes...
2•petethomas•41m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
1•prattmic•43m ago•0 comments

A zero-overhead bridge between C++23 std:mdspan and CUTLASS cute layouts

https://github.com/weyl-ai/mdspan-cute
1•benreesman•46m ago•1 comments

SUPERMAN Written by James Gunn [pdf]

https://www.superman.com/script/supermanscript.pdf
1•hbcondo714•47m ago•0 comments

Sine – The ultimate theme manager for Firefox-based browsers

https://github.com/CosmoCreeper/Sine
1•modinfo•48m ago•0 comments

Show HN: Roo Code Slack: end to end agentic workflow in Slack

https://www.youtube.com/watch?v=dJM_8HHGe1E
1•hrudolph•53m ago•0 comments

Ask HN: CVAT users, how do you QA labels?

1•Abderrahman54•54m ago•1 comments

2025 AI Wrapped: What I've Shipped with 100% AI-generated code

https://www.jsrowe.com/ai-wrapped-evolution-of-using-ai-every-day/
3•jsr6720•55m ago•0 comments

Best Practices for Claude Code

https://code.claude.com/docs/en/best-practices
2•mfiguiere•56m ago•0 comments

Show HN: Markdown TOC generator for JavaScript builds.Works recursively for repo

1•datalackey•56m ago•0 comments

Delta single handle ball faucets (1963)

https://archive.org/details/DeltaSingleHandleBallFaucets
2•userbinator•57m ago•0 comments

Meta Pays $3B for Manus: Its Fastest Path to AI Agent Dominance

https://gilpignol.substack.com/p/meta-pays-3-billion-for-manus-its
2•light_triad•57m ago•0 comments

Show HN: Wisp: Stateful Claude Code Management

https://github.com/canaanmckenzie/Wisp
3•prince_nez•59m ago•0 comments

ClearFlow Keyboard

https://clearflowkeyboard.github.io/
2•_thisdot•1h ago•0 comments

SlimEdge: Lightweight Distributed DNN Deployment on Constrained Hardware

https://arxiv.org/abs/2512.22136
1•PaulHoule•1h ago•0 comments