[pypy-dev] Re: genrpy is ready so far.

holger krekel hpk at trillke.net
Tue Jan 11 14:11:22 CET 2005


On Tue, Jan 11, 2005 at 11:31 +0000, Michael Hudson wrote:
> Christian Tismer <tismer at stackless.com> writes:
> 
> > Hi Armin, all,
> >
> > I've put quite some work into genrpy.py in the last
> > few weeks. It seems to produce usefulcode, although
> > it could of course be nicer with some more effort.
> >
> > The speed effect appears to be somewhere around 40%
> > over interpreted appspace code, not really disappointing,
> > but also not really overwhelming.
> >
> > The real effect of such translation lies probably in
> > opening things to further optimization in a later
> > code generation step.
> >
> > The code works fine with
> > _formatting.py, md5.py and strutil.py. These all
> > appear to obey RPython restrictions, as probably
> > many others.
> 
> Hmm!  Could we use this to make an interpreter-level implementation of
> the argument parsing code from a nice clear application level
> implementation?  Or does this still result in hideous circularities?
> Probably.  Oh well.

We decided that we had enough of hideous circularities in this 
area some time ago :-)  So we don't have app-level code for argument 
parsing anymore, i think. It turned out that the interp-level 
code wasn't really that bad (in interpreter/argument.py). 

cheers, 

    holger



More information about the Pypy-dev mailing list