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.

Ask HN: What language(s) is Facebook written in?

4 pointsby natgordonalmost 15 years ago
Facebook was originally written in PHP. What technologies is it using now?<p>I had someone tell me that they were moving from python/django to php because 1. it's easier to find PHP devs and 2. it's good enough for facebook. Is it?

7 comments

pinchyfingersalmost 15 years ago
Really?!<p>They developed Hip Hop to transform PHP into C++, so I'd bet they are firmly dedicated to PHP, and I really doubt that Facebook has any problems finding developers.<p>PHP/C++, Cassandra, JavaScript, Flash, and whatever third party developers choose to use as long as they use the Facebook API.<p>I don't actually know, maybe someone else will give you some more insight, but I'm pretty confident about the PHP part.
japherwockyalmost 15 years ago
It's always been written in PHP, and they released a compiler for the language that they developed in house:<p><a href="http://www.insidefacebook.com/2010/02/02/facebook-open-sources-hiphop-php-compiler-software/" rel="nofollow">http://www.insidefacebook.com/2010/02/02/facebook-open-sourc...</a>
评论 #1473780 未加载
stratosparkalmost 15 years ago
Facebook developed the Thrift API to facilitate cross-language services: <a href="http://incubator.apache.org/thrift/" rel="nofollow">http://incubator.apache.org/thrift/</a><p>I imagine they could use anything as long as it consumes Thrift. The extent to which they do that is a question.
drallisonalmost 15 years ago
Take a look at the EE380 video for May 5, 2010 at <a href="http://ee380.stanford.edu" rel="nofollow">http://ee380.stanford.edu</a>. Haiping Zhao from Facebook describes the <i>HipHop Compiler for PHP: Transforming PHP into C++</i>.
smarterch1ldalmost 15 years ago
It's easier to find PHP devs.<p>Facebook is written in PHP. They crossed the point where switching made any sense a long time ago.<p>This has absolutely nothing to with what you should use.
jchonphoenixalmost 15 years ago
From people on the inside.<p>Its written in PHP mainly. It has Java, C++, C, Haskell, Erlang, Python, Perl, OCaml and some others littered throughout the site.
waterlesscloudalmost 15 years ago
Isn't the chat subsystem in Erlang?
评论 #1473973 未加载
评论 #1473913 未加载