user-documentation
z-engine
Our great sponsors
user-documentation | z-engine | |
---|---|---|
3 | 4 | |
129 | 448 | |
1.6% | - | |
7.4 | 0.0 | |
22 days ago | over 1 year ago | |
Hack | PHP | |
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).
z-engine
-
Random shower thought I got: PhpStorm developers are Java developers who know PHP better than most PHP developers
There was an attempt... https://github.com/lisachenko/z-engine
-
RFC: Sealed classes
Operator overloading can technically be done in userspace via FFI with https://github.com/lisachenko/z-engine (I have an active PR adding headers for 7.4 and 8.1 as well as TS) - but it's super hacky and I would love to see it actually make it into PHP proper.
-
Operator Overloading RFC is in voting. What are your thoughts on this feature?
By the way, it's already possible using FFI and z-engine. I have a toy project using this: rikudou/units.
-
RFC: User Defined Operator Overloads
FYI: You can already do that using FFI and z-engine (which I just found out was open-sourced).
What are some alternatives?
HHVM - A virtual machine for executing programs written in Hack.
reli-prof - A sampling profiler or a memory profiler for PHP written in PHP, which reads information about running PHP VM from outside the process. You can find performance bottlenecks or memory leaks of your scripts without changing the target script or loading extensions.
discourse_docker - A Docker image for Discourse
php-fuse - PHP FFI bindings for libfuse
Boston-PHP-Meetup-Examples - Boston PHP Meetup examples
laminas-code - Extensions to the PHP Reflection API, static code scanning, and code generation
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
PHP OAuth 2.0 Server - A spec compliant, secure by default PHP OAuth 2.0 Server
ex_twilio - Twilio API client for Elixir
PHPT - The PHP Interpreter
bref - Serverless PHP on AWS Lambda
Symfony - The Symfony PHP framework