News for hackers. Stuff that matters.
Re:Durable Coroutines for Go by skybrian on Friday October 20, 2023 @03:00PM (#37960080)
The saved coroutine state is an implicitly-defined data structure and they don’t support any kind of migration when the code changes, so the durability will be quite limited.
Re:Durable Coroutines for Go by achille-roussel on Friday October 20, 2023 @03:11PM (#37960208)
You’re correct that code migration is still a to do, we’ll be exploring how to do that in the future.

As you can imagine there are a lot of challenges with it, but ideas are welcome!

Re:Durable Coroutines for Go by skybrian on Friday October 20, 2023 @03:49PM (#37960688)
It seems like generating some data structure definitions (similar to a protobuf) and checking them in along with the code would be useful? Then the compiler can tell you when they still match, or you made an incompatible change to the code.

This seems like a situation where defining the data structure in two different ways might be good?

Re:Durable Coroutines for Go by dlock17 on Friday October 20, 2023 @04:45PM (#37961299)
This seems like a good use case for Cap'n Proto.
Re:Durable Coroutines for Go by chris6f on Friday October 20, 2023 @04:02PM (#37960842)
We have a solution already, and we're exploring a few more.

The durable coroutine library is one part of a larger system we're releasing soon. See https://stealthrocket.tech/blog/fairy-tales-of-workflow-orch... for more information :)