Re: [RFC] Replace the flex-based scanner with an re2c [1] based lexer
| From: | Pierre Joye | Date: | Sun, 02 Mar 2008 23:27:28 +0000 |
| Subject: | Re: [RFC] Replace the flex-based scanner with an re2c [1] based lexer | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35895@lists.php.net to get a copy of this message | ||
Hi Stan,
On Sun, Mar 2, 2008 at 11:47 PM, Stanislav Malyshev <stas@zend.com> 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