Writing a Lisp: Continuations
reinvanderwoerd.nl
Writing a Lisp: Continuations
1–10 of 51 posts
Re: Writing a Lisp: Continuations
#2Re: Writing a Lisp: Continuations
#3Do any non-Lisp/Scheme languages have continuations?
https://en.wikipedia.org/wiki/Continuation#Programming_langu...
Some of these are first-class continuations; others support continuation passing style.
Re: Writing a Lisp: Continuations
#4Do any non-Lisp/Scheme languages have continuations?
Re: Writing a Lisp: Continuations
#5Do any non-Lisp/Scheme languages have continuations?
Wikipedia provides a list of continuation implementations in a variety of languages: https://en.wikipedia.org/wiki/Continuation#Programming_langu... Some of these are first-class continuations; others support continuation passing style.
Re: Writing a Lisp: Continuations
#6Do any non-Lisp/Scheme languages have continuations?
http://hackage.haskell.org/package/mtl-2.2.1/docs/Control-Mo...
Re: Writing a Lisp: Continuations
#7Do any non-Lisp/Scheme languages have continuations?
In my opinion, delimited ones are far cleaner to implement and to work with than the more universal continuations of Scheme. call/cc, as a product of Scheme's efforts on simplicity[1], has to encompass a larger amount of low-level state than most real-world uses of it use (and it's used far less frequently in "real applications" than academically). Having a better suite of flow control forms and keeping continuations delimited has far less constraints on the design of the runtime and leads to more focused and explicit operation without a bunch of implicit unused implications hanging around.
[1 = simplicity as in fewer built-in operations]
Re: Writing a Lisp: Continuations
#8Do any non-Lisp/Scheme languages have continuations?
As a proof-of-concept, it was fun, but that's as far as it went :-)
Re: Writing a Lisp: Continuations
#9Re: Writing a Lisp: Continuations
#10Do any non-Lisp/Scheme languages have continuations?
I try a small demo, and the complexity of the interpreter get high fast.
Also, if not continuation, what else can be used?