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.

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?

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to