top | item 32253355

(no title)

antholeole | 3 years ago

Hack because?

discuss

order

klodolph|3 years ago

Basically, all the front-end code on the server side is written in Hack, because it was originally written in PHP. My understanding is that general application logic, like permissions, is handled by libraries written in Hack. Also stuff like templates (for HTML or other UIs, including CSS), etc.

Hack is recognizable as a PHP derivative but the experience of writing Hack is very different from the experience of writing PHP.

packetslave|3 years ago

There's a LOT of infrastructure that already exists in the Hack ecosystem at Meta. Especially around things like data access control, privacy, auditing, data deletion, etc.

When I left earlier this year, pretty much all of the internal storage systems (from MySQL to blob storage) were moving to requiring all access to be via a common Entity framework that encoded the above-mentioned things in a common way. That framework exists on the non-Hack side of the house, but it's much, much easier and in some ways more robust on the Hack side.

mhoad|3 years ago

So all the things they are especially bad at?

Only a semi troll comment, IRL Facebook recently said they were genuinely unable to audit where personal information was ending up across their systems which is a terrifying thing to think about and another reason I genuinely hope their pivot to VR kills them as a company.

ljoiajsdfwfwdf|3 years ago

Hack is a facebook project. Hack was born out of need to improve speed of PHP performance and add a typing discipline.

Lt_Riza_Hawkeye|3 years ago

Because the entire website is written in hack?