Hey,

On Fri, Dec 9, 2011 at 2:36 PM, Amaury Forgeot d'Arc <[email protected]> wrote:
> 2011/12/9 Armin Rigo <[email protected]>
>>
>> Getting two completely separate interpreters in one process is trivial
>> in PyPy

> Well, not so trivial; I played with this idea last evening.

Awesome! I'm glad someone who actually sounds like he knows what he's
doing is trying this. :)

> A few lines in targetpypystandalone.py to install a new objspace,
> and tried to translate...

> Here are the issues I encountered so far:
> - Builtin functions are created twice, yet the global registry
> (Function.find) only use the function name.
> I added "space" to the key. Maybe Builtin Functions should avoid to use the
> objspace entirely, I almost
> managed to do it except for the default values of arguments.
> - a couple of issues in modules, easily fixed.
> - now, I'm fighting with multimethods, which are added to the space
> *instance*: they fail when MethodOfFrozenPBCRepr sees different
> implementations for the same dispatcher (e.g. __mm_float_w_0_perform_call).
> I tried to add annspecialize.arg(0), but it still fails to translate.

Is there a branch or something where I could try this out? Maybe I'll
find a bit of time to mess around with this.

Regards,

Martijn
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to