Key Info

Psychoscript was rewritten from an interpreter to a bytecode virtual machine to support suspend/resume, and this design lets it snapshot in-memory state instead of replaying every function call.

Highlights

  • Traditional durable workflow products save results from each function call, replay everything, and skip cached results to resume.
  • That approach requires storing the result of every single call in loops, e.g. 10,000 iterations means 10,000 saved results.
  • Psychoscript's bytecode VM can snapshot its in-memory state and resume directly without replaying.
  • The rewrite was done in the background in about a day using the Carbon model.