As

Asyncmachine-go, declarative workflows with relations (state machine)

Hacker News

Asyncmachine-go, declarative workflows with relations (state machine)

Hi, I wrote a fancy state machine in golang and Im happy to share it with you (plus a cool video). Some readme quotes: asyncmachine-go is a general purpose state machine for managing complex asynchronous workflows in a safe and structured way Common differences with other state machines: - many states can be active at the same time - transitions between all the states are allowed - unless constrained - states are connected by relations - every mutation can be rejected - error is a state There are some bigger case studies and a benchmark using libp2p: - libp2p-pubsub benchmark (3 machines) - libp2p-pubsub simulator (5 machines) - am-dbg TUI debugger (1 machine) There's of course basic examples like FSM or a file watcher. The benchmark is especially interesting, eg the chart with execution time of the original libp2p-pubsub compared to the state-based version (measured using go1.22 traces), which is about 10-15%. That's a doable sacrifice for the benefits (states, events, thread-safety, logging, metrics, traces, debugger, history, flow constraints, scheduler). A good place to start is the readme and cookbook: https://github.com/pancsta/asyncmachine-go/blob/main/docs/co... Happy to answer all your questions!

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntUnlikely to reach the leaderboard · Strong signals: mac, using · Missing: agents, macos, agent
49%49% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
41%41% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: plus · Missing: platform, intuitive, reviews
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: video, way · Missing: mobile apps, ios, personal
40%40% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Fi
Finite State Machine for Go56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Finite State Machine for Go

Hacker News6
Ju
Just state machine in ruby46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Just state machine in ruby

Hacker News2
St
State Trooper – Tiny, no frills state machine for Go57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

State Trooper – Tiny, no frills state machine for Go

Hacker News97
As
AsyncMachine – Relational State Machine (JS)57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AsyncMachine – Relational State Machine (JS)

Hacker News4
Ti
Tiny C++ State Machine Abstraction60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tiny C++ State Machine Abstraction

Hacker News3
I
I built an online state machine editor56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built an online state machine editor

Hacker News11
La
Last System State Before OOM49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Last System State Before OOM

Hacker News1
A
A C++11 Hierarchical State Machine Library50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A C++11 Hierarchical State Machine Library

Hacker News5
St
State machine simulator written with Qt66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

State machine simulator written with Qt

Hacker News2
Qu
Quorum-free replicated state machine built atop S358%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Quorum-free replicated state machine built atop S3

Hacker News6