I'm kind of surprised you didn't pursue the JVM and InvokeDynamic for this purpose instead of PyPy
Re:Speeding up PHP with the HipHop VM
by aardvark179 on Friday November 30, 2012 @06:11AM
(#4852736)
I think there is a project of that sort going on, there was a guy from Facebook at the jvm language summit this year.
PyPy is taking a radically different approach from what HHVM is doing (and really from what almost all other dynamic language systems are doing), and it's a fascinating system. Part of what's exciting about it is that it seems like it should be applicable to other languages with less effort than most other JITs, and we wanted to understand its potential for a language like PHP. We asked Maciej Fijalkowski (hi, Maciej, if you're reading!) to help us do a research prototype to see what the first few roadblocks would look like, and Maciej did a great job. Just because we didn't scrap our current project and shift all our resources to PyPy should not be seen as a negative reflection on PyPy at all.