Facebook’s New Programming Language Promises Bug-Free Coding

Tags: , , , , , , , .

Posted 3 years ago


Facebook's New Programming Language Promises Bug-Free CodingFacebook’s new programming language named Hack, promises to deliver bug-free coding.

Released as open-source, Hack handles checking of data types for consistency in a different way.

Bryan O’Sullivan, Facebook’s Hack team manager explains in an interview “A PHP type system doesn’t do anything until the program is running … you find out about logical errors when the site is live…what Hack does is it checks these kinds of errors ahead of time, before you ship off the computer you’re developing on. You can catch errors quickly.”

In a blog post announcing the release of Hack, Facebook said “Today we’re releasing Hack, a programming language we developed for HHVM that interoperates seamlessly with PHP. 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.

We have deployed Hack at Facebook and it has been a great success. Over the last year, we have migrated nearly our entire PHP codebase to Hack, thanks to both organic adoption and a number of homegrown refactoring tools.

We’re also proud to release an open source version of Hack to the public http://www.hacklang.org/ as part of our HHVM runtime platform, which will now support both Hack and PHP.”


Leave a Reply