Solutional new logo (1)

Hack (programming language)

Deel dit
" Terug naar Woordenlijst Index

Hack is a programming language introduced by Facebook[1] on March 20, 2014. It was implemented and tested on a significant portion of Facebook’s website[2] prior to its official announcement. Hack is designed to work seamlessly with PHP, extending type hinting from PHP5 by introducing static typing. It uses a gradual typing system where type annotations are not mandatory by default. However, a strict mode in Hack mandates type annotations for sound code. Some less common PHP features are not supported in Hack. The structure of Hack scripts is similar to PHP, but with some key differences. For instance, Hack files do not use the `

Terms definitions
1. Facebook ( Facebook ) Facebook, now known as Meta Platforms, is a major internet company that started as a social networking platform. Founded by Mark Zuckerberg in 2004, Facebook expanded rapidly from Harvard to other universities and later to the general public, becoming a global phenomenon. It is known for its user-friendly interface and various features such as Groups, the Developer Platform, and Facebook Dating. Despite facing criticism for issues like privacy breaches and the spread of fake news, Facebook has remained a dominant player in the online world. It has made significant strides in the field of technology, including the development of its unique data storage system, the use of PHP for its platform, and the launch of the Hack programming language. In recent years, the company has shifted its focus to the metaverse, a virtual reality space where users can interact with a computer-generated environment.
2. website. This text primarily discusses the concept of a 'Website'. A website is a collection of interconnected web pages, usually including a homepage, located on the same server and prepared and maintained as a collection of data by a person, group, or organization. Websites are a cornerstone of the internet, serving as hubs for information, commerce, communication, and entertainment. They can have various forms such as business sites, gaming sites, academic platforms, or social networking sites. Websites have evolved over time, from text and static images to dynamic, interactive multimedia platforms. The development and functionality of websites are governed by web standards set by the World Wide Web Consortium (W3C). Websites are also influenced by advancements in web server technology and design principles such as responsive design.

Hack is a programming language for the HipHop Virtual Machine (HHVM), created by Meta (formerly Facebook) as a dialect of PHP. The language implementation is open-source, licensed under the MIT License.

Hack logo, featuring white lowercase "hack" letters on a black background, with stylized triangular geometric shapes on the left
Designed byJulien Verlaguet, Alok Menghrajani, Drew Paroski, and others
DeveloperMeta Platforms
First appeared2014
Typing disciplineStatic, dynamic, weak, gradual
LicenseMIT License
Influenced by
PHP, OCaml, Java, C#, Scala, Haskell

Hack allows programmers to use both dynamic typing and static typing. This kind of a type system is called gradual typing, which is also implemented in other programming languages such as ActionScript. Hack's type system allows types to be specified for function arguments, function return values, and class properties; however, types of local variables are always inferred and cannot be specified.

" Terug naar Woordenlijst Index
Scroll naar boven