Settings

Theme

Delimited Continuations for Perl

blog.woobling.org

24 points by nothingmuch 17 years ago · 3 comments

Reader

ajross 17 years ago

It's a good explanation. I guess my question is deeper: what's the semantic case for having these things in the language? So far as I can see, these are purely optimization vs. a standard continuation. They allow the interpreter to "skip" the stuff on the stack above the reset, and thus free it earlier than it otherwise might. Otherwise the closure of the continuation code would need to save the reference to the whole stack, and everything it references.

So... why make the programmer do this? Can't you figure out for yourself the scope of the "highest free variable" in the referenced code?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection