Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74559 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64212 invoked from network); 28 May 2014 11:49:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2014 11:49:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:35484] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/46-30361-56DC5835 for ; Wed, 28 May 2014 07:49:58 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id E1BEB10D6AB; Wed, 28 May 2014 12:49:53 +0100 (BST) Date: Wed, 28 May 2014 12:49:53 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= cc: Andrea Faulds , Dmitry Stogov , PHP Internals , Bob Weinand , Stas Malyshev , Zeev Suraski , Xinchen Hui , Andi Gutmans , Nikita Popov In-Reply-To: <1400851698.2870.9315.camel@guybrush> Message-ID: References: <79B69A20-15AD-4C07-B026-61C2C9DEBBE5@ajf.me> <1400851698.2870.9315.camel@guybrush> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1585561516-1401277794=:5108" Subject: Re: [PHP-DEV] [RFC] Fast Parameter Parsing API From: derick@php.net (Derick Rethans) --8323329-1585561516-1401277794=:5108 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 23 May 2014, Johannes Schl=C3=BCter wrote: > On Fri, 2014-05-23 at 13:52 +0100, Andrea Faulds wrote: > > On 23 May 2014, at 12:36, Dmitry Stogov wrote: > >=20 > > > Please take a look at https://wiki.php.net/rfc/fast_zpp > > >=20 > > > Thanks. Dmitry. > >=20 > > This looks like a great idea. I like how it=E2=80=99s not only faster, = but=20 > > it seems to be more readable. >=20 > More readable? - I feel exactly the opposite. Yes, we get rid of void=20 > pointers but use a pattern easy to understand. This looks like macro=20 > hell. I don't find it more readable either. From a single line, it goes to 7,=20 and what if there are three different zpp calls (like in=20 https://github.com/php/php-src/blob/master/ext/date/php_date.c#L4393) ? I know the old API is not going away, but I'm not just sure about this=20 one... > If we break APIs anyways: Can't we go for C++ which allows providing > high level APIs with high performance ... no :-) cheers, Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine --8323329-1585561516-1401277794=:5108--