
I've released WPython 1.1, which brings many optimizations and refactorings. The project is hosted at Google Code: http://code.google.com/p/wpython2/ and available as a Mercurial repository http://code.google.com/p/wpython2/source/checkout?repo=wpython11 . In the download section http://code.google.com/p/wpython2/downloads/listthere are the slides of the last italian PyCon where I have presented the project and illustrated the changes. You can also download the binaries for Windows (compressed in 7-Zip format: http://www.7-zip.org/ ) and sources (for Unix users, Parser/Python.asdl and configure files need to be chmod +x ). Attached there are some benchmarks with the Unladen Swallow tests suite (against Python 2.6.4). Regards Cesare

On Wed, 23 Jun 2010 08:12:36 pm Cesare Di Mauro wrote:
I've released WPython 1.1, which brings many optimizations and refactorings.
For those of us who don't know what WPython is, and are too lazy, too busy, or reading their email off-line, could you give us a one short paragraph description of what it is? Actually, since I'm none of the above, I'll answer my own question: WPython is an implementation of Python that uses 16-bit wordcodes instead of byte code, and claims to have various performance benefits from doing so. It looks like good work, thank you. -- Steven D'Aprano

2010/6/23 Steven D'Aprano <steve@pearwood.info>
On Wed, 23 Jun 2010 08:12:36 pm Cesare Di Mauro wrote:
I've released WPython 1.1, which brings many optimizations and refactorings.
For those of us who don't know what WPython is, and are too lazy, too busy, or reading their email off-line, could you give us a one short paragraph description of what it is?
Actually, since I'm none of the above, I'll answer my own question: WPython is an implementation of Python that uses 16-bit wordcodes instead of byte code, and claims to have various performance benefits from doing so.
It looks like good work, thank you.
-- Steven D'Aprano
Hi Steven, sorry, I made a mistake, assuming that the project was known. WPython is a CPython 2.6.4 implementation that uses "wordcodes" instead of bytecodes. A wordcode is a word (16 bits, two bytes, in this case) used to represent VM opcodes. This new encoding enabled to simplify the execution of the virtual machine main cycle, improving understanding, maintenance, and extensibility; less space is required on average, and execution speed is improved too. Cesare

On 6/23/2010 7:28 AM, Cesare Di Mauro wrote:
sorry, I made a mistake, assuming that the project was known.
A common mistake of people who announce their projects ;-) Someone recently make the same mistake on python-list with respect to a 'BDD' package (the Wikipedia suggests about 6 possible expansions of the acronym.
WPython is a CPython 2.6.4 implementation that uses "wordcodes" instead of bytecodes. A wordcode is a word (16 bits, two bytes, in this case)
I suggest you specify the base version (2.6.4) on the project page as that would be very relevant to many who visit. One should not have to download and look at the source to discover to discover if they should bother downloading the code. Perhaps also add a sentence as to the choice (why not 3.1?). -- Terry Jan Reedy

2010/6/23 Terry Reedy <tjreedy@udel.edu>
On 6/23/2010 7:28 AM, Cesare Di Mauro wrote: WPython is a CPython 2.6.4 implementation that uses "wordcodes" instead of bytecodes. A wordcode is a word (16 bits, two bytes, in this case)
I suggest you specify the base version (2.6.4) on the project page as that would be very relevant to many who visit. One should not have to download and look at the source to discover to discover if they should bother downloading the code. Perhaps also add a sentence as to the choice (why not 3.1?).
-- Terry Jan Reedy
Thanks for the suggestions. I've updated the main project accordingly. :) Cesare

It would be interesting to see benchmark diagrams inline on one page with overall summaries. I've posted a enhancement to http://code.google.com/p/unladen-swallow/issues/detail?id=145 if somebody is going to look at that. I wonder if 32bit version can bring more speedups? -- anatoly t.
participants (4)
-
anatoly techtonik
-
Cesare Di Mauro
-
Steven D'Aprano
-
Terry Reedy