[pypy-dev] Re: Project suggestions

Armin Rigo arigo at tunes.org
Sat Oct 1 00:32:34 CEST 2005


Hi Aurelien,

On Thu, Sep 29, 2005 at 02:54:01PM +0200, Aur?lien Camp?as wrote:
> That's what I tried first. Then I found it was much easier to work from 
> pyrex translator (maybe because the later is slightly more complete than 
> current gencl.py ?).

Er, they are really both old pieces of code...

Note that the approach they use has a fundamental problem -- not trying
to stop you, as it's indeed quite some fun :-)  The problem is that
after the initial basic types like integers and strings, there are lots
of methods to implement e.g. on lists and dicts, and then there are
rather more obscure annotations like SomePBC() that are quite involved.
Just to frighten you a bit, you'd also need at some point to do
something like pypy/rpython/normalizecalls.py :-)

What we have in mind is to support targets like CL by a modified RTyper
(pypy/rpython/r*.py); it means that there would be an additional
processing step between the graph-with-annotations and the CL backend
which would simplify the graphs and replace complex operations and
annotations with more primitive ones.  This will make the task of the
backend far easier.


A bientot,

Armin.



More information about the Pypy-dev mailing list