Hi Martijn, On Thu, Dec 8, 2011 at 20:12, Martijn Faassen <[email protected]> wrote: > Anyway, separate from the binding, I'm wondering about the challenge of two > Pythons in one runtime - how hard would it be to generate this with the > current PyPy? (imagining two different Python interpreters were available)
Getting two completely separate interpreters in one process is trivial in PyPy, quite unlike CPython (blame C). This works even with the GC (you get one for both) and the JIT (you get one JIT that can "meta-trace" starting from either interpreter). That means that maybe PyPy is better than CPython as a starting point. Of course someone still has a serious amount of work to do to integrate the two interpreters to the point where it becomes something more than, well, two unrelated interpreters in one process. [ More generally, you can translate several interpreters for different languages and getting a single unified JIT, capable of inlining across languages. It is an interesting challenge that explores some unique benefits of PyPy --- worth a paper, most probably :-) ] A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
