Hacker News new | ask | show | jobs
by scanr 1000 days ago
Yeah! Back in the day, the Rhino implementation of JavaScript had serialisable continuations on top of the JDK. I wrote a workflow engine with them.

There are some interesting challenges:

- deserialising them into the same environment

- hooking in dependencies

- for time independence, how do you fix a bug on a process that has been running for 2 weeks and has got 2 more to go

Azure stateful functions solved this by instead of serialising the stack, they just start the process from scratch and then replay every external request / response back into them until they get the process back to its last instruction.