[Mono-devel-list] Embedding Mono in a Virtual World

Jim Purbrick jimpurbrick at yahoo.co.uk
Fri Mar 18 16:11:14 EST 2005


--- "Rodrigo B. de Oliveira" <rodrigobamboo at gmail.com>
wrote:
> You might be able to cook up something with
> serializable objects and lightweight threads based 
> on generators (yield).... But this is just
> food for though...

Yes, this is the other option. You end up with
something that looks like PicoThreads for Java, or
some of the other Java systems for serializing running
threads. It boils down to builing continuations on the
heap instead of using the stack. As the continuation
objects are just objects you can serialize them like
any other object. Then you just need to turn every
method in to a state machine so you can jump to any
point in the method. This is lots of work though and
has a big impact on performance, so I'm hoping I don't
have to go there. Trying to use debugging APIs to do
this sounds like it might be an easier first option.

Cheers,

Jim. 

Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the Mono-devel-list mailing list