I don't really understand the politics surrounding Python, but I don't understand why they believe this could be "blessed" by inclusion into the repository.
Performance goals have not been met so far; it increases memory usage; PyPy is an alternative with more community support (if only because the typical Python programmer knows more Python than C++); and it makes the code much more complex, introducing lots of hard-to-debug problems, at a time when the developers already have trouble getting people to migrate to 3.x.
The 3.x branch does not need a reputation for instability.
(None of this is to say Unladen Swallow is a bad idea, or should be killed; but it should prove its worth first.)
> but I don't understand why they believe this could be "blessed" by inclusion into the repository.
Google is, of course, a big company with lots of very smart people, and they rely on Python (and probably want to rely on it more in the future). Given that they employ Guido and also the primary developers of Unladen, the chances are very good that they will continue to vigorously improve upon it until their performance goals are met.
Very simple: this is a PEP to improve the state of "Cpython" (this is the main python implementation right now, and has been since the invention of python).
Pypy, on the other hand, is a new implementation of Python (just like ironpython or jython), and it could eventually replace cpython in the future if it proves to be succesfull (although it would be a long way off).
In few words: Python, the language, have many implementations. Cpython is the current reference one. Unladen Swallow aims to improve it, not to replace it.
Actually, even the US developers acknowledge that Pypy (or any other succesfull implementation that may come up) is the future, because it doesn't have to bear the burden imposed by the c platform.
I don't think it's enough to just add JIT. For a runtime system the garbage collector is important, it's important to do optimizations such as V8's hidden classes, function inlining, to remove the GIL etc. This is probably the reason why their perfomance gain is so small - - they have added JIT, while applying only a few smart optimizations.
I don't think Unladen Swallow should be merged into CPython until the benefits are proven. Currently it will just add an extra layer of complexity, worsen Python's greedy management of memory and add little benefits in perfomance.
So is the goal to gain resources by becoming part of CPython? It seems like the small performance increases they got are completely overshadowed by the additional memory requirements. I don't pretend to understand the mainline Python development cycle, but this surely doesn't seem mature enough to justify declaring it as "the way forward".
The performance increase is still notable though - I would like to see that static LLVM link changed; I like python for its size, speed, and expressiveness.
I think that a JIT compiler will eventually be added to python, so the sooner this happens the better. The new generation of javascript engines (e.g. V8) have shown us how fast dynamic code can be; there is no reason python can't achieve this either. I also think the swallow team has gone about this in the right way: presenting what they've done, and asking for what needs to happen before it can become mainline. They obviously value this merge, so kudos to google.
On the other hand, performance so far is quite underwhelming. Certainly, as a PEP, this is by no means intended to be merged now, but to provide a roadmap for the future. Here's to hoping they can remove their remaining roadblocks.
"... and a pony" is just an admission that you've already asked a lot and it might not happen. A pony is the kind of thing a child requests on a whim, who is then crushed because they don't understand how ridiculously impractical it would be.
If it was at terminal velocity it should be considered, but it's yet to get off the ground.
Until then, psyco is a great JIT compiler that really works.
[+] [-] JoachimSchipper|16 years ago|reply
Performance goals have not been met so far; it increases memory usage; PyPy is an alternative with more community support (if only because the typical Python programmer knows more Python than C++); and it makes the code much more complex, introducing lots of hard-to-debug problems, at a time when the developers already have trouble getting people to migrate to 3.x.
The 3.x branch does not need a reputation for instability.
(None of this is to say Unladen Swallow is a bad idea, or should be killed; but it should prove its worth first.)
[+] [-] garnet7|16 years ago|reply
Google is, of course, a big company with lots of very smart people, and they rely on Python (and probably want to rely on it more in the future). Given that they employ Guido and also the primary developers of Unladen, the chances are very good that they will continue to vigorously improve upon it until their performance goals are met.
As far as introducing C++ goes, it's going to stay roped off in LLVM land (see [the PEP](http://python.org/dev/peps/pep-3146/) for details).
As far as community support, LLVM has plenty of that.
[+] [-] luismgz|16 years ago|reply
Pypy, on the other hand, is a new implementation of Python (just like ironpython or jython), and it could eventually replace cpython in the future if it proves to be succesfull (although it would be a long way off).
In few words: Python, the language, have many implementations. Cpython is the current reference one. Unladen Swallow aims to improve it, not to replace it. Actually, even the US developers acknowledge that Pypy (or any other succesfull implementation that may come up) is the future, because it doesn't have to bear the burden imposed by the c platform.
[+] [-] algorias|16 years ago|reply
[+] [-] kingkilr|16 years ago|reply
[+] [-] amix|16 years ago|reply
I don't think Unladen Swallow should be merged into CPython until the benefits are proven. Currently it will just add an extra layer of complexity, worsen Python's greedy management of memory and add little benefits in perfomance.
[+] [-] aidenn0|16 years ago|reply
[+] [-] carbocation|16 years ago|reply
Approval for the overall concept of adding a just-in-time compiler to CPython, following the design laid out below.
Permission to continue working on the just-in-time compiler in the CPython source tree.
Permission to eventually merge the just-in-time compiler into the py3k branch once all blocking issues have been addressed.
A pony."
[+] [-] kingkilr|16 years ago|reply
[+] [-] leoc|16 years ago|reply
[+] [-] IgorPartola|16 years ago|reply
[+] [-] snprbob86|16 years ago|reply
[+] [-] alex_stoddard|16 years ago|reply
[+] [-] Ixiaus|16 years ago|reply
[+] [-] garnet7|16 years ago|reply
Give 'em a chance. They're only just out of the gate. :)
[+] [-] yoden|16 years ago|reply
On the other hand, performance so far is quite underwhelming. Certainly, as a PEP, this is by no means intended to be merged now, but to provide a roadmap for the future. Here's to hoping they can remove their remaining roadblocks.
[+] [-] stuaxo|16 years ago|reply
Of course one day pypy will emerge too, so unladen swallow should hurry up!
(TBH I'd prefer pypy to become the canonical python in the end)
[+] [-] unknown|16 years ago|reply
[deleted]
[+] [-] luismgz|16 years ago|reply
[+] [-] prodigal_erik|16 years ago|reply
[+] [-] unknown|16 years ago|reply
[deleted]
[+] [-] abdulhaq|16 years ago|reply
[+] [-] wanderr|16 years ago|reply
[+] [-] unknown|16 years ago|reply
[deleted]