←back to thread

110 points ingve | 5 comments | | HN request time: 0.361s | source
1. fiddlerwoaroof ◴[] No.46007446[source]
Every several years people reinvent serializable continuations
replies(4): >>46007619 #>>46007648 #>>46008143 #>>46009583 #
2. andersmurphy ◴[] No.46007619[source]
Haha so true. Shame image based programming never really caught on.

Janet lang lets you serialize coroutines which is fun. Make this sort of stuff trivial.

3. gunnarmorling ◴[] No.46007648[source]
Yupp, making that same point in the post :)

> You could think of [Durable Execution] as a persistent implementation of the memoization pattern, or a persistent form of continuations.

4. smitty1e ◴[] No.46008143[source]
Is this reinvention somehow "transactional" in nature?
5. rileymichael ◴[] No.46009583[source]
unfortunately they've never really taken off so folks reach for explicit state machines instead. there have been a handful of options on the jvm over the years (e.g. quasar, kilim) but they're all abandoned now, the loom continuation API is internal with no hint of it becoming public, kotlin's aren't serializable and the issue is inactive (https://github.com/Kotlin/kotlinx.coroutines/issues/76), etc.. such a shame