I've been evaluating Tobias Ivarsson's work as his mentor, and it's looking very good. Basically we have almost of all CPython 2.5 bytecode (PBC) compiling to Java bytecode using ASM! This is not just interesting for the possible case of importing pyc's, which can potentially have other difficulties. Because PBC is at a pretty high level (see http://docs.python.org/lib/bytecodes.html) it should not be difficult at all to use this work with respect to visiting a new 2.5 AST, when that becomes stable enough. This is because the compilation leverages existing Jython core (PyFrame, PyException, etc.), with only relatively minor changes required.

Using ASM should soon bring some other functionality. In particular, I'm interested in how we can leverage it to provide annotations via a simple decorator interface. There should be some code demonstrating this pretty soon.

Additionally, the PyASM work can compile itself (bootstrap), which is always a nice test, perhaps the classical test. (It's not quite of course, because PyASM has to only implement a subset of functionality, it can rely on existing Jython substantially, and I haven't really looked at how 2.5 it is.)

Having said that, don't expect Jython 2.5 alpha to be released too soon! At this point, we are still very much in the phase of everything barely working. And there are bugs. And the testing needs to be greatly expanded. Etc. In addition, the new compiler is only one part of 2.5.

But all in all, it's a great piece of work that Tobias should be quite proud of. Congratulations for a job well done! :)

SVN: https://jython.svn.sourceforge.net/svnroot/jython/branches/newcompiler/
Code browser: http://jython.svn.sourceforge.net/viewvc/jython/branches/newcompiler/

- Jim

On 8/23/07, Philip Jenvey <pjenvey@groovie.org> wrote:

On Aug 23, 2007, at 11:23 AM, Alan Kennedy wrote:

> "Jython 2.2 is released": music to my ears.
> All my favourite python features; iterators, generators, metaclasses,
> etc; in my favourite python implementation: How cool is that?

Hurrah! To everyone involved, thanks for the hard work

Though I must admit I'm also looking forward to the main focus now
being on 2.3+ development =]

Which brings me to the question (sorry, the devs deserve a breather,
but I couldn't resist): now that Summer of Code is over, how did it
go? I saw Tobias has checked in his PyASM compiler, how did the other
projects do?

Philip Jenvey

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>   http://get.splunk.com/
Jython-dev mailing list

Jim Baker