4 ms·
I think this is a really solid approach. It's the same thing I was trying to do for PHP with phc (http://phpcompiler.org/ http://phpcompiler.org/) - compiling d
by pbiggar 12y ago
I think this is a really solid approach. It's the same thing I was trying to do for PHP with phc (http://phpcompiler.org/ http://phpcompiler.org/) - compiling down to C using the built in stdlib and C API, then using full program optimization.
Long term, it won't be as fast as a full JIT, as the Facebook HPHP team showed, but Python doesn't have a JIT of the same caliber, so this is probably useful for tons of people.
Dunno if the author is around, but they might find some of the stuff from my PhD relevant, especially how the static analysis worked and some of the challenges of compiling using the C API: http://paulbiggar.com/research/#phd-dissertation http://paulbiggar.com/research/#phd-dissertation