Re: [PHP-DEV] [RFC] Argument unpacking

2015-06-04 Thread Yo-An Lin
Laruence php.net> writes: > > On Fri, Aug 30, 2013 at 11:23 PM, Nikita Popov gmail.com> > wrote: > > Hi internals! > > > > This RFC proposes to add a syntax for argument unpacking: > > > > https://wiki.php.net/rfc/argument_unpacking > > > > Basically, this is the "complement" of the variadi

Re: [PHP-DEV] offsetof and XtOffsetOf

2015-06-04 Thread Joe Watkins
Explained here: http://lxr.php.net/xref/PHP_TRUNK/main/php.h#415 On Fri, Jun 5, 2015 at 5:06 AM, Levi Morrison wrote: > The macro offsetof is required by the C89 standard to be defined in > stddef.h and remains in newer standards. The macro XtOffsetOf is > non-standard that is as far as I can te

[PHP-DEV] offsetof and XtOffsetOf

2015-06-04 Thread Levi Morrison
The macro offsetof is required by the C89 standard to be defined in stddef.h and remains in newer standards. The macro XtOffsetOf is non-standard that is as far as I can tell a part of the X Toolkit Intrinsics or Xlib. Does anyone know the reasons why we are using the non-standard macro instead of

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Sara Golemon
> On Jun 4, 2015, at 10:00, Rowan Collins wrote: > : http://3v4l.org/l75kf > > HHVM's percentages are lower primarily because its for loop measure is much > slower in absolute terms. > At the risk of distracting from the central topic, I'd like to point out that HHVM's times are almost certai

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Yasuo Ohgaki
Hi Marc, On Thu, Jun 4, 2015 at 6:04 PM, Marc Bennewitz wrote: > This one is not compatible with current code as you have to alias the PHP > namespace to the root one before using full classes like \DateTime. > Right. We are better to have PHP namespace for internal classes/functions first, the

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Rowan Collins
Marc Bennewitz wrote on 04/06/2015 10:01: http://3v4l.org/eJK07 See the total amount of execution time recorded. If we really need pure execution time, then it should record "for loop" execution time with empty body. -> incl. displaying the time for the loop: http://3v4l.org/1vZJI Percentages

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Marc Bennewitz
On 06/04/2015 10:01 AM, Yasuo Ohgaki wrote: Hi all, On Thu, Jun 4, 2015 at 12:07 AM, Sara Golemon wrote: On Wed, Jun 3, 2015 at 1:33 AM, Dominic Grostate wrote: Has there been any discussion or consideration towards migrating or at least aliasing all built in classes to a Php vendor names

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Marc Bennewitz
On 06/04/2015 06:35 AM, Yasuo Ohgaki wrote: Hi Brian, On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon wrote: This is a better representation of what you are trying to show. It removes all the magic call back stuff that could be adding to the slowness you are seeing. In addition, it does not crea

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-04 Thread Yasuo Ohgaki
Hi all, On Thu, Jun 4, 2015 at 12:07 AM, Sara Golemon wrote: > On Wed, Jun 3, 2015 at 1:33 AM, Dominic Grostate > wrote: > > Has there been any discussion or consideration towards migrating or at > > least aliasing all built in classes to a Php vendor namespace? > > > Not any that's led to a co