Exciting and strong PHP language

Source: Internet
Author: User
Tags hhvm
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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.