Re: PHP 4.0 Bug #3779 Updated: Crash in syntax hilighter

From: Date: Thu, 09 Mar 2000 13:31:26 +0000
Subject: Re: PHP 4.0 Bug #3779 Updated: Crash in syntax hilighter
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16575@lists.php.net to get a copy of this message
<cut> > > Zend Guys, is there any possibility to rewrite > > the Zend engine in C++? It will make it alot > > cleaner and possibly with less bugs (and perhaps > > with more speed as well)! > > Perhaps with more speeed is a seriously over-optimistic statement, In some cases, I think, it will be faster because you have to write equivalent code which has already been done in C++, which is much more efficient and short. > Switching to C++ will almost definitely reduce the performance very very > significantly (I can't say for sure, but it'll probably be in the range of > 10's of %s). Also, C++ is much less portable than C, so we're not > interested in switching languages. It can greatly reduce the overheads (if any) in hashes, maps, arrays etc. since they are just by a number of people world-wide, so the standard library for C++ is hyper-efficient! C++ is support on almost (I don't know which doesn't) all platforms! the 'new' operator is more efficient than malloc(). <cut> > > Finally, I don't know what exactly the bug you reported is about, but I > have a feeling it wouldn't have helped us if the engine was C++ish... In > C++ you still have to write bug-free code in order for it to work :) That statement had nothing to do with the problem! I was taking a look through the Zend API, and thought it would be much better if you used namespaces and classes. > > Zeev Faisal

« previous php.dev (#16575) next »