r/programming • u/dani-but-g • Oct 18 '26
Durable workflows without replay: freezing the VM instead of re-running the code
https://qoqi.dev/blog/durable-workflows-without-replay
0
Upvotes
r/programming • u/dani-but-g • Oct 18 '26
12
u/marku01 Oct 19 '26
For what it's worth, this isn't an entirely new idea, and in my opinion, this is not that good of a solution/implementation. Inventing a whole new language, VM and compiler (or rather having an LLM do it) kinda kills any real world applicability.
On a technical side the VM design seems a bit odd to me. Personally, I find it strange to represent every type by bit-hacking 64bit floats. That just seems to waste a third of nearly all variables, and I imagine working with 48bit integers and the like can occasionally be a bit mystical. The use of some terminology is also a bit weird IMO. For example, not referring to CPU registers when using the term "registers", renaming stack frames to "windows" (from what I understand) and calling compiled functions "chunks" and so on... Also, I understand that a bytecode interpreter is initially much simpler, but it looks a bit like you roadblocked yourself from writing an AoT compiler in the future and therefore leaving huge performance gains forever on the table.
And all that just to still delegate the meat of a workflow to external invocations. So a developer still has to deal with managing idempotency manually, in addition to learning a new language.
I'm sorry, but I won't bother going too much deeper into the technicals. It is very clear that this is entirely LLM generated with the documentation seemingly consisting of LLM discussions. I have not read any of the code, and I suspect that you haven't either.
From what I gather, the industry is slowly heading to doing the same with WebAssembly. WASM provides a well-defined sandbox and standardised bytecode format with promising support in many languages. There are already durable Record/Replay runtimes out there and some* snapshotting capable runtimes. They promise features similar to your claims with vastly better industry support and performance, and additionally offer better system interfaces (WASI 0.3 and onwards).
I apologize if this sounds mean or rude, but at this point it kinda annoys me to see these huge slopware projects with barely any engineering effort behind them. So many are just a 5 hours old slopped out mess that was never really tested nor maintained after publishing an inspirational blog post about it.
*Wasmer already has guest assisted snapshotting using asyncify, and full VM snapshots are also kinda feasible.