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.
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.


-- 
Amaury Forgeot d'Arc
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to