News for hackers. Stuff that matters.
Re:HippyVM by TazeTSchnitzel on Friday June 06, 2014 @07:48PM (#7860796)
I wonder what the claimed and "aimed for" compatibility with Zend is actually like. How much of the standard library is implemented? How about common extensions? Is the casting behaviour the same?

Performance is meaningless if your VM can't run people's code.

Re:HippyVM by MrHamdulay on Friday June 06, 2014 @08:59PM (#7860911)
They seem to be using the same test suite as Zend PHP. Which would mean they should be pretty compatible.

Not sure how many of those they are actually passing though. https://github.com/hippyvm/hippyvm/tree/master/test_phpt/Zen...

Re:HippyVM by TazeTSchnitzel on Friday June 06, 2014 @10:01PM (#7861025)
Looks like they've copied some of PHP's tests, yes. But being able to run run-tests.php and being compatible aren't quite the same thing, really. It's how many tests pass that count.

Technical side-note: /Zend there appears to be just the tests for the Zend engine (i.e. from PHP's /Zend/tests), while the containing directory contains test folders copied from other parts of PHP (like the standard library)

Re:HippyVM by Twirrim on Saturday June 07, 2014 @09:42PM (#7863700)
It's also worth noting that not even PHP itself passes their own test suite. At the time of writing http://gcov.php.net/viewer.php?version=PHP_5_5 states:

Overview of PHP_5_5

Build Status: OK Last Build Time: 2 days

Compile Warnings: 611 Code Coverage: 0.3% Test Failures: 78 Expected Test Failures: 42 Valgrind Reports: 44

The "Expected Test Failures" is fascinating. http://gcov.php.net/viewer.php?version=PHP_5_5&func=expected...

Re:HippyVM by TazeTSchnitzel on Saturday June 07, 2014 @09:46PM (#7863710)
That's true, but PHP still passes the vast majority of its tests.
Re:HippyVM by xando on Saturday June 07, 2014 @05:16AM (#7861683)
Agreed.

We working hard to be as close to Zend as possible, though we are not there yet. You can try "translate" and run HippyVM against php-src suite.

"Basic" PHP compatibility was achieved which means that most of the syntax and stdlib from recent PHP is there. What we are doing right now is implementing modules (phar, fcgi, ...)

Re:HippyVM by pekk on Friday June 06, 2014 @07:58PM (#7860818)
It is meaningful even if it can't run everyone's code.
Re:HippyVM by TazeTSchnitzel on Saturday June 07, 2014 @06:47AM (#7861786)
I disagree. If it doesn't implement much of PHP, it is not PHP.
Re:HippyVM by esodae on Saturday June 07, 2014 @01:12PM (#7862502)
We are trying to be bug to bug compatible with Zend PHP. And trying to implement more and more extensions.