What is Hack written in?

Programming language.

Programming language Year 2014 Paradigm multi-paradigm, object-oriented, functional Typing gradual
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

LanguageConfidenceNotesSource
C++ 92% Hack runs on HHVM, written in C++. Source

Influenced By

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

Discover More

Explore Hack in Graph →