user-documentation
hack-codegen
Our great sponsors
user-documentation | hack-codegen | |
---|---|---|
3 | 1 | |
129 | 337 | |
1.6% | 0.6% | |
7.4 | 3.4 | |
21 days ago | 10 months ago | |
Hack | Hack | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
user-documentation
-
RFC: Sealed classes
I think there are thousands of other things to apply to PHP, rather than this, but if that's the way to go, well, the worse is nothing. Also just look at what https://docs.hhvm.com/ has and PHP doesn't, or go through LOLPHP.
-
Ask HN: State of PHP at Facebook
> Are there any large Hack codebases I can explore?
depends what you mean by 'large' - perhaps https://github.com/hhvm/user-documentation ?
> Does anyone know if FB tracks changes to PHP so Hack is "up to date"?
No, for the most part, Hack no longer considers PHP 'upstream'. Exceptions are things like security fixes to extension functions, if that particular extension function was derived from PHP.
-
PHP in 2021
> With Hack's extensive static type checking and even contexts / coeffects
Have you used contexts/coeffects?
My understanding is that it's still yet to be fully rolled out to WWW, and nobody outside FB has yet played around with it. IMO it still has some DX issues (https://github.com/facebook/hhvm/issues/8828) and the examples given in documentation don't actually work in real life (https://github.com/hhvm/user-documentation/issues/1016).
hack-codegen
-
Ask HN: State of PHP at Facebook
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.
What are some alternatives?
HHVM - A virtual machine for executing programs written in Hack.
fbshipit - Copy commits between repositories · git → git, git → hg, hg → hg, or hg → git
discourse_docker - A Docker image for Discourse
xhp-js - Easily create JS controllers for XHP elements, and XHP wrappers for React elements
z-engine - :zap: PHP Engine Direct API
Boston-PHP-Meetup-Examples - Boston PHP Meetup examples
http-message - The purpose of this PSR is to provide a set of common interfaces for HTTP messages as described in RFC 7230 and RFC 7231
ent - An entity framework for Go
ex_twilio - Twilio API client for Elixir
xhp-lib - Class libraries for XHP. XHP is a Hack feature that augments the syntax of the language such that XML document fragments become valid Hack expressions.