Hack is a new programming language launched by Facebook. Hack is a programming language developed by Facebook and combined with dynamic type language (such as C language) and static type language (such as PHP language. Generally, when programming in a static type language, developers will know where an error occurs before the program is run. In the current
Hack is a new programming language launched by Facebook. Hack is a programming language developed by Facebook and combined with dynamic type language (such as C language) and static type language (such as PHP language. Generally, when programming in a static type language, developers will know where an error occurs before the program is run. In the current
Hack is a new programming language launched by Facebook.
Hack is a programming language developed by Facebook and combined with dynamic type language (such as C language) and static type language (such as PHP language. Generally, when programming in a static type language, developers will know where an error occurs before the program is run. In the current programming environment, Dynamic Language runs until the program fails.
Features:
- This language makes code writing and testing more efficient and fast, and can capture errors before running the program;
- It also integrates the dynamic type language (such as PHP language) and static type language (such as C language;
- Hack has no substantial impact on the running speed of the Code itself;
- Run Based on hhvm (hiphop vm)
I don't know how my system environment works. Use the following steps to install it.
hhvm --versionHipHop VM 2.5.0-dev+2014.03.20 (rel)Compiler: heads/master-0-gc4b6a793b0d6bc28e63c29151ca0a5c12bbbf856Repo schema: 0e601f9f2c514001cbe38f215a281d34f36a9a9c
Installing Boost 1.49
Similarly, HHVM requires Boost 1.49, but Ubuntu 12.04 only ships with 1.48. To get a more recent version, follow these steps:
sudo add-apt-repository ppa:mapnik/boostsudo apt-get updatesudo apt-get install libboost1.49-dev libboost-regex1.49-dev \ libboost-system1.49-dev libboost-program-options1.49-dev \ libboost-filesystem1.49-dev libboost-thread1.49-dev
For Ubuntu 12.04:
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.listsudo apt-get updatesudo apt-get install hhvm-nightly
After installation, create a file such as first. hack. The Code is as follows:
Run
hhvm first.hack
Installation Guide
1. https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04
2. http://zendframework.info/tag/hhvm-2/