Python too slow?

G

Gary Duzan

I think the benefits of running Java on CPython are significantly less
than those had by running Python on the Java VM (or another VM).
Firstly, who wants to write statically typed code which then runs on a
virtual machine that can't take advantage of the type declarations?

I know it was a rhetorical question, but I wanted to point out
that this is exactly what happens with Java Generics. They didn't
want to update the type system in the JVM, so all the generic types
get thrown out by the compiler in favor of non-generic types, and
casts are inserted as necessary. Practicality wins over Purity
again.

Gary Duzan
Motorola HNM
 
C

cokofreedom

"You're either with us, or against us."

George W. Bush

My understanding is that while CPython performance won't be winning
any awards anytime soon, Jython and IronPython are pretty impressive
performers.

Disclaimer: I haven't personally used Jython or IronPython.

Indeed, it is as Paul Rudin said;
"It's more a continuum than that suggests. The tricky bit is deciding
in each situation where you should be on the continuum."
 
J

Jaimy Azle

Paul Boddie said:
I think the benefits of running Java on CPython are significantly less
than those had by running Python on the Java VM (or another VM).
Firstly, who wants to write statically typed code which then runs on a
virtual machine that can't take advantage of the type declarations?
Secondly, isn't it just better to use a virtual machine with just-in-
time compilation and all sorts of security mechanisms if you're
wanting to write the Java code that, when compiled, can take advantage
of all that stuff? In other words: what makes CPython a compelling VM
for the Java programmer?

I agree, that's why i expecting nobody willing to. But despite of that, at
least what you've done is a proof-of-concept that java byte-code could also
be executed by python.

Salam,

-Jaimy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top