[phplib] Re: Re[2]: [PHP-PEAR] Re: [phplib] Re: [PHP-PEAR] PHPLib and Pear merge From: Stig Sæther Bakken (ssb <email protected>)
Date: 03/12/01

[Maxim Derkachev <kot <email protected>>]
> Hello Stig,
>
> Saturday, March 10, 2001, 1:56:36 AM, you wrote:
>
> SSB> Why is PEAR DB unusable for you?
>
> I organized my thoughts some way in the previous letter (to
> Sebastian). In short, it is slow. And, I believe, it is slow not
> because of bad implementation (You've done hard work to make it as
> clean as possible), but because of wrong design approach. This design
> would be great in C++ environment or such, but PHP is still an
> interpreter, has poor OO support, and overuse of heavy OO structures
> here hurts it badly. I believe that PHP in its current state simple
> can not handle such a complex structure fast enough to compete with
> PHPLib's DB_Sql (which I currently use). Maybe someday PHP will
> handle it, then someday my current assumptions could be proved to be
> wrong (I'd be happy :)). But we leave in the real world and I need my
> projects to work fast just now.

Well, we'll just have to rewrite DB to C then (not kidding).

> SSB> PEAR is a repository, but we also aim to keep the overlap in
> SSB>functionality at a minimum.
>
> I suppose that is because of hope that PEAR will always be distributed
> along with every version of PHP. I do think it is wrong idea. If PEAR
> succeed, there would be a lot of stuff. The PHP distro in this case
> would be rather too large to download it. I doubt I would like to
> fetch all the stuff with every release. I doubt that there are many
> that would like it. How many perl developers you know, who install the
> whole stuff from the current CPAN? I suppose that a good interfaces to
> PEAR archives (like in CPAN system) will do the work better rather to
> include PEAR classes in the main PHP distro. The idea of including
> PEAR in the PHP distro would work fine only on the early stages of
> PEAR development, while it is small (like now), just to popularize
> PEAR.

Only small parts of PEAR will always be distributed with PHP. Just
like Perl. The rest has to be installed with the "pear" command-line
tool or maybe with a PHP-Gtk installer (I bet someone is going to
write one).

 - Stig

-- 
  Stig Sæther Bakken <ssb <email protected>>
  Fast Search & Transfer ASA, Trondheim, Norway

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>