Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62824 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61082 invoked from network); 5 Sep 2012 00:09:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2012 00:09:26 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:43674] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/99-12568-43896405 for ; Tue, 04 Sep 2012 20:09:25 -0400 Received: by lahl5 with SMTP id l5so4723868lah.29 for ; Tue, 04 Sep 2012 17:09:22 -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=gmxvnB26hwEzKW75xUfeAp7A/E8bS3x9HGllw9Eg4Ps=; b=ZatkhnadK+i5qXVWtV1ZpfKPEtjLO99+kqSd9dqVfhwpw7dHOcFH0dyUwXnpSgsm2y AQo1GzgolLzSin1ByoUjS1jLiomDJIwQJGU9m96QvipEgDXg2ONZVMgYP13Egtb6cq1B um+tdU+jfeFu4EdgSjFJ+u85d0nVjbN+MAfNJ7rpP3yDunUhZ6IFX69huT7LiAgbYBBO RAn0W3bRSf6lorGFg3+n1ODddt1w594HmPUI41+J2mqdFeN+kCudgAyc8PpbcoSv++TX pkB+XekpRNXu007XWx40P/Z0Pl9ALuXME8X0phTVyrjDvydh2GSSLJ/MAZEeyu2FrmFr hWpQ== MIME-Version: 1.0 Received: by 10.152.46.203 with SMTP id x11mr1126864lam.46.1346803762207; Tue, 04 Sep 2012 17:09:22 -0700 (PDT) Received: by 10.112.48.39 with HTTP; Tue, 4 Sep 2012 17:09:21 -0700 (PDT) In-Reply-To: References: <50467A92.5000401@ajf.me> Date: Tue, 4 Sep 2012 18:09:21 -0600 Message-ID: To: Adam Jon Richardson Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Moving to an AST-based parsing/compilation process From: morrison.levi@gmail.com (Levi Morrison) On Tue, Sep 4, 2012 at 4:20 PM, Adam Jon Richardson wrote: > > However, as Knuth has said, "It is often a mistake to make a priori > judgments about what parts of a program really critical, since the > universal experience of programmers who have been using measurement > tools has been that their intuitive guesses fail." > > So, I'm cautious about the premise that this will/could lead to an > overall improvement in performance compared to the current > implementation, a caution that the RFC spoke to very clearly. This is probably why the section in the RFC is so small . . . :) --- It seems to me to be a very wise decision to use an AST but good decisions carried out poorly can be more harmful than helpful. We need to do this correctly. I hope this discussion will be helpful in this regard.