Re: RE: [RFC] Fast Parameter Parsing API

From: Date: Tue, 27 May 2014 02:06:33 +0000
Subject: Re: RE: [RFC] Fast Parameter Parsing API
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-74509@lists.php.net to get a copy of this message
Hi!

> zpp current usage is much more readable to me and less error prone
> while writing (clang plugin helping to check the syntax, see Johannes
> tools).

Not really - I have to go to the docs each time to remember what \ or /
are and what is the difference between H and h or z and Z. And putting a
wrong arg type is extremely easy. I've just learned about clang thing
this month, so I'm pretty sure I can count number of people who use it
on one hand, and it doesn't seem to be mentioned anywhere in the docs.

> May I point you to my questions in this thread about extending the
> reflection struct, add the necessary info (types) and maybe do the
> naming args while being at it?

This would be great (again, laying ground for named args support) but
I'm not sure how to do it. We have a bit of a contradiction here since
the speedup requires unrolled code (that's what the current ideas do)
and reflection requires static data struct. I'm not sure how to make
both work. Maybe with some kind of function pointers in the data struct
for parsing? But I'm afraid then it would lose the speedup, since it
won't be inlined unrolled code anymore.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227


Thread (52 messages)

« previous php.internals (#74509) next »