Compiling a subset of Python syntax to x86-64 assembly for fun and zero profit
benhoyt.com
benhoyt.com
[1] ecee.colorado.edu/ecen4553/fall09/notes.pdf
That said, isn't PyPy (https://pypy.org/) already doing the same thing?
Optimizing python with calls out to optimized c/c++ code has always been a thing. I think a large part of the interest here is novelty.
http://multigrad.blogspot.com/2014/07/low-level-frenzy.html http://multigrad.blogspot.com/2014/06/fun-with-python-byteco...
I'm curious, what was the original use case for pyast64? Feels like we could apply it to genetic programming fairly straightforwardly.
> C version (gcc -O0) 0.22 31.8
Modern x86_64 processors are really good at ruing "bad" asm pretty efficiently.
That is not really what demonstrated here though, as gcc was run with optimizations turned off, since otherwise the program would have been optimized to printing a constant.