why python is slower than java?

G. S. Hayes sjdevnull at yahoo.com
Mon Nov 8 13:32:43 EST 2004


finite.automaton at gmail.com (Lonnie Princehouse) wrote in message news:<4b39d922.0411051555.24f31663 at posting.google.com>...
> Yes, wxPython is typically quicker than swing.  It's not fair to use
> this in a generic Python-vs-Java speed shootout, though, since
> wxPython is just a wrapper around wxWidgets' C++ code; you're really
> comparing C++ vs. Java here. 

But the ease of development of extensions in other languages and the
willingness of the community to do so IS one of the key differences
between Java and Python, especially with respect to performance. 
Where Java tends to be platform independent, Python tends to be
platform agnostic.  In real code, people use SciPy/NumPy, wxpython,
etc because those things work for them and get the job done.

Moreover, since the GUI developer in Python is writing only in Python
(never touching C++ or needing to know about it at all), you're
basically saying that this example is unfair because Python has a
faster implementation.



More information about the Python-list mailing list