Python Equivalent to Google Web Toolkit
The Google Web Toolkit looks cool. Now we know how they do it.
You write your front end in the Java programming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML.
A couple of weeks ago I was thinking about a similar (at a very high level) approach in Python. But now that we have something to imitate, anyone interested in trying to build a more specific Python equivalent? Portions of the GWT are open source and nothing in the license prohibits reverse engineering as far as I can tell.
I'll set up a mailing list for interested people.
UPDATE: Mailing list available at http://pyworks.org/mailman/listinfo/py-gwt
UPDATE (2006-05-23): Now see Primitive Python Version of GWT Working
Comments (7)
James Tauber on May 17, 2006:
I remember seeing the SoC project. I was thinking that people working on this sort of thing could come together on the py-gwt mailing list as there are a number of different components to this.
Dan Gass on May 18, 2006:
In the last couple months (in parallel to learning/using wxPython) I was toying with the idea of using Python to generate html/javascript to serve as a GUI using a browser. It is an area I'd have interest in playing with.
It sounds from your description that the GWT takes the java code and "compiles" it into html/javascript. I would think it would be better to setup a toolkit in Python and run the Python code to have it generate the html/javascript. Not have something that "compiles" python into something else.
David Fraser on May 18, 2006:
That py2js thing on my site (http://davidf.sjsoft.com/py2js) was an extension of someone else's attempt...
Some conversions between Python and JavaScript ended up getting pretty hairy and I was only beginning...
deng hao on May 24, 2006:
great idea.
Guido van Rossum should join this project :)
don't know why google release gwt in java first, should in python, right ?
Philip Weaver on Aug. 18, 2007:
I was and still am a GWT fan but I found a JavaScript widget toolkit technologically superior to GWT, YUI, Dojo, and so on: It's called Qooxdoo.
http://www.qooxdoo.org
http://qooxdoo.org/demo
Take a look.
Alexander on Dec. 21, 2007:
Thanks for the tip about Qooxdoo, Philip! It was exactly what I was looking for!
Add a Comment
Last Modified: May 24, 2006
Author: James Tauber
Ian Bicking on May 17, 2006:
There's a couple projects for this, I think. There's CrackAjax (http://svn.subway.python-hosting.com/crackajax/trunk/), I saw a link to this today: http://davidf.sjsoft.com/files/py2js -- and there's current work in PyPy compiling to a Javascript backend with a SoC project to continue that work.