Why does Facebook convert PHP code to C++?
Posted
by
user72245
on Programmers
See other posts from Programmers
or by user72245
Published on 2012-11-19T18:44:45Z
Indexed on
2012/11/19
23:22 UTC
Read the original article
Hit count: 246
I read that Facebook started out in PHP, and then to gain speed, they now compile PHP as C++ code. If that's the case why don't they:
Just program in c++? Surely there must be SOME errors/bugs when hitting a magic compiler button that ports PHP to c++ code , right?
If this impressive converter works so nicely, why stick to PHP at all? Why not use something like Ruby or Python? Note -- I picked these two at random, but mostly because nearly everyone says coding in those languages is a "joy". So why not develop in a super great language and then hit the magic c++ compile button?
© Programmers or respective owner