Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35895 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75744 invoked from network); 2 Mar 2008 23:27:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2008 23:27:34 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.186 rv-out-0910.google.com Received: from [209.85.198.186] ([209.85.198.186:15827] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/C6-29055-3E73BC74 for ; Sun, 02 Mar 2008 18:27:31 -0500 Received: by rv-out-0910.google.com with SMTP id k15so3803714rvb.23 for ; Sun, 02 Mar 2008 15:27:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+dFf6m0F884SSpf/Aa0qr+7eBWwk16Dquul/HUu0za4=; b=wYWscVyu6iLmW3nalwuSpJQnBxBPrajwr/SLEhWvauY8Oo/67KG1yER3oYauK0RGlywmVZ1AIlS+RWHyp2Zh1engj/sjS9Hvfw+Z5Tu7Imo2ujr3CFkPZwIp7aejmtfuxTQc+n+JorWUTEx3oWjE9Riz6yoch+5It9CKRcMrx2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tfPypO10gcxPyC9kQGeLREmErvFhtdx6ABX9keOpFxq/e7LtOPu2DFOvOUaH9yAgFZavs8YG/E2/5+lhfuwxtvGdI1MFkx5Id5O2ryrwEMPZw/+QOL7YQH9ioixBCQhbaqGSTwCsstAJsfiO4x4It3pfBX0spscfVf7hE3pUzAo= Received: by 10.140.125.1 with SMTP id x1mr3479181rvc.287.1204500448272; Sun, 02 Mar 2008 15:27:28 -0800 (PST) Received: by 10.141.116.12 with HTTP; Sun, 2 Mar 2008 15:27:28 -0800 (PST) Message-ID: Date: Mon, 3 Mar 2008 00:27:28 +0100 To: "Stanislav Malyshev" Cc: "Marcus Boerger" , internals@lists.php.net In-Reply-To: <47CB2E9D.6010102@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1706278209.20080302232134@marcus-boerger.de> <47CB2E9D.6010102@zend.com> Subject: Re: [PHP-DEV] [RFC] Replace the flex-based scanner with an re2c [1] based lexer From: pierre.php@gmail.com ("Pierre Joye") Hi Stan, On Sun, Mar 2, 2008 at 11:47 PM, Stanislav Malyshev wrote: > Hi! > > > > be much easier, switching to re2c promises a much faster lexer. Actually, > > without any specific re2c optimizations we already get around a 20% scanner > > I think 20% faster is very cool. > However, as I understand re2c is not a standard tool found everywhere. > So what happens if you wanted to use it on some exotic system where re2c > is not readily available as manintainer-supported software? Also, flex > is available on Windows for example as part of cygwin, while I don't see > re2c there. A quick note about this non problem. re2c works pretty well on windows and they provide a .exe as far as I remember (much easier than flex which requires cygwin or gnuwin32, even if both work :). Besides the portability of re2c, we already use it in some extensions (if I remember correctly) and nobody complained. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org