Facebook is a big site. Huge even. And the company mainly uses PHP to generate pages, which - for a site that has many different pages - can cause performance issues, PHP is an interpreted language. The company then worked for several months on a project, HipHop for PHP, which will speed the processing of pages and - according to Facebook - to divide the CPU load of servers by two. The idea is simple: instead of interpreting the PHP code (or compile, as some existing projects), the PHP code is converted into C + + code and then compiled, which can provide a faster overall code. For now, the system is available with its propore Web server (a version adapted to Apache is provided in the future), the tool is open source and has some minor faults, some of the PHP commands are not taken support (including eval ()). In absolute terms, the project is interesting, but it is really useful when PHP is the blocking element, which is rarely the case: the majority of sites are more limited by access to basic data or by optimizing the code itself as the language as a whole.
![]()



Reply With Quote
Copyright Techfuels
Bookmarks