Suraj is absolutely correct here, not everybody would want to write in
C/C++. And the point I'm trying to say is for only *performance
critical* things you would go down the layer to C/C++. For simple web
sites, it would actually be a waste of development effort. You could
use tools like APD (a profiler for PHP) to study where PHP spends time
and try to rewrite it using a better algorithm or in C.
APD is available from http://pecl.php.net/
And I believe that the DB layer in PEAR is going to be rewritten as an
extension in C/C++.
On Thu, 2004-06-03 at 16:34, Suraj wrote:
Karthikeyan wrote on Thu, Jun 03, 2004 at 04:00:19PM +0530:--
| What you say is absolutely right. But the problem is this will remove
| the simplicity of PHP for which it is so famous. I am just hoping
| that Zend Engine 2 is optimized for OO features. In that way we don't
| have to rely on extensions.
Rasmus gave a tech talk in bangalore and when I asked when PHP would
have OO features, he said that PHP (actually yPHP, but then some of
the main code from Yahoo! PHP also goes into the open source PHP code)
aims at being only an interface between the presentation layer and the
processing and that OO can easily be done using C++. True, but then
not everybody can / would want to write C++ code for say, a simple PHP