Re: Contribution for PECL
| From: | Sterling Hughes | Date: | Sat, 28 Dec 2002 01:50:15 +0000 |
| Subject: | Re: Contribution for PECL | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11855@lists.php.net to get a copy of this message | ||
> > Looks perfectly OK, the only issue was what to call it, as I can see it
> > being prefectly expected that somebody else is going
> > to do another template engine in C... so a less generic name than
> > template is probably a good idea....
>
> It's rather difficult for me to think of a new name, since it always was
> php_templates for me. Anyway, I'm ready to accept some of your variants.
>
> > I only downloaded the docs, but just wondered if you used flex/bison
> > (which technically I would expect to be the fastest way to do this..) ..
>
> No, the extension is 100% independent. It uses "Tuned Boyer-Moore" search to
> find text patterns in a template.
>
why? chances are pretty likely that any system that is compiling your extension
would have flex and bison (which are required to compile php). flex and bison
also on the whole generate much faster code (well, flex is slightly slower, bison
is much faster.)
Also, have you seen Smarty? http://smarty.php.net/
-Sterling
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>