[Python-ideas] Bytecode JIT

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Jun 30 14:51:45 EDT 2017


On 30/06/2017 16:09, Soni L. wrote:
> CPython should get a tracing JIT that turns slow bytecode into fast 
> bytecode.
> 
> A JIT doesn't have to produce machine code. bytecode-to-bytecode 
> compilation is still compilation. bytecode-to-bytecode compilation works 
> on iOS, and doesn't require deviating from C.
> 
> (This "internal bytecode" should do things like know that 2 variables 
> necessarily hold integers, doing just "x = y + z" in C in an IADD 
> instruction as opposed to all those middle-of-function typechecks and 
> overhead. You can typecheck once at the start of the function and run 
> separate traces on that. Since this "internal bytecode" is extremely 
> unsafe, it should be considered an implementation detail and never 
> exposed to external code.)
> 

Patches are always welcome.  When do you intend delivering yours?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

---
This email has been checked for viruses by AVG.
http://www.avg.com




More information about the Python-ideas mailing list