[Borges-users] How does Borges handle the save and load of continuations?

Michael Neumann mneumann at ntecs.de
Mon Apr 3 06:44:57 EDT 2006


Am 03.04.2006 um 10:53 schrieb Robert Chen:
> I am working on some ruby project, and I am looking to exploiting  
> first
> class continuations in ruby to build a continuation-based server.   
> I search
> the web and find Borges, which is a ruby framework for constructing
> continuation-base servers.  This brings me to this mailing-list.
>
> I here have a question on how to serialize and store ruby  
> continuations.
> Seems ruby does not provide support for serializing continuations  
> directly.
> I looked into the source code of Borges (the Session class), but  
> still don't
> figure out how Borges serialize and stores a continuation on hard  
> disk.  It
> occurs to me that Borges simply stores continuation in some memory  
> cache.
> But as far as I understand, the memory state will be gone from one  
> request
> to another.  Then how does a request grab a continuation saved by a  
> previous
> request?

Simple answer: You can't serialize continuations in Ruby!

Regards,

   Michael


More information about the Borges-users mailing list