I just wanted to have them in the language. The fact that I don't currently use them in HN doesn't mean they're useless.
ah ok thanks for clarifying.
I always thought the purpose of Arc was to be cruft-free, "don't include it unless it is actually needed".
Re:Why HN was slow and how Rtm fixed it
by dauphin on Wednesday January 19, 2011 @06:58PM
(#2121863)
Errors/exceptions, for one, are implemented using continuations.
Sounds terribly inefficient to me, but what do I know -shrug-
Re:Why HN was slow and how Rtm fixed it
by jrockway on Wednesday January 19, 2011 @07:34PM
(#2121970)
All control flow is a subset of continuations. The stack is a continuation (calling a function is call-with-current-continuation, return is just calling the "current continuation"), loops are continuations (with the non-local control flow, like break/last/redo/etc.), exceptions are continuations (like functions, but returning to the frame with the error handler), etc. Continuations are the general solution to things that are normally treated as different. So continuations are just as efficient (or inefficient) as calling functions or throwing exceptions.
In a web app context, though, it's kind of silly to keep a stack around to handler something like clicking a link that returns the contents of database row foo. People do this, call it continuations, and then run into problems. The problem is not continuations, the problem is that you are treating HTTP as a session, not as a series of request/responses. (The opposite of this style is REST.)
Re:Why HN was slow and how Rtm fixed it
by sedachv on Wednesday January 19, 2011 @09:48PM
(#2122390)
In theory yes, in practice you need to reify the stack (even for one-shot continuations). Clinger, Hartheimer and Ost have a really good survey paper of the different ways to do that:
http://www.scribd.com/doc/47221367/Clinger-Implementation-St...
> It had to be some dialect of Lisp with continuations, which meant Scheme, and MzScheme seemed the best.
(From further down the page).
I'm confused. What needs continuations?