Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Julien Pauli
On Mon, Mar 2, 2015 at 9:47 PM, Anthony Ferrara ircmax...@gmail.com wrote: Julien, Bob's code optimizes things by adding a new OPCode. This is different from compiler optimizations. Compiler optimizations are about changing native, supported OPCode structures to other native

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Anthony Ferrara
Zeev, I agree with that as well, just Anthony gave a different opinion which seems right as well. I think that if we ever have optimization passes that are prohibitively expensive to run interactively (most probably around JIT) we'll definitely need new strategies for them. But as long as

RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
-Original Message- From: Anthony Ferrara [mailto:ircmax...@gmail.com] Sent: Tuesday, March 03, 2015 5:50 PM To: Zeev Suraski Cc: Julien Pauli; PHP internals Subject: Re: [PHP-DEV] Re: About optimization for compiler Zeev, I agree with that as well, just Anthony gave a different

RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
-Original Message- From: julienpa...@gmail.com [mailto:julienpa...@gmail.com] On Behalf Of Julien Pauli Sent: Monday, March 02, 2015 9:07 PM To: Dmitry Stogov Cc: Bob Weinand; Xinchen Hui; PHP Internals Subject: Re: [PHP-DEV] Re: About optimization for compiler As OPCache

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Julien Pauli
Subject: Re: [PHP-DEV] Re: About optimization for compiler As OPCache is nowadays not compatible at all with PHP7 (development has not started yet, or I'm not aware of it) , why not merge OPCache to PHP7 source tree (when the time for this will come), still as an extension at first time

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Rowan Collins
Julien Pauli wrote on 03/03/2015 14:43: It's a bit OT, but can you explain what you mean here? OPcache works with the current master (PHP 7), and actually, OPcache worked with phpng all along and definitely since it was merged into master... It's been integrated to the php-src tree since it

RE: [PHP-DEV] Re: About optimization for compiler

2015-03-03 Thread Zeev Suraski
-Original Message- From: julienpa...@gmail.com [mailto:julienpa...@gmail.com] On Behalf Of Julien Pauli Sent: Tuesday, March 03, 2015 4:44 PM To: Zeev Suraski Cc: PHP internals Subject: Re: [PHP-DEV] Re: About optimization for compiler I'm looking at https://github.com/zendtech

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-02 Thread Anthony Ferrara
Julien, Bob's code optimizes things by adding a new OPCode. This is different from compiler optimizations. Compiler optimizations are about changing native, supported OPCode structures to other native supported OPCode structure, but that will run faster at runtime. I agree with dmitry

Re: [PHP-DEV] Re: About optimization for compiler

2015-03-02 Thread Julien Pauli
On Fri, Feb 27, 2015 at 4:30 PM, Dmitry Stogov dmi...@zend.com wrote: On Fri, Feb 27, 2015 at 6:22 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 16:12 schrieb Xinchen Hui larue...@gmail.com: On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand bobw...@hotmail.com wrote:

[PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Xinchen Hui
On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 07:53 schrieb Xinchen Hui larue...@gmail.com: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. And, I am not

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Bob Weinand
Am 27.02.2015 um 16:12 schrieb Xinchen Hui larue...@gmail.com: On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 07:53 schrieb Xinchen Hui larue...@gmail.com: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey

[PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Bob Weinand
Am 27.02.2015 um 07:53 schrieb Xinchen Hui larue...@gmail.com: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com mailto:larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. And, I am not against this switch optimization.. I

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Dmitry Stogov
On Fri, Feb 27, 2015 at 6:22 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 16:12 schrieb Xinchen Hui larue...@gmail.com: On Fri, Feb 27, 2015 at 11:08 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 07:53 schrieb Xinchen Hui larue...@gmail.com: Hey: On

[PHP-DEV] Re: About optimization for compiler

2015-02-27 Thread Dmitry Stogov
On Fri, Feb 27, 2015 at 6:08 PM, Bob Weinand bobw...@hotmail.com wrote: Am 27.02.2015 um 07:53 schrieb Xinchen Hui larue...@gmail.com: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. And, I am not

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread reeze
Hi, On 27 February 2015 at 14:26, Xinchen Hui larue...@gmail.com wrote: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. then I start to worry about where is the place optimization should

Re: [PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 2:41 PM, reeze re...@php.net wrote: Hi, On 27 February 2015 at 14:26, Xinchen Hui larue...@gmail.com wrote: Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization..

[PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. then I start to worry about where is the place optimization should goes.. in generally, PHP is a interpreted language. IMO, it should

[PHP-DEV] Re: About optimization for compiler

2015-02-26 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 2:22 PM, Xinchen Hui larue...@gmail.com wrote: Hey Internals: I was looking Bob's switch optimization.. And, I am not against this switch optimization.. I referring it to show where is my concerns came from thanks then I start to worry about where