4 ms·
> I think GIL is not the reason for slowness, it is the weak dynamic types of Python that make it slow. Python is structurally typed, that makes it dynamic, b
by PartiallyTyped 4y ago
> I think GIL is not the reason for slowness, it is the weak dynamic types of Python that make it slow.
Python is structurally typed, that makes it dynamic, but it is not weak as there is no type coercion.
> Every single instruction need to be type checked at runtime and thus making everything slow.
This is also wrong, python does not type check anything, not in the "regular" manner of typechecking. It relies on structural typing, if it quacks like a duck, then it is treated like a duck.
In fact, PyPy is an argument against your position as it still allows the same (more or less) behaviour that python has while operating a lot faster due to JIT.
Python doesn't have the luxury of compiling that C# and Java, nor is the VM intended to be high performing.
- pjmlp 4y agoPyPy is still slower than the competition and largely ignored by the Python community.