[racket] Serializable continuations

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Fri Jun 8 00:06:30 EDT 2012

If you write in

#lang web-server/base

then you will get serialization continuations, but none of the Web
libraries. The transformation isn't really Web-specific.


On Thu, Jun 7, 2012 at 9:32 PM, Rodolfo Carvalho <rhcarvalho at gmail.com> wrote:
> Hello everyone,
> I am writing a small experiment in which I want to persist a continuation in
> an SQLite database.
> It wasn't possible to 'insert' the continuation directly, so I tried using
> "serialize" (from racket/serialize) but it turned out that continuations are
> not serializable.
> My program is not a webapp, but, since the webserver has a
> "call-with-serializable-current-continuation", I thought there could be a
> way to serialize a continuation.
> Any advice? Is it something feasible to do?
> My code is available at https://gist.github.com/2893350
> (In this simple example, I sure could store the internal state of the
> counter explicitly instead of the continuation, however that misses the
> point)
> Thanks,
> Rodolfo Carvalho
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.