kPHP doesn't support all of the PHP features - there is no OOP for example. They claim [0] though that kPHP is faster than its competitors. Unfortunately, it seems the documentation is currently available only in Russian.
It's not really PHP then - it's a language with PHP-like syntax. Still, it is interesting to see people experimenting with the platform and syntax and capabilities and trying to take it to different directions.
It's a pain in the ass to write in English and Russian - Punto Switcher or Keyboard Ninja are very useful for that (they automatically switch between En/Ru). Just a quick FYI if anyone needs it :-)
and essentially became the first business center in Russia [sic!] as lower floors were for Singer show rooms and the higher floors were rented out for other companies. Nowadays lower floors are housing the central book store («Дом Книги»). At the time it was built, its architecture was considered outlandish, but now it's one of the staples of St.-Petersburg.
Facebook's HHVM (HipHop VM) compiles webpages into native machine code that can be executed directly on the processor. People often confuse HHVM with HPHPc, also made by Facebook. HPHPc came first; it was a converter that converted all the PHP files in a folder into individual C++ files. In other words, you would end up uploading the C++ files to the server, not PHP files. Facebook abandoned HPHPc early on for multiple reasons (it was actually developed by a single developer as a tool for one-time use to convert all of Facebook's existing PHP files into C++, back when Facebook was considering rewriting the website in C++ for improving performance). While the idea for HHVM was loosely based on HPHPc, the approach is much different. HHVM is a standalone replacement for the PHP engine. It has almost 100% support with the native PHP language, up to PHP 5.5, and even (intentionally) reproduces the various bugs in the PHP language, to maintain compatibility. HHVM only replaces PHP, not Apache or anything else in your stack. It is really, really easy to replace it via their FastCGI handler.
I deployed HHVM on a production site as a test, and without changing a single line of code, on average, I saw nearly a 60% decrease in page generation time from the standard PHP binary. Incredible.
HPHPc produced the C++ code and that was compiled into a single binary executable. The deployment process involved using bittorrent to distribute the blob to all of the production servers.
HPHPc wasn't abandoned per say, it was only deprecated once the performance improvements brought on by HHVM were significant enough to justify the transition.
HipHop compiles the script natively, while KittenDB seems to converts to C++ and then compiles it. KittenDB seems to have fewer dependencies, meaning it's likely to be less feature rich. This could be down to the fact that HipHop is actually a full stack, while this is just the interpretation layer.
I'm finding it difficult to find any more details because the documentation is in Russian.
I'm interested in the fact that both Facebook and the Russian equivalent independently started work on the same basic idea. It's almost like convergent evolution.
As HHVM is more performant than HPHPc, it's a more relevant comparison. Even then, it's not entirely apples-apples since HHVM supports (almost) the entire language, whereas kPHP seems to only support a subset. Doing so likely lets them make a lot of performance optimizations you couldn't make otherwise.
Of all this code, storage should probably be most interesting to outsiders given how fast, reliable and synchronous vk.com is. I've heard they do crazy things with data storage.
I wonder if someone would step up, figure it out and tell the world.
While there is indeed some PHP accelerator code, most of what is open-sourced is piles of domain-specific C code they use _instead_ of PHP, which I find to be an interesting approach.
conductor|12 years ago
[0] - http://habrahabr.ru/company/vkontakte/blog/214877/ (it's in Russian, I used Google Translate)
bowlofpetunias|12 years ago
So basically it doesn't support 95% of all PHP code written in the past decade?
smsm42|12 years ago
jotm|12 years ago
dijit|12 years ago
I know it's where Snowden went to work too, and they're the ones behind Telegram.
it's interesting how much I've heard about them since I started dating a Russian girl... but, yes, good things.
listic|12 years ago
https://maps.google.com/?ll=59.935336,30.325956&spn=0.002389...
http://en.wikipedia.org/wiki/Singer_House
Interestingly, it was built by Singer Corporation
http://en.wikipedia.org/wiki/Singer_Corporation
and essentially became the first business center in Russia [sic!] as lower floors were for Singer show rooms and the higher floors were rented out for other companies. Nowadays lower floors are housing the central book store («Дом Книги»). At the time it was built, its architecture was considered outlandish, but now it's one of the staples of St.-Petersburg.
DanOWar|12 years ago
DominoTree|12 years ago
ampersandy|12 years ago
HPHPc produced the C++ code and that was compiled into a single binary executable. The deployment process involved using bittorrent to distribute the blob to all of the production servers.
HPHPc wasn't abandoned per say, it was only deprecated once the performance improvements brought on by HHVM were significant enough to justify the transition.
United857|12 years ago
http://en.wikipedia.org/wiki/HipHop_for_PHP
Anyone know how they compare?
pippy|12 years ago
I'm finding it difficult to find any more details because the documentation is in Russian.
I'm interested in the fact that both Facebook and the Russian equivalent independently started work on the same basic idea. It's almost like convergent evolution.
ampersandy|12 years ago
As HHVM is more performant than HPHPc, it's a more relevant comparison. Even then, it's not entirely apples-apples since HHVM supports (almost) the entire language, whereas kPHP seems to only support a subset. Doing so likely lets them make a lot of performance optimizations you couldn't make otherwise.
us0r|12 years ago
guard-of-terra|12 years ago
I wonder if someone would step up, figure it out and tell the world.
ddorian43|12 years ago
vsviridov|12 years ago
NanoWar|12 years ago
acc00|12 years ago