[pypy-dev] naive VM question

Adam Olsen rhamph at gmail.com
Thu Nov 29 21:20:49 CET 2007

> From: Armin Rigo <arigo at tunes.org>
> Hi Peter,
> On Fri, Nov 16, 2007 at 10:53:39PM +1300, Peter Fraser wrote:
> > Is  "multiple isolated (but bridged) VM's in a single process" a
> > possible general technique?
> >
> > If  multiple cooperating processes is a reasonable response to the
> > "single threaded VM meets multi-core architecture" problem  -then is
> > "multiple VM's in a single process" a better one?
> This is probably yet another place where PyPy could go much more easily
> than CPython:  multiple VMs in the same process which would by default
> not have any share state, but expose primitives to the Python programmer
> to explicitly share some objects.  This is not trivial: there is some
> research and experimentation to be done here.

This sounds similar to what I'm doing with CPython: normal objects are
contained within a single Monitor, whereas shareable objects
(explicitly given a thread-safe API) can be passed between.


Adam Olsen, aka Rhamphoryncus

More information about the Pypy-dev mailing list