[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] How are namespaces implemented in rpython?

2011-12-05 Thread Alex Gaynor
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 they > implemented dynamically, or are they actually compiled down to C? > > Alex >

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

2011-12-05 Thread Benjamin Peterson
2011/12/5 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? I assume you mean modules? They're al

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

2011-12-05 Thread Alexander Golec
Impressive. I would think that there would be some trouble with names that may or may not be included in the namespace depending on execution of the module. The module would still need to be executed at runtime, but I'm guessing the names that it might produce are bounded? Alex On Dec 5, 201

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

2011-12-05 Thread Alex Gaynor
On Mon, Dec 5, 2011 at 11:36 PM, Alexander Golec wrote: > Impressive. I would think that there would be some trouble with names that > may or may not be included in the namespace depending on execution of the > module. The module would still need to be executed at runtime, but I'm > guessing the

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

2011-12-05 Thread Alexander Golec
I'm guessing this explains this fragment from the rpython coding guide: constants all module globals are considered constants. Their binding must not be changed at run-time. Moreover, global (i.e. prebuilt) lists and dictionaries are supposed to be immutable: modifying e.g. a global list will g