website designing language

Hack is the new programming language which was introduced on 20th March, 2014. Facebook is the behind the invention of this programming language.  It can be considered as a new version of PHP which also runs of HHVM (HipHop Virtual Machine) invented by Facebook. HHVM is an open source virtual machine which executes program codes written in Hack and PHP. Most of the PHP source files are Hack files too.

HipHop Virtual Machine

Hack has added some functionality to PHP which helps the PHP developers to build application which runs across HHVM. Facebook tested the functioning of Hack in all Facebook sites which has current viewership of about 1.2 Billion. HHVM is fully available for all of the Linux variants including Ubundu, CentOS, Debian etc and can also be run on Mac OS X in interpreted mode with no JIT(Just-In-Time). So, with HHVM, the programmer has the freedom to choose the operating system and web server. HHVM supports a wide range of database and communication protocols.

 

PHP

PHP is a widely used general purpose scripting language which is mainly used for web development and its syntax is derived from C, Java and Perl. The main convenience of PHP is that it allows web developers to write dynamically generated web pages quickly. Also PHP can be used to build complete server application which can access all system resources and also can be used to generate a simple server-side application with little risk. PHP is comparatively a safe coding language.

Hack uses a compiler called JIT (Just-in-Time) for translating the PHP-Hack code to C++ for execution. HHVM compiles Hack and PHP codes to an intermediate bytecode. This bytecode is then translated to machine code (x64) dynamically at runtime by the Just-In-Time (JIT) compiler. This type of compilation enables the higher performance and allows all sorts of optimization which is not allowed by the statically compiled binary.

 

Although HHVM is specifically intended for Hack, Facebook has announced that all PHP programs will continue to run on HHVM platforms. Facebook is now modifying the HHVM platform to support PHP5 and the priority is to run unmodified PHP-5 source code. HHVM is now a runtime environment that supports both PHP and Hack.

The most important features of Hack language are:
  1. Type Annotation
  2. Generics
  3. Nullable types
  4. Collections
  5. Lambdas
  6. Shapes
  7. Type Aliasing
  8. Async Support, etc..

 

With the introduction of Hack language it is likely that all communities developing Facebook application will now move on to Hack as it supports PHP codes also. The massive user count of Facebook over the internet world will compel the existing PHP developers to use Hack with the invention of HipHop Virtual Machine (HHVM) by Facebook. This also might lead to the acceptance of Hack as a major application development language in the coming time.

Another important aspect of Hack is that it is an open source language. The tools which programmers can use to convert the codebase automatically are also open-source.

Thus, with the introduction of Hack and HHVM, programming is going to take a different level now on wards. You may check the complete manual of Hack by clicking HHVM and Hack The web site link for Hack language is Hack Language.

0

Leave a Reply

Your email address will not be published. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>