3 ms·
I am sad to see Facebook helping to perpetuate PHP. On the bright side though, even if HipHop yields a 50% speedup, it is unlikely to be faster than Python, Ja
by codexon 17y ago
I am sad to see Facebook helping to perpetuate PHP.
On the bright side though, even if HipHop yields a 50% speedup, it is unlikely to be faster than Python, Javascript V8, or LuaJit.
http://shootout.alioth.debian.org/u32/chartbox.php?s=eNo9ktuRxTAIQ1viDarC%2FXezYm%2Fs%2FJyBQYBwUkPgJz%2FY5BBevRFqyk4JWuYikWFxUvZ7gHTHKS0HToVG56k2A5Pwnri6MkDswQc7IZBDXeVInZopz9NibfJ0qrYlH1x05dnRSkFN9GkdhB2mZHbdUMfKveKidLKbg1xmJ6h5nfZCCQGUU%2FdzxBrTCyZBD7tg6OpiKFDGD1fnqRkX5e7gnt3YCGOMmteZh7tnBKIeYI69BI8UrBTTf38menHntbL3xZ416AE0Rp2E59AY36Yv7j1Fe%2BSB29YaY1duZlA26wrnX9BsbfPN%2BwOA6XrK&m=eNozMFJwS01SMDIwNFAoNTYCABs7A20%3D&w=eNrLKU3MyizxL7PwzylN9M8qKk2q9K9MLCrzL6gsycjPM4bS%2FgUZBf4FqUU5%2FiAVAD2BFWM%3D http://shootout.alioth.debian.org/u32/chartbox.php?s=eNo9ktu...
edit
What's with the downvotes? I can't mention my opinions on php?
- ivankirigin 17y agoUse your imagination. Perhaps other languages can be compiled down with HipHop. Perhaps other languages can call PHP libraries compiled with HipHop. Then you might have an end to end solution to transition from PHP to Python. This is obviously just a fantasy of mine. Back to coding PHP...
- codexon 17y ago> Perhaps other languages can be compiled down with HipHop. There's already something like HipHop for Python called Cython. You can compile any pure python code into a static C shared library (with the exception of generators).
- ivankirigin 17y agoI suspect for interoperability, using a single framework is the most likely to succeed. But this is the whole point of open source, right? Let the community enhance it in awesome ways.
- mbreese 17y agoAre you serious? A magical framework that translates PHP/Python/etc into C++ code? I've got to be misinterpreting what you're saying... Then again, you might be drinking a bit too much of that Facebook juice... :)
- ivankirigin 17y agoYes, I can easily imagine even people outside facebook adding to the HipHop effort in adding other languages. Easily imagined and easily executed aren't the same thing, unfortunately. By the way, I'm out of my element when it comes to compilers.
- mbreese 17y agoI can imagine it really being a very open project with outside contributors, but I'm not sure that the exact same tools will work with other languages. For example, I think that dealing with something like Python would require a completely different set of translations because it is mainly dictionary based. That's not to say that doing an X to C++ converter isn't possible or a good idea, I just think that the HipHop techniques may not apply to other languages very easily.