Hack is a dialect of PHP developed by Facebook that adds static typing, generics, and other features while maintaining compatibility with PHP. It runs on the HipHop Virtual Machine (HHVM) and offers improved performance and type safety.
imperative, object-oriented, functional, structured
web development, server-side applications
algebraic data types, type inference, traits/interfaces, async/await, generics
gradual system, structural typing, weak typing, full inference, compile-time checking, conservative type coercion, optional type annotations
compiled, interpreted with JIT compilation
PHP, OCaml, TypeScript, Scala, C#, Haskell, Java
hack, hh, hhi, php
Status | active |
Type | programming |
Created | 2014 |
Designed by | Facebook Engineering Team |
Developed by |
Facebook Meta Platforms |
PyPL Index | N/A |
TIOBE Index | #51-100 |
GitHub rank | #23 |