Replies: 2 comments 15 replies
-
It's quite an interesting theme, from the other side -- I can't find a good practical use-case, because for all cases, which I trying to invent, exists analog based on monadic context. On the other side -- I'm not sure, that I fully understand continuations. I.e. is this some monad, which allows in runtime to apply effects, then how does this differ from the combination of Monad + Effect handlers embedded in some framework (like ZLayer) [?]. If not - what is the essential difference (?). Run handlers within one monad (?) i.e. decouple the definition of handlers from monad? Maybe slow but deterministic way will try to implement from scratch continuation monad, based on |
Beta Was this translation helpful? Give feedback.
-
Btw, classical examples of the delimited continuations monad are added to tests: |
Beta Was this translation helpful? Give feedback.
-
hi sorry for being stranger, went into surgery, now catching up with different things, I just read about multicore ml, how they use fibers to implement their single shot delimited continuation.
cats-effect, zio, monix and even kotlin coroutine and later loom have something close to fibers, do you think we can use those as a runtime for continuation, thereby have a delimited continuation system in scala, I think you already did most of the hard work.
once we have single shot delimited continuation, we can build the generators, resumable exception, effect handlers, and so forth.
I am just shooting some ideas, I could be wrong.
Originally posted by @renghen in #39 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions