TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

VK.com's PHP accelerator – kPHP source code

71 pointsby acc00about 11 years ago

8 comments

conductorabout 11 years ago
kPHP doesn&#x27;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.<p>[0] - <a href="http://habrahabr.ru/company/vkontakte/blog/214877/" rel="nofollow">http:&#x2F;&#x2F;habrahabr.ru&#x2F;company&#x2F;vkontakte&#x2F;blog&#x2F;214877&#x2F;</a> (it&#x27;s in Russian, I used Google Translate)
评论 #7357171 未加载
评论 #7357652 未加载
评论 #7357230 未加载
dijitabout 11 years ago
This is awesome, I was considering applying to vk.com because they seem to be a very good and open house based in St. Petersburg.<p>I know it&#x27;s where Snowden went to work too, and they&#x27;re the ones behind Telegram.<p>it&#x27;s interesting how much I&#x27;ve heard about them since I started dating a Russian girl... but, yes, good things.
评论 #7358183 未加载
DanOWarabout 11 years ago
Facebook&#x27;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&#x27;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.
评论 #7358256 未加载
评论 #7358215 未加载
United857about 11 years ago
Sounds like HipHop, Facebook&#x27;s PHP-&gt;C++ translator.<p><a href="http://en.wikipedia.org/wiki/HipHop_for_PHP" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HipHop_for_PHP</a><p>Anyone know how they compare?
评论 #7357116 未加载
评论 #7358259 未加载
评论 #7357066 未加载
guard-of-terraabout 11 years ago
Of all this code, storage should probably be most interesting to outsiders given how fast, reliable and synchronous vk.com is. I&#x27;ve heard they do crazy things with data storage.<p>I wonder if someone would step up, figure it out and tell the world.
评论 #7357160 未加载
vsviridovabout 11 years ago
kPHP is not PHP, it&#x27;s a PHP-like language.
NanoWarabout 11 years ago
Browsing through the code, no single comment found... (?)
acc00about 11 years ago
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.