Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74479 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81561 invoked from network); 26 May 2014 07:07:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2014 07:07:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:64090] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/E2-60353-E38E2835 for ; Mon, 26 May 2014 03:07:43 -0400 Received: by mail-qc0-f170.google.com with SMTP id i8so11908165qcq.1 for ; Mon, 26 May 2014 00:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xSVuk2FOIHiy+JhPWBzMpkJji9oJsgFRP2BqyL0/kHs=; b=Le4z7yEge8teacBLQ/kQGA63F4WsryUJyRie/zhuyPgbUkyhXgQyckKJJl/QBXRWmm Roz3YRdY1szkZChhO2qwu0V9e9WI9KQ4lXHqK/xB3HtyfStdnD99IVZXGPXtwhM5RXu7 4glwH9Xrnb8rlMFKTqKOIQHGClEwG5lR3WYcRcTiIUSpYNM0uUEmSiCIKyuIzsxX/D7I Tmeq3chBEQMdFAQV2ZHqBNcKxbFdkoQy7MBbBKGif/2INMX4kA9+JN9GBIf7bZxZVlZU nTAz1C5+4m9EWxbM0SDX6CpbKKJWPir1aAmrlOSTu60Ydcr3208KagBmVdpQ7XoA0VIt S3GQ== MIME-Version: 1.0 X-Received: by 10.140.91.5 with SMTP id y5mr28155066qgd.12.1401088059238; Mon, 26 May 2014 00:07:39 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Mon, 26 May 2014 00:07:39 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 May 2014 09:07:39 +0200 Message-ID: To: Michael Wallner Cc: Dmitry Stogov , Xinchen Hui , PHP Internals , Bob Weinand , Stas Malyshev , Zeev Suraski , Andi Gutmans , Nikita Popov Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] Fast Parameter Parsing API From: pierre.php@gmail.com (Pierre Joye) On Mon, May 26, 2014 at 8:25 AM, Michael Wallner wrote: > Hey Dmitry! > > On 26 May 2014 07:39, Dmitry Stogov wrote: >> I would be glad to see proposals from Hannes and Johannes, but we also need >> to move phpng forward, and I wouldn't like to spend on this too much time. >> >> Our proposal is mainly about speed (as well as the main phpng goal). >> We identified yet another bottleneck and eliminated it. >> Changes in readability and compile-time type checking are side effects of >> implementation. > > Oh well... while I pretty much appreciate the efforts put into phpng, > Zend isn't all too popular for designing usable APIs... because it > often happens in a rush. Let me recall you that this list is often > about politics nowadays, and from a political POV this statement just > costed 20% of yay-votes. Well, politics are one part of the problem and I agree that we see that too often. However what I see now is partially what I have seen back to php4 > 5 move. We are deciding now what we will use for a decade+ after the release of php6. And as much as I like to get a faster PHP, I am really looking forward (and do it) an API cleanup and other deeper change to ease: - core maintenance - easier, well documented, exposed APIs for 3rd party developers (extensions) It is no secret that our internals APIs are bad. PHP-CPP success despite its current limitation or stability is yet another sign. I have been working on Ruby, Go or Python internals lately, we have a long road to achieve only part of the simplicity we can see there. This is something I would like to put more efforts, first, prior to push even more hacks to gain 1-2% (even if 10x 1% means 10% performance increase). It is always easier to optimize a clean, smaller code base, with less warnings, aliases, etc. than what we actually have now.It is getting worst now because of partial changes in many areas, simply because "it makes php faster if we change this specific function". I hope I do not make my point unclear, I appreciate a lot the performance improvements Nikita, Laruence, Bob and Dmitry are working on, this is very promising. However I would really like to focus on global design, clean code base and as much as possible warning free as well, this will make everyone work much easier for the next 10-12 years. Cheers, -- Pierre @pierrejoye | http://www.libgd.org