3 ms·
One thing I get learning about implementing continuations is that at the end them have huge runtime cost and complicate implementation and debugging greatly. E
by mamcx 7y ago
One thing I get learning about implementing continuations is that at the end them have huge runtime cost and complicate implementation and debugging greatly.
Even do a simple interpreter with them quickly get out of control.
Exist update info in how tame it?
- _delirium 7y agoOne approach, which Java is taking, is to implement a more structured form of continuation, rather than say the Scheme-style call/cc ones. A quote from the article: "To be more precise, if you're interested in the theory of continuations in the academic literature, the kind of continuation of this class implements are called one-shot multi prompt delimited continuations..."
- mamcx 7y agoThat kind of continuation don't have much info that I remember and probably I'm not the only one: https://www.reddit.com/r/ProgrammingLanguages/comments/9r2ktu/rain1_blog_are_first_class_continuations_a/ https://www.reddit.com/r/ProgrammingLanguages/comments/9r2kt... but still look interesting if somehow manage to be performant-enough and tame enough. I think continuations are best for the internals of the compiler/vm than to surface to the end user...