2 ms·
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
by pavlov 5y ago
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++.
- connordoner 5y agoFor anyone interested, it looks like there's an open-source version (close, at least) to Ent at https://github.com/ent/ent https://github.com/ent/ent.
- fredemmott 5y agoThere's also https://github.com/hhvm/hack-codegen/tree/master/examples/dorm 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-code-that-writes-code-with-hack-codegen/ 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.