Re: Moving to an AST-based parsing/compilation process
| From: | Levi Morrison | Date: | Wed, 05 Sep 2012 00:09:21 +0000 |
| Subject: | Re: Moving to an AST-based parsing/compilation process | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62824@lists.php.net to get a copy of this message | ||
On Tue, Sep 4, 2012 at 4:20 PM, Adam Jon Richardson <adamjonr@gmail.com> 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.