Programming language · 2014

Hack

Programming language.

Official site ›
Hack logo
C++Written in
2014First released
MetaDeveloper
gradualTyping
MIT LicenseLicense
Built from Hack C++PHP
RuntimeInfluence
Replaceduntyped PHP at Facebook scale

What is Hack written in?

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

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

Embed this graph

Paste this iframe into any HTML page to show the Hack relationship graph.

<iframe src="https://www.languagelineage.org/embed?lang=hack" width="100%" height="500" loading="lazy" style="border:0" title="Hack relationship graph"></iframe>

Please attribute the visualization to Language Lineage and link to the Hack source record.

Explore Hack in Graph →