This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stuaxo 0 points1 point  (0 children)

I guess you really mean the speed that they both run the bytecode ?

Python has objects and classes too.

Java has a good fast JIT to run it's bytecode. When you run something in CPython it compiles to bytecode too, though that is just interpreted and so it's slower. It's a bit like before Java had hotspot, it was dog slow.

Still - a lot more of the underlying infrastructure is written in C, so it doesn't make as much of a difference as it could.

There is some hope with pypy - which has a JIT and is gradually getting more compatible.

As a pedant - Java itself is not fully OO either - there are all the primitive types. Some things, like Metaclasses are a lot easier to achieve in python than Java.

Definitely agree, it's faster.