Facebook Open Sources Streamlined “Hack” Coding Language - HotHardware
Facebook Open Sources Streamlined “Hack” Coding Language

Facebook Open Sources Streamlined “Hack” Coding Language

Facebook has endeavored to make coding a more efficient process by developing a coding language called Hack. Facebook has been using Hack internally for quite some time, and now the company is open sourcing the tool for anyone to use.

“Hack is a programming language for HHVM that interoperates seamlessly with PHP,” reads the “Hack Lang” website. “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.”

Facebook's Hack

The problem that Facebook addressed with Hack is the problem of the slower pace of static code typing and the lesser accuracy of dynamic typing. “At Facebook scale — with thousands of engineers shipping new code twice a day — slowdowns like these are even more problematic,” wrote Facebook’s Julien Verlaguet in an announcement. Hack is designed to be a sweet spot for both.

Facebook has tried to make it as easy as possible to migrate any existing code, and indeed you can add Hack incrementally to your existing PHP files. If you want to give Hack a spin, you can get cracking at Hacklang.org. There’s also a Hack development day you can attend on April 9th.
0
+ -

I think the name is nice. Surprised it hasn't already been taken, but it does have negative connotations. Something I wouldn't mind trying for the stated purpose.

0
+ -

Php is so ubiquitous though. I don't see this catching on. If you are having issues with loose types, simple code conventions can eliminate nearly all confusion.

Login or Register to Comment
Post a Comment
Username:   Password: