What is Hack written in?
The Hack runtime is written in C++.
Hack is a programming language, first released in 2014.
Implementation
| Layer | Written in | Notes |
|---|---|---|
| Runtime | C++ | Hack runs on HHVM, written in C++. |
Runtime model
The Hack runtime, written in C++, manages the execution of Hack programs. Runtime-based languages rely on a host process to interpret or compile code at runtime rather than compiling entirely ahead-of-time to native machine code. This means running Hack programs requires the runtime to be present on the target system.
The choice of C++ for the runtime gives Hack access to native performance, established platform abstractions, and existing ecosystem libraries.
Explore in the Graph
See Hack's full lineage, including all implementation and influence relationships, in the interactive graph.
Open Interactive Graph →Or view the Hack language page for the complete record.