Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42093 invoked from network); 4 Sep 2012 20:46:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2012 20:46:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=sean@seancoates.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sean@seancoates.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seancoates.com from 64.15.79.181 cause and error) X-PHP-List-Original-Sender: sean@seancoates.com X-Host-Fingerprint: 64.15.79.181 iconoclast.caedmon.net Received: from [64.15.79.181] ([64.15.79.181:46805] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/36-12568-B8866405 for ; Tue, 04 Sep 2012 16:46:04 -0400 Received: from localhost (localhost [127.0.0.1]) by iconoclast.caedmon.net (Postfix) with ESMTP id CD6B23260E8; Tue, 4 Sep 2012 16:41:11 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at iconoclast.caedmon.net Received: from iconoclast.caedmon.net ([127.0.0.1]) by localhost (iconoclast.caedmon.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6rys0PlfrcXB; Tue, 4 Sep 2012 16:41:09 -0400 (EDT) Received: from [192.168.145.200] (modemcable155.154-83-70.mc.videotron.ca [70.83.154.155]) by iconoclast.caedmon.net (Postfix) with ESMTPSA id 3698C3260DB; Tue, 4 Sep 2012 16:41:09 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-30--882830225 In-Reply-To: Date: Tue, 4 Sep 2012 16:45:57 -0400 Cc: PHP internals Message-ID: <1D74CBCD-463E-419C-90AB-C1BA774381B6@seancoates.com> References: To: Nikita Popov X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] Moving to an AST-based parsing/compilation process From: sean@seancoates.com (Sean Coates) --Apple-Mail-30--882830225 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Some people asked me what the advantages of using an AST-based > parsing/compilation process are, so I put together a few quick notes > in an RFC: >=20 > https://wiki.php.net/rfc/ast_based_parsing_compilation_process >=20 > It would be nice to get a few comments from other core devs on this. Pardon my obviously amateur question, but would you build an AST-based = compiler/parser to generate the same (minus the ones you intend to = eliminate) opcodes to run on the VM in the same way as the current = compiler does? Would tools like XDebug, APC, Zend PHP encoder (or whatever that's = called this week), etc. be compatible out of the box, or would changes = need to be made to them? Also, here is a potential starting point if you're less allergic to = OCaml than I am: https://github.com/facebook/pfff S= --Apple-Mail-30--882830225--