Wedge
Public area => The Pub => Topic started by: MultiformeIngegno on April 7th, 2011, 11:51 AM
-
Thoughts?
http://developers.facebook.com/blog/post/358
-
Pete actually mentioned the word yesterday ;)
And we discussed it somewhere before... Probably on these boards, not sure.
Technically, I don't think it's feasible for a widespread platform (likely to be installed on shared hosting etc.)
Might be wrong though.
-
In a word: no.
Hiphop is a compiler, it turns PHP code into C code, which you then compile.
On a single platform, a single specific VPS where you can run your own code, it becomes feasible, but it requires a number of things - firstly, eval gets thrown out the door. The concept of dynamically loading files sort of does too, any hope of customisation along with it.
The other thing is, there is an awful lot of type juggling buried inside SMF/Wedge, most of it we never notice, but anything coming out of MySQL is going to be type juggled if it's actually numeric. This can't happen in Hiphop, because C is statically typed, which means we have to explicitly handle it straight after grabbing it from MySQL. I also have a funny feeling that buffering would be handled differently which has major effects on us.
-
I didn't want to suggest it for Wedge, just wanted to share! :)
-
Yeah, it's a very cool technology in general and for some uses, it's fantastic. Just, unfortunately, not here.
-
It's only awesome for making simple programs.
-
Oh, you can do some incredible stuff with it, but it does limit how you can do it.
-
I think PHP recompiles such as Wincache(by Microsoft, no kidding, but Windows only), APC or eAccelerators (Best for Unix systems.) are the way forward, as it runs almost every PHP script with ease and at good speed as well. ;-)
Then again you probably won't need it as most modern day CPU are pretty fast, therefore interpreting times won't be problem.
-
eAccelerator isn't really practical because it doesn't include key-value storage caches any more while APC does.
Note that opcode caches (which is what these are) help but they won't provide the purebred performance that Hiphop will, though they're vastly more approachable than Hiphop is.