Python good for translating GUI built in Java?

Gordon McMillan gmcm at hypernet.com
Mon Mar 13 21:24:48 EST 2000


Cameron Laird wrote:
[François Pinard]
> >I do not speak Java, but I've read a few times that Python allows you to
> >write smaller programs for similar algorithms, a factor of 8 was mentioned.
> This is surely a typo.  I have zero evidence for
> a factor that high.  I generally estimate the
> compactness of Python as roughly the same as
> Java's, and twice as good on occasion.

Well I've written lots of both. If you think Java-in-Python, the 
factor will be < 2. But fairly often complex class hierarchies 
needed for Java's static typing can be dispensed with, and 
then the multiplier is larger. I would guess that 4 is a good 
number in general.

Of course, if you want something that really works cross-
platform, a factor of 100 might be more reasonable <wink>.

masking-platform-differences-just-hides-the-gotchas-ly y'rs

- Gordon




More information about the Python-list mailing list