Live data from Hacker News

HipHop VM: now at 98.5% PHP framework parity, 16% faster

hhvm.com

31–40 of 112 posts

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#31

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

Ahh yes, take the most criticized aspect of Java -- the obscene verbosity -- and cram it into PHP. Sounds wonderful.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#32
post #31

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

Ahh yes, take the most criticized aspect of Java -- the obscene verbosity -- and cram it into PHP. Sounds wonderful.

I'll take a long function name over an incomprehensible one any day.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#33
post #31

Earlier quoted context omitted.

Ahh yes, take the most criticized aspect of Java -- the obscene verbosity -- and cram it into PHP. Sounds wonderful.

I'll take a long function name over an incomprehensible one any day.

Given that many of PHP's method names are that way due to mirroring C (and others due to the hash table hackery), I think you'd just be much happier in a different language.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#34
post #31

Earlier quoted context omitted.

Ahh yes, take the most criticized aspect of Java -- the obscene verbosity -- and cram it into PHP. Sounds wonderful.

I'll take a long function name over an incomprehensible one any day.

The function names come mostly from C, so it's not really PHP's fault.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#35
post #31

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

Ahh yes, take the most criticized aspect of Java -- the obscene verbosity -- and cram it into PHP. Sounds wonderful.

The verbosity is not only comprised of long method names.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#36

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

This was making the rounds recently: http://news.php.net/php.internals/70691

Basically, if you use PHP you're part of the largest computer joke in history.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#38

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

It wouldn't be that hard if you did it in userland (i.e. pure PHP). But you also need to switch around inconsistent parameter orders (e.g. haystack vs needle) and disable the use of the old ones (which can't really be done w/ the pure PHP aliases). The docs are just docbook, but have had a ton of work, you'd be best to PHPDoc your new methods.

The problem is speed and compatibility. If you did it natively you'd have to do it twice, once for HHVM and once for the Zend engine. If you did it in pure PHP it would cause performance issues since the interpreter isn't smart enough to inline (maybe HHVM is, but even it will take a trace or two to realize the JIT need probably).

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#39

Earlier quoted context omitted.

Poor choice of function names are the easiest of problems to fix. Write an internal base framework that you use and strongly discourage the use of functions outside of it. Even if the new set of APIs are as simple as just forwarding the call to the standard PHP one with reversed arguments, using one example people complain about all the time. This isn't hard to do, doesn't require a lot of upfront work (add APIs as y…

PHP has so many more problems than that, though. I don't think it's worth the effort. It'd be like replacing the rotting floorboards of a house that has mold spores in every corner and a caved-in roof.

wow, you really hate PHP. That that mold infested roof caved in house runs a great deal of the web.

Re: HipHop VM: now at 98.5% PHP framework parity, 16% faster

#40

I wonder how hard it would be (for me) to take php and change all function names to be consistent. All PascalCase and spelled out (no awful abbreviations). Then download the documentation and change it there as well.

Seriously, it's not that big of a deal.
Post reply on HN