Hack is an actively used programming language created in 2014. Hack is a programming language for the HipHop Virtual Machine (HHVM), created by Facebook as a dialect of PHP. The language implementation is open-source, licensed under the BSD License. Hack allows programmers to use both dynamic typing and static typing. Read more on Wikipedia...

6Years Old 2,131Users 37Jobs

Example code from the Hello World Collection:

// Hello world in Hack
echo 'Hello World';

Example code from Linguist:

<?hh // strict
 * Copyright (c) 2014, Facebook, Inc.
 * All rights reserved.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.

function startup(): void {

Example code from Wikipedia:

// Hack functions are annotated with types.
function negate(bool $x): bool {
    return !$x;

Trending Repos

repo stars description
fbctf 5992 Platform to host Capture the Flag competitions

Last updated August 9th, 2020

Edit Hack on GitHub