3 ms·
You are. Sure you call libraries that aren't written in Python, but that seems just as irrelevant as the fact that the JVM is written in C.
by lmm 12y ago
You are. Sure you call libraries that aren't written in Python, but that seems just as irrelevant as the fact that the JVM is written in C.
- pjmlp 12y agoWhich JVM?! There isn't such thing as "The JVM", there is the JVM standard, reference implementations and certified JVMs. Oracle has JVMs implemented in a mix of C, C++ and Java, up to pure Java (Maxime), just like many other JVM vendors and research institutes also do. Even Oracle is playing with the idea of using the Maxime JVM, now Graal, to eventually replace Hotspot. The Java 7 and Java 8 reference implementation saw a lot of C++ code being replaced by Java code, thanks to new JIT intrinsics. The idea that C is the only way to implement VMs needs to die.
- lmm 12y ago> Which JVM?! The Oracle one, aka the one production Java code is usually deployed on. I am aware of several of those research projects but they're, well, research projects. Even if the JVM were fully implemented in Java, the OS most likely wouldn't be. Even if it were, the CPU microcode almost certainly wouldn't be. At some point your Java will be running on something not-Java, even if that thing is "logic gates". But it doesn't matter - just as the implementation language of the libraries you use in Python doesn't matter.
- pjmlp 12y agoThere are lots of production JVMs, they aren't research projects. - Oracle JVM - Oracle J/Rockit - Websphere JVM - OS/400 JVM - HP-UX JVM - Aix JVM - Aonix Perc JVM - ... > But it doesn't matter - just as the implementation language of the libraries you use in Python doesn't matter. If I can achieve the same execution speed with pure Python, then yes it doesn't matter. However, that isn't the case.