[pypy-dev] In RPython, what is meant by 'live code objects'?

2011-12-09 Thread Alexander Golec
Hey all, When the RPython receives the code objects, are all the objects that the interpreter would push and pop on the stack already present? Or does the abstract interpreter handle creating those objects as well? In other words, is interpretation abstract from the start of the program to the

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

2011-12-09 Thread Alexander Golec
: > 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. > >

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 mailin

[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

Re: [pypy-dev] Could someone give me an idea of what is where with RPython?

2011-12-09 Thread Alexander Golec
the shared interpretation code? Alex On Dec 9, 2011, at 7:38 PM, Benjamin Peterson wrote: > 2011/12/9 Alexander Golec : >> So the RPython compiler reuses interpreter code from PyPy to perform >> bytecode interpretation on the objects that the were given it by the >> stan

Re: [pypy-dev] Could someone give me an idea of what is where with RPython?

2011-12-09 Thread Alexander Golec
once. If I'm not mistaken, the PyPy VM uses a superset of the CPython bytecodes. Does that mean that RPython can perform translation either on bytecodes emitted by CPython or by PyPy? Alex On Dec 9, 2011, at 7:17 PM, Benjamin Peterson wrote: > 2011/12/9 Alexander Golec : >> I g

Re: [pypy-dev] Could someone give me an idea of what is where with RPython?

2011-12-09 Thread Alexander Golec
e: > 2011/12/9 Alexander Golec : >> Hi Armin, >> >> Thanks for the answer, but I'm having a hard time wrapping my head around >> this. I'm reading about object spaces, and I keep wondering how do the >> object spaces find their way into the CPython int

Re: [pypy-dev] Could someone give me an idea of what is where with RPython?

2011-12-09 Thread Alexander Golec
Hi Armin, Thanks for the answer, but I'm having a hard time wrapping my head around this. I'm reading about object spaces, and I keep wondering how do the object spaces find their way into the CPython interpreter. In other words, since there is an element of partial initialization to the transl

[pypy-dev] Could someone give me an idea of what is where with RPython?

2011-12-09 Thread Alexander Golec
Hey all, I have the following conception of the RPython toolchain: - RPython translator is written in RPython, meaning it can be interpreted by CPython, and then run as a standalone executable once translated - The translator runs the standard interpreter on the input program. - The input p

Re: [pypy-dev] How are namespaces implemented in rpython?

2011-12-05 Thread Alexander Golec
will give inconsistent results. However, global instances don’t have this restriction, so if you need mutable global state, store it in the attributes of some prebuilt singleton instance. Alex On Dec 5, 2011, at 11:36 PM, Alexander Golec wrote: > Impressive. I would think that there would

Re: [pypy-dev] How are namespaces implemented in rpython?

2011-12-05 Thread Alexander Golec
Dec 5, 2011, at 11:33 PM, Alex Gaynor wrote: > > > On Mon, Dec 5, 2011 at 11:04 PM, Alexander Golec wrote: > Hey all, > > I'm preparing a presentation for Alfred Aho at Columbia, and I'd like to ask > how are namespaces translated during the translation phase. Are

[pypy-dev] How are namespaces implemented in rpython?

2011-12-05 Thread Alexander Golec
Hey all, I'm preparing a presentation for Alfred Aho at Columbia, and I'd like to ask how are namespaces translated during the translation phase. Are they implemented dynamically, or are they actually compiled down to C? Alex ___ pypy-dev mailing list

Re: [pypy-dev] Question about pypy

2011-12-04 Thread Alexander Golec
Thanks for this point. I think this tied together my understanding of the the purpose of rpython as a framework. Where is the distinction between rpython as a language and rpython as a compiler generator? I presume this is covered in the 'Compiling Dynamic Language Implementations' paper? Alex

Re: [pypy-dev] Question about pypy

2011-12-03 Thread Alexander Golec
which basically makes it a promo for the term paper. Alex On Dec 3, 2011, at 3:31 PM, Benjamin Peterson wrote: > 2011/12/3 Alexander Golec : >> Hi all, >> >> I'm a student at Columbia University, and I'm taking a graduate course with >> Alfred Aho,

[pypy-dev] Question about pypy

2011-12-03 Thread Alexander Golec
Hi all, I'm a student at Columbia University, and I'm taking a graduate course with Alfred Aho, the author of the dragon book, on advanced compilers techniques. I've been researching the pypy project in general, and rpython in particular, and I'd like to ask you guys for some feedback on the cu