Re: [PHP-DEV] HHVM and PHP

2012-11-30 Thread Sara Golemon
If you're so inclined to pursue it, you don't (technically) need to modify PHP core at all. 1) Make an extension which hooks zend_compile_file (just as APC and many others do). 2) First request of a file passes through to the real compiler and both returns main() opcodes *and* sends a copy of main

Re: [PHP-DEV] HHVM and PHP

2012-11-30 Thread Raymond Irving
Many thanks for the feedback. I would love see some JIT features added to the core as this would help to improve the overall performance. Sara, I like your extension idea as this would not require any changes to the core. Here's another idea: --- 1. Modify PHP co

Re: [PHP-DEV] HHVM and PHP

2012-11-26 Thread Sara Golemon
On Mon, Nov 26, 2012 at 9:09 PM, Rasmus Lerdorf wrote: > On 11/26/2012 09:03 PM, Sara Golemon wrote: >> P.S. - I do disagree with Rasmus' statement about none of us looking >> at fitting a JIT into PHP. ;) > > I think you misread my reply. I specifically said that a JIT is a > possibility, just no

Re: [PHP-DEV] HHVM and PHP

2012-11-26 Thread Rasmus Lerdorf
On 11/26/2012 09:03 PM, Sara Golemon wrote: > P.S. - I do disagree with Rasmus' statement about none of us looking > at fitting a JIT into PHP. ;) I think you misread my reply. I specifically said that a JIT is a possibility, just not the HH approach. -Rasmus -- PHP Internals - PHP Runtime Dev

Re: [PHP-DEV] HHVM and PHP

2012-11-26 Thread Sara Golemon
>> I've being reading about HHVM and the numbers are looking great but I was >> just wondering if we will we ever see something like HHVM being added to >> the PHP core? > > No, not likely. Maybe an LLVM-based JIT one day, but the HHVM approach > is not something any of us are looking at. > To echo

Re: [PHP-DEV] HHVM and PHP

2012-11-26 Thread Rasmus Lerdorf
On 11/26/2012 05:24 PM, Raymond Irving wrote: > Hello, > > I've being reading about HHVM and the numbers are looking great but I was > just wondering if we will we ever see something like HHVM being added to > the PHP core? No, not likely. Maybe an LLVM-based JIT one day, but the HHVM approach is