Static typing [was Re: Python and the need for speed]
Gregory Ewing
greg.ewing at canterbury.ac.nz
Tue Apr 18 01:43:22 EDT 2017
Steve D'Aprano wrote:
> I'm not sure why the Cython devs maintain this is not a JIT compiler.
> Perhaps I misunderstand something.
A JIT compiler works by observing the actual values taken on
by variables at run time, and if it notices that a particular
variable seems to always have a particular type, it compiles
a special version of the code to handle that type, protected
by appropriate guards.
Cython doesn't do any of that -- it's just a plain, boring,
standard ahead-of-time compiler that goes by the type info
you give it and nothing more.
--
Greg
More information about the Python-list
mailing list