Primitive Python Version of GWT Working
I'm pleased to announce that, after a very busy weekend and one or two weeknights, I've successfully built a Python equivalent to the Google Web Toolkit (GWT) that can handle half the Hello World example.
It sounds small but the pieces are largely all there in a primitive state:
- a Python-to-JavaScript translator
- Python datatypes
- UI widgets written in Python
- boiler plate HTML
Now it's just a case of incrementally improving each of these areas.
You can see the result in revision 19 at:
http://pyworks.org/svn/py-gwt/hello-experiment/
Join the mailing list if you want to get involved in any way.
UPDATE (2006-05-26): The project now has a name and a website: pyjamas
Comments (15)
SomePythonUser on May 24, 2006:
Seems interesting. I was actually searching for something like this.
The example doesn't work on my FF.
I hope that the project will get some more attention.
wmil on May 24, 2006:
Am I the only one getting a text/plain mime type for all of the files in that directory?
Naturally it works in IE, and not FF. Because IE likes to guess the real mime type.
James Tauber on May 24, 2006:
Note that it was not my intention that people be able to run Hello.html from my server.
At this stage you should check out the code from svn and run it locally.
anonymous on May 24, 2006:
This is cool, but where are your unit tests?
Is this going to be a real project or a throw-away experiment?
pythonista on May 24, 2006:
When I read about the Java tool kit my first thought was that it would be nice to have that in Python. What an excellent and useful project.
James Tauber on May 24, 2006:
unknown, unit tests for py2js.py are in my sandbox - just not checked in yet.
fwiffo on May 24, 2006:
I am also among the people whose first thought upon seeing GWT is that there needs to be a Python clone. You sir, are a gentleman and a scholar.
Python and Ruby are much better fits for this sort of thing than Java (BDSM) since they're dynamically typed and have object models much more similar to Javascript's.
James Tauber on May 24, 2006:
Oh, and to answer your second question, "unknown", this is definitely a real project and no just a throw-away experiment.
F Milton on May 24, 2006:
Nice work! I wonder what a certain Google employee thinks about this project.
Jade Thorpe on May 25, 2006:
When I read about GWT my first thought was "I wish this was in Python"...Looks like my wish may come true.
Bob on May 26, 2006:
Keep up the good work man!
Domingo on June 3, 2006:
I'm kind of wondering if GWT goes through JVM bytecode before going to HTML/Javascript output. If so, it might be most convenient to use Jython in conjunction with GWT! How great would that be?
victorden on Sept. 18, 2006:
Keep up the good work man!
Tony on Oct. 26, 2008:
This sounds really interesting. If I had more free time, I would definitely want to work on this project. Can't wait to see where it goes. Great work!
Last Modified: May 26, 2006
Author: James Tauber
n[ate]vw on May 24, 2006:
Man, what a fun sounding project! Almost makes me feel bad I'm working on learning Ruby instead of Python. Plenty of other stuff to work on anyway, I guess...