Re: [pypy-dev] Concerning bounded number of classes created

2011-12-10 Thread Armin Rigo
Hi, On Sat, Dec 10, 2011 at 02:16, Alexander Golec 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 prior

Re: [pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Benjamin Peterson
2011/12/9 Alexander Golec : > Also, if you take a look at gateway.py, you can see that type is being > called. Does the interpreter treat class definitions and calls to type > differently? > > https://bitbucket.org/pypy/pypy/src/94737f156c30/pypy/interpreter/gateway.py That happens before the flow

Re: [pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Alexander Golec
Also, if you take a look at gateway.py, you can see that type is being called. Does the interpreter treat class definitions and calls to type differently? https://bitbucket.org/pypy/pypy/src/94737f156c30/pypy/interpreter/gateway.py Alex On Dec 9, 2011, at 8:22 PM, Benjamin Peterson wrote: > 2

Re: [pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Benjamin Peterson
2011/12/9 Alexander Golec : > So at no point reachable from the entry_point (or is it run?) of the program > can you create classes and functions? All the classes that there will ever by instances of in the RPython program are known at translation. -- Regards, Benjamin ___

Re: [pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Alexander Golec
So at no point reachable from the entry_point (or is it run?) of the program can you create classes and functions? Alex On Dec 9, 2011, at 8:18 PM, Benjamin Peterson wrote: > 2011/12/9 Alexander Golec : >> Hey all, >> >> Sorry to keep asking questions on the mailing list, but I've been doing

Re: [pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Benjamin Peterson
2011/12/9 Alexander Golec : > Hey all, > > Sorry to keep asking questions on the mailing list, but I've been doing my > semester research project on PyPy, and my deadline is beginning to loom... > > I have a question concerning what I think is a conflict between the RPython > coding guide and the 2

[pypy-dev] Concerning bounded number of classes created

2011-12-09 Thread Alexander Golec
Hey all, Sorry to keep asking questions on the mailing list, but I've been doing my semester research project on PyPy, and my deadline is beginning to loom... I have a question concerning what I think is a conflict between the RPython coding guide and the 2005 EU paper. The paper states: Our