Facebook has recently released a new programming language – aptly named Hack – that will let programmers write code easily and faster, while avoiding errors.
Hack hits a sweet-spot by combining elements of both static and dynamic languages. Meaning, programmers can retain all the speed they’d have with a dynamic language (like PHP or Ruby), while also catching mistakes before runtime with early error detection traditionally only seen with static language.
The company migrated almost all its PHP-based site to Hack over the last year (one of the beauties of Hack is that it coexists seamlessly with PHP files). Facebook has now made the language open-source, meaning that any engineer can use it and help improve it.
Hack helps you write correct code faster. Hack adds safety nets while avoiding slowing you down and adds language features that make coding in Hack more enjoyable. Converting PHP code to Hack is easy and can be done gradually, as PHP and Hack work together when run with HHVM. The use case can range from one person working on an app to a scale computing company like Facebook. Facebook is putting Hack out there along with an improved HHVM because it can be relevant to everyone.