Hack
Hack is a language created by Meta as an evolution of PHP, adding gradual static typing and modern features. It runs on the HHVM virtual machine and powers much of Facebook's codebase internally.
- Creado por Meta (Facebook)
- Año 2014
- Paradigma: Multi-paradigm · compiled (HHVM)
- Extensiones: .hack, .hck
Para qué se usa
- Large-scale web backend
- Meta systems
- APIs
A favor
- Static typing over PHP
- Very fast (HHVM)
- Battle-tested at scale
En contra
- Tied to Meta/HHVM
- Small community
- Low external adoption
Ecosistema
- HHVM
- HSL
- Hphpd
Ejemplo
<<__EntryPoint>>
function main(): void {
echo "¡Hola, mundo!\n";
}