bytecodes and virtual machine? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: bytecodes and virtual machine? (/thread-15496.html) |
bytecodes and virtual machine? - insearchofanswers87 - Jan-19-2019 I thought I saw a reference somewhere that, like Java, Python (CPython?) "compiles" to bytecodes which are executed by a virtual machine. Is that true? Is there a document that explains how Python actually works "under the hood"? RE: bytecodes and virtual machine? - DeaD_EyE - Jan-19-2019 It is true. https://opensource.com/article/18/4/introduction-python-bytecode Just try it by yourself. The difference is, that Java is static typed language and Python is dynamic typed. Java has a JIT compiler. The standard implementation (CPython) has not a JIT compiler. But there happens other optimization of bytecode. |