[pypy-dev] Concerning bounded number of classes created

Armin Rigo arigo at tunes.org
Sat Dec 10 10:58:36 CET 2011


Hi,

On Sat, Dec 10, 2011 at 02:16, Alexander Golec
<alexgolecmailinglists at gmail.com> wrote:
> I have a question concerning what I think is a conflict between the RPython
> coding guide and the 2005 EU paper.

This is not a conflict.  The coding guide says that you cannot create
any RPython class at runtime.  This is true. A priori you would think
that this means that all RPython classes must be created before we
translate the program, but not exactly: as the 2005 EU paper says, you
can create (a bounded number of) extra RPython classes *during*
translation, more precisely during annotation (and not only *before*
translation starts), using tricks like specialize:memo functions.
Once annotation finishes, no more RPython class can be created.


A bientôt,

Armin.


More information about the pypy-dev mailing list