On Apr 20, 2009, at 10:43 PM, Stefan Behnel wrote: > Hi, > > I just read the release announcement of PyPy's 1.1 beta: > > http://morepypy.blogspot.com/2009/04/beta-for-110-released.html > > According to their benchmarks, they are now less than 2x slower than > CPython in most cases and in some cases even 20% faster. Cython is > currently about 30% faster than CPython for plain Python code, but > that > only concerns the "Python code that Cython supports", which is not > at all > comparable to what PyPy supports. > > My feeling is that the goal to make CPython support "most of > Python" is > getting more important simply because PyPy exists. There is not > that much > that is missing, but the sad thing is that the main part that *is* > missing > is a very important part of the language: closures. > > I feel that closure support has become a real blocker on the path > towards > Python completeness. Closure support will actually open up a can of > worms, > but a friendly one, as it will lay out the path towards lambda > support and > nested functions/classes. Especially support for generators seems > to be an > extremely worthy goal, but in the current state of Cython, it just > cannot > be done.
All of the above are syntactic sugar for special closures. > Robert has started work on this at the first Cython workshop, but > it turned > out to be more work than what was doable at the time. So there are > parts of > this implementation in Cython's code base already, but it still > needs some > fair investment to finish it up. > > I would like to focus some (wo)manpower on this topic. For that, I > need to > understand better what is there and what remains to be done, so > that we can > break down the task into doable steps and get going. > > Anyone else interested? This has been bugging me for a *long* time. I'll pull out and go though the random scattered stuff I've done over the past year (something else more urgent has always come up everytime I've set out to do this) and put it up within the week. Should I make a closure branch on the site? - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
