Thank you Alex!  Excellent pointers.<br><br>Thank you Hendrik. I guess I should have specified that I am interested in how to implement first class serializable continuations, and to interface with them.  As you point out, continuation passing style is simply never returning.<br>
<br>A friend of mine was explaining that Microsoft's new Async C# offers a nice interface programatic interface to continuations, where the compiler notices the "yield" keyword, and automatically generates a finite state machine where the current state is captured as a continuation, and then the interface to the continuation is done via IEnumerable.  This sounds elegant.  Has anyone compared it's ease of use to the gambit/scheme style API?<br>
<br><div class="gmail_quote">On Wed, Jun 8, 2011 at 4:41 PM, Alex Queiroz <span dir="ltr"><<a href="mailto:asandroq@gmail.com">asandroq@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hallo,<br>
<div class="im"><br>
On Wed, Jun 8, 2011 at 11:35 PM, Hendrik Boom <<a href="mailto:hendrik@topoi.pooq.com">hendrik@topoi.pooq.com</a>> wrote:<br>
><br>
> One hack -- Just let your C functions keep calling and never returning.<br>
> When it's time too return, call the continuation as you'd expect.<br>
> You'll never see old stack frames again unless they contain data you<br>
> need to point to.  Even cons will just give you stack storage, fill it<br>
> in, and call the continuation with a pointer to the consed cell.<br></div></blockquote></div><div class="im"><br>
On Wed, Jun 8, 2011 at 11:14 PM, Jason E. Aten <<a href="mailto:j.e.aten@gmail.com">j.e.aten@gmail.com</a>> wrote:<br>
><br>
> If others on the list have pointers to papers as well, I'd enjoy reading<br>
> about the best thoughts on how to implement continuations.<br>
><br>
<br>
</div>"Representing Control in the Presence of First-Class Continuations"<br>
<a href="http://www.cs.indiana.edu/%7Edyb/papers/stack.ps" target="_blank">http://www.cs.indiana.edu/~dyb/papers/stack.ps</a><br>
<br>
"A portable implementation of first-class continuations for<br>
unrestricted interoperability with C in a multithreaded Scheme"<br>
<a href="http://repository.readscheme.org/ftp/papers/sw2000/feeley.pdf" target="_blank">http://repository.readscheme.org/ftp/papers/sw2000/feeley.pdf</a><br>
<br>
"Implementation strategies for first-class continuations"<br>
<a href="http://www.springerlink.com/content/h5808n962434j275/fulltext.pdf" target="_blank">http://www.springerlink.com/content/h5808n962434j275/fulltext.pdf</a><br>
<br>
More in:<br>
<a href="http://library.readscheme.org/page6.html" target="_blank">http://library.readscheme.org/page6.html</a><br>
<br>
Cheers,<br>
<font color="#888888">--<br>
-alex<br>
<a href="http://www.artisancoder.com/" target="_blank">http://www.artisancoder.com/</a><br><br></font>