Live data from Hacker News

VK.com's PHP accelerator – kPHP source code

github.com

11–20 of 27 posts

Re: VK.com's PHP accelerator – kPHP source code

#11

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. [0] - http://habrahabr.ru/company/vkontakte/blog/214877/ (it's in Russian, I used Google Translate)

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 :-)

Re: VK.com's PHP accelerator – kPHP source code

#12
post #4

Earlier quoted context omitted.

given one completely ripped the other off - probably similar?

which copied which?

Nice downvotes. Someone doesn't like the truth. VK basically ripped Facebook verbatim. Now Telegram or whatever its called. They are basically the Russian version of the Samwer brothers.

Re: VK.com's PHP accelerator – kPHP source code

#13

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. [0] - http://habrahabr.ru/company/vkontakte/blog/214877/ (it's in Russian, I used Google Translate)

> there is no OOP So basically it doesn't support 95% of all PHP code written in the past decade?

That's awfully optimistic..

Re: VK.com's PHP accelerator – kPHP source code

#14
post #12

Earlier quoted context omitted.

which copied which?

Nice downvotes. Someone doesn't like the truth. VK basically ripped Facebook verbatim. Now Telegram or whatever its called. They are basically the Russian version of the Samwer brothers.

The downvotes are because no one cares about whether VK ripped Facebook, and your comment is nonsensical.

If this project is not based on the source code of HHVM there is no way a conclusion can be made about its features or performance compared to HHVM, regardless of any relation between VK and FB.

Re: VK.com's PHP accelerator – kPHP source code

#16

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. [0] - http://habrahabr.ru/company/vkontakte/blog/214877/ (it's in Russian, I used Google Translate)

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.

Re: VK.com's PHP accelerator – kPHP source code

#17
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.

Re: VK.com's PHP accelerator – kPHP source code

#18
post #6

Sounds like HipHop, Facebook's PHP->C++ translator. http://en.wikipedia.org/wiki/HipHop_for_PHP Anyone know how they compare?

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 t…

It requires additional dependencies because HHVM has to emulate most of the core PHP extension functionality to be compatible with PHP, for example 'mysql_query', etc.

Re: VK.com's PHP accelerator – kPHP source code

#19

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. [0] - http://habrahabr.ru/company/vkontakte/blog/214877/ (it's in Russian, I used Google Translate)

> there is no OOP So basically it doesn't support 95% of all PHP code written in the past decade?

It also looks as if they haven't updated the website for which this project was intended in the past decade either, it appears as if they stole the design (badly) ten years ago and haven't updated it since. Apparently they have 100M users.

http://vk.com/?z=screen2

Edit: 100M active users, 230M users.

Post reply on HN