I guess that's bugging me is where does the flow object space live? It is in 
RPython or the PyPy interpreter? Also, does RPython exist as a standalone 
thing, i.e. can I say 'rpython something.py' and get a translation? 

Alex


On Dec 9, 2011, at 7:00 PM, Benjamin Peterson wrote:

> 2011/12/9 Alexander Golec <[email protected]>:
>> 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 translation 
>> process, what performs the initialization, and how does the initialized 
>> product find its way into the translator?
>> 
>> My current understanding is:
>> 
>>  - Interpret PyPy on top of CPython
>>  - The interpreted PyPy performs partial interpretation of its own source 
>> code until it reaches the RPython entry point
> 
> No, the program is loaded into the process which is performing the
> translation; this will be a translated PyPy or CPython. Then the flow
> objspace starts building flow graphs from an entry point defined by
> the program to translate.
> 
>>  - From that point forward, the code are handled by the flow object space to 
>> produce code objects.
>>  - The annotator runs and translation happens
> 
> Technically, annotation drives flow graph creation, but yes.
> 
>> 
>> Is this correct? I've been spending my entire semester trying to grasp this, 
>> but I can't seem to get the totality of it into my head.
> 
> 
> 
> 
> -- 
> Regards,
> Benjamin

_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to