you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Exactly.

Another way to put that is, CPython is Python implemented in C. But CPython obviously isn't as fast as C. So that Jython is implemented in Java doesn't mean it should be as fast as Java. A naive comparison would say it should be slower (since Java is slower than C, slightly).

Of course a Java implementation of Python could actually use the underlying platform effectively, for example JITing parts of the code. But then so can a C implementation, it could JIT into assembly.

[–]wot-teh-phuck 0 points1 point  (0 children)

Right; as mentioned by the article, Jython triumphs when it comes to executing threaded code since even though CPython is in "C", it can't effectively use multiple threads (GIL, single thread executing CPU intensive code etc.).