Programming
Article
By Harry Fuecks

PHPinking and the Brain

By Harry Fuecks
Last chance to win! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

Via Sebastian, Kristian: Zend in the Clowns – a sceptical but ultimately positive look at PHP5 (while roaming over PHP4 and a whole lot more).

In asking “why?” when considering PHP5’s new, Java-like, capabilities the author comes to this “sinister Pinky-and-the-Brain” conclusion;

It probably isn’t putting it too strongly to state that PHP v5 represents a concerted attempt to break away from the role of ‘easy-server-side-scripter’, with competing in the role of an all-purpose, easy-to-program, generalized, cross-platform interpreted language being the ultimate aim. They’re not just borrowing syntax from Java; Long-term, they’re actually going after Java’s market niche, and Perl’s, and Python’s, and dotNET’s, and VB’s…

So what else would it take for PHP to grow wings and become a serious, general purpose language? Some things off the top of my head;

– Built in OPCODE caching (there has to be a better business model for Zend these days e.g. commercial extensions)

– Sterlings Abstract data types extension to mature

Threads by default

– A wrapper for wxWidgets

– Namespaces

– SAFE mode to become safe

– Better garbage collection? (have no evidence here but the anecdotal view is “long running” PHP scripts tend to hog memory – not a typically problem when using PHP with Apache)

– Something like Python’s psyco built in.

So far that’s not out of reach, given some serious manpower (i.e. cash) to get there.

Anything else?

Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.
Is it good?Is it good?