3 ms·
Except for the fact there are no 'interpreted' or 'compiled' languages. What we have are implementations. This is not merely nitpicking. Any turing-complete la
by outworlder 13y ago
Except for the fact there are no 'interpreted' or 'compiled' languages. What we have are implementations.
This is not merely nitpicking. Any turing-complete language can be interpreted or compiled. Language specs tend to make one side easier, but that doesn't mean that Python cannot be compiled (and it is actually compiled to bytecode). You can have something similar to a GIL in a compiled language too.
One of the things that makes it easier to increase performance is having type declarations. This makes it much easier for the compiler to reason about the code, which can lead to increased efficiency. But optional type annotations can accomplish just as much.