Show HN: Waymark – A workflow engine that compiles jobs instead of replaying
Waymark is a new durable workflow engine that compiles Python code into bytecode for a virtual machine, avoiding replay constraints.
summary is enough It offers an innovative compile-once alternative to replay-based workflow engines, though it is currently pre-1.0 and experimental.
summary
Waymark is a lightweight background task and durable workflow engine built on Postgres with a Rust core. Unlike replay-based engines like Temporal that require strictly deterministic code, Waymark compiles Python workflow ASTs into bytecode and a durable virtual machine. This tracks execution state without re-running workflow logic on crashes, though the project is pre-1.0 and lacks production guarantees.
key points
- Compiles workflow logic into bytecode via an intermediate representation, avoiding the strict determinism requirements of replay-based systems.
- Relies solely on Postgres for infrastructure and features a Rust execution core, with Python as the initial supported language.
- Supports standard control flow like conditionals, loops, parallel fan-out via asyncio.gather, and durable sleeps.
who should read it
Backend engineers and Python developers looking for lightweight durable execution without heavy orchestration infrastructure.
discussion positive
consensus
Commenters find the compile-once approach refreshing for agentic workflows and simple pipelines, though a few requested SQLite support as an alternative to Postgres.
pushback
Some critics disliked the mandatory use of Python async code and tight coupling to application definitions.
Yep, that’s exactly it. imo the main value add for agents:
- Each LLM call and tool call becomes a checkpoint. Without durable execution you're pretty much stuck doing db saves/restores if you detect that this agent might have a previous context window. Agent frameworks are fundamentally just harnesses around the underlying model: you `while loop` until some server gives you some payload back, you add that to your context window list, and you keep going until it terminates. Durable execution moves that loop into the workflow body itself (a quick example here …
The author explains how durable execution provides automatic checkpoints for LLM agent loops and long waits without manual state tracking.
Generated by an LLM from the article and thread. Check the sources before relying on it.