Description
Hack is an object-oriented programming language for building reliable websites at large scale. Created by Meta, it runs on HHVM, a high-performance runtime, and it interoperates with PHP code. Hack combines the fast development cycle of a dynamically typed language with static type checking. The site says type checking is incremental and typically finishes in under 200 milliseconds as you edit files. The language adds features found in other modern languages, including async operations for cooperative multitasking, generics, and XHP, an extension for embedding markup in code. The home page shows an example that runs several database requests together with async functions and combines their results, and it links to an introduction video. The project was open-sourced in March 2014, and its source code is in the facebook/hhvm repository on GitHub, under hphp/hack. The site also has documentation, a blog, HHVM links and a collaboration and research section. It is aimed at developers who run PHP-style web services and want stronger typing without rewriting everything.…
Highlights
- Static type checking with incremental feedback
- Runs on HHVM
- Interoperates with PHP
- Async operations and generics
- XHP for embedded markup
Ratings & Reviews
No ratings yet
Be the first to rate Hack Lang.
People also visit
Hack Lang FAQ
What is Hack?
An object-oriented programming language for building websites at scale, created by Meta and run on HHVM.
Can it work with PHP?
Yes. The page says Hack interoperates with PHP.
How fast is type checking?
The site says it typically runs in under 200 milliseconds as you edit files.
Is it open source?
Yes. The project was open-sourced in March 2014 and its source is in the facebook/hhvm repository on GitHub.
Where do I start?
The site links to docs and a Get Started button, plus an introduction video.
What are the best Hack Lang alternatives?
Popular alternatives to Hack Lang include HHVM, Factor and scrapscript. See all Hack Lang alternatives




