Saturday, August 30, 2014
Asynchronous Programming in Hack - Example Code

Asynchronous programming allows a script to run multiple tasks in parallel. These tasks are usually input/output operations that rely on operations that are run by separate servers or other OS processes. Traditionally PHP executes those tasks and waits for them to finish before it returns the control to your script. This is called synchronous...



Facebook's HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides. The JIT Compiler Rather than directly interpret...
Important Language Features of Hack: An Overview

Hack has introduced many new features that are used for different purposes, such as Error Prevention, Code Reuse, Performance Optimization etc. Following are some of the important language features of Hack: Type Annotations Type Annotations allow for PHP code to be explicitly typed on parameters, class member variables and return values. They...
Friday, August 29, 2014
What is Hack?

Hack is a new programming language based on PHP. It is developed by Facebook and was announced recently on March 20, 2014. The syntax is basically the same as PHP, but underneath the hood there are a lot of features such as static typing, native collections, generics and more which PHP has been lacking. Hack allows programmers to use both dynamic...