What is Hack written in?
Programming language.
Its runtime is implemented in C++ (documented).
Quick Facts
- Developer
- Meta and Facebook
- First released
- 2014
- Typing
- gradual
- License
- MIT License
- Website
- hacklang.org
About Hack
Hack is a programming language. It is a garbage-collected language that is just-in-time compiled to machine code as it runs. It supports multi-paradigm, object-oriented, and functional programming. A just-in-time (JIT) compiler translates hot code paths to native machine code while the program runs, trading a slower start for faster steady-state speed.
Hack first appeared in 2014 and was developed at Meta. Hack keeps a steady, moderate following today.
How Hack is implemented
In the Language Lineage dataset, its runtime is implemented in C++.
Hack in the language family tree
Hack drew on ideas from PHP.
Sources: Wikipedia · Wikidata · Official site
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Runtime Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C++ | 92% | Hack runs on HHVM, written in C++. | Source |
Influenced By
- PHP — Hack is a dialect of PHP.
Frequently Asked Questions
What language is Hack written in?
Hack is primarily implemented in C++. See the implementation section above for details and source references.
What languages influenced Hack?
Hack was influenced by PHP among others. See the influence section above for the full list.
When was Hack first released?
Hack was first released in 2014.
Evidence Sources
- https://en.wikipedia.org/wiki/Hack_(programming_language)
- https://en.wikipedia.org/wiki/HHVM
- Hack on Wikidata (Q15971618)