27 ms·
Actually, Python is compiled (just like Java, C#, Ruby) to bytecode which is executed in a virtual machine. It is the dynamic nature of certain languages that c
by Luyt 14y ago
Actually, Python is compiled (just like Java, C#, Ruby) to bytecode which is executed in a virtual machine. It is the dynamic nature of certain languages that can make them slower than languages that are statically typed.
- yyqux 14y agoAnd then the bytecode is interpreted. It's faster than interpreting the AST or source directly, but it's still pretty slow. Java compiles the bytecode on the fly. Back in older JVMs where Java interpreted the bytecode it was also slow as hell.