Facebook Has Open-Sourced Its Hack Programming Language

Most of Facebook is now written in Hack, an internally-developed language it introduced when its existing methodologies proved too inflexible. Facebook has now open sourced Hack so other developers can use it.

Facebook explains the need for Hack this way: "Hack reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages." Hack code is designed to run in parallel with PHP, so you can gradually introduce Hack onto a site without having to recode everything.

Hit the link below to learn more about Hack and install it. It runs on a wide variety of Linux distributions. There's also a nifty interactive tutorial on the site.

Hack [via Business Insider]


    I'll admit, the one thing I like about Facebook is that they open source and document a whole bunch of stuff. I think they've contributed a few modules to speed up PHP, and now this.

    But what I don't like about them could fill a warehouse ;D

    an internally-developed language it introduced when its existing methodologies proved too inflexible

    Not accurate. Much like Google use (and propose everyone else use) SPDY [1] - it's a matter of scale. Whether you love or hate Facebook, they are one of the busiest sites in the world [2], and every byte, every microsecond of processing time, counts.

    As with any operation of scale, how purpose driven vs general/all purpose/its infrastructure is drives performance, which ultimately impacts your return on investment through overhead. This is merely taking that one level further. It is custom built explicitly for their needs, and for their scale.

    [1]: http://arstechnica.com/business/2009/11/spdy-google-wants-to-speed-up-the-web-by-ditching-http/
    [2]: http://www.alexa.com/topsites

    i want to get the code of any website how can i do this..................

    Hello Friends It is an good tutorial and I also find another tutorial where you can get basic Hack codes also:


    Have fun with programming.

Join the discussion!

Trending Stories Right Now