News for hackers. Stuff that matters.
Re:Ask HN: State of PHP at Facebook? by pavlov on Wednesday October 27, 2021 @12:34PM (#29015581)
All of the “www” code (backend which serves all the web apps and APIs) is Hack. And a lot of that code is generated via internal frameworks like Ent which is a graph abstraction over database access.

There doesn’t seem to be any incentive to switch www away from Hack: it wouldn’t reduce the learning curve very much due to all those internal frameworks, and would remove the opportunity to optimize the language for the www codebase.

There are open source languages used in the internal backends though (services behind www). Most of it is C++.

Re:Ask HN: State of PHP at Facebook? by connordoner on Wednesday October 27, 2021 @12:43PM (#29015716)
For anyone interested, it looks like there's an open-source version (close, at least) to Ent at https://github.com/ent/ent.
Re:Ask HN: State of PHP at Facebook? by fredemmott on Thursday October 28, 2021 @11:27AM (#29027229)
There's also https://github.com/hhvm/hack-codegen/tree/master/examples/do..., along with the article at https://engineering.fb.com/2015/08/20/open-source/writing-co...

This is modern Hack code, but not representative of the state of the Ent framework nowadays - ent/ent is closer design-wise, but not usable from Hack.