[Python-Dev] A new JIT compiler for a faster CPython?

Maciej Fijalkowski fijall at gmail.com
Wed Jul 18 11:14:33 CEST 2012


On Wed, Jul 18, 2012 at 8:27 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:

> martin at v.loewis.de, 18.07.2012 07:53:
> > [Victor Stinner]
> >> I don't want to write my own library to generate machine code.
> >
> > I plan to use nanojit.
>
> As I said, generating machine code is the uninteresting part of it and
> won't give you much of a win. The changes you make to the way the code
> works while walking the path from seeing the Python code to generating
> machine code is what makes the difference.
>
> You could even skip the machine code generation all together and just go
> with triggering pre-implemented high-level patterns from the interpreter.
> If you code up the right patterns, your win would be bigger than with a
> bare 1:1 mapping from Python code to machine code. Both Cython and WPython
> are clear examples for that.
>
> Stefan
>
>
It's uninteresting but it's completely necessary and it's still quite a bit
of work. For the PyPy needs llvm failed to provide some features (besides
being buggy), like dynamic patching of compiled assembler (you kind of need
that for the tracing JIT when you discover new paths) or speed of execution.

Cheers,
fijal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120718/4d7973cf/attachment.html>


More information about the Python-Dev mailing list