Re[2]: [PHP-PEAR] Re: [phplib] Re: [PHP-PEAR] PHPLib and Pear merge
[email protected] (Maxim Derkachev) Sun, 11 Mar 2001 13:40:11 +0300
| Newsgroups | php.pear |
|---|---|
| Organization | Symbol Plus Publishing Ltd. |
| Message-ID | <[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. 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. -- Best regards, Maxim Derkachev mailto:[email protected] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia