Project Zero's ebullient leader, Jerry Cuomo, just published an article at hisblog talking about the PHP supportin Project Zero. If you didn't already know, PHP is supported in Project Zero using a PHP interpreter written in Java.Pretty decent 10K ft summary of why, what, etc. With links to more details.
Wanted to point out two interesting things, to me, from Jerry's post ...
"The idea with XAPI-C is to take the existing php.net extensions, apply some macro magic, potentially some light code rewrite, and make those extension shared libraries available to Java through JNI."
Interesting programming technique; trying to reuse all the great, existing PHP extensions out there. One of PHP's great strengths is thebreadth of the extension libraries. It would be great to be able to reuse this code,if possible. It's a really interesting idea to me in general, to be able toreuse extension libraries, not just across different implementations of the samelanguage, but across multiple languages. It just seems like a terrible waste tohave lots of interesting programming language libraries available, but notbe able to use them in anything but a single language.
"We have debated the idea of moving our PHP interpreter into a project unto it's own -where it can explore better compatibility with php.net as well as pursue supporting a full complement of PHP applications. Thoughts?"
This seems like it makes a lot of sense. Especially if it meant being ableto open source the interpreter to allow a wider community to develop it.I think the main question is, is there a wider community outthere interested in continuing to develop the interpreter and libraries?
Lastly, want to point out how impressed I've been by the team in Hursley, UK and RTP, NC forgetting the interpreter as functional as it is so quickly. The team maintainsa wiki page atthe Project Zero web site describing the current state of functionality, if you're interested in seeing how far along they are.