Why Facebook’s New Programming Language Could Reinvent The Web

Why Facebook’s New Programming Language Could Reinvent The Web

Engineers turn an academic exercise into a battle-tested reality with their new language Hack.

Ross Brooks
  • 24 march 2014


Bryan O’Sullivan, Julien Verlaguet, and Alok Menghrajani, three engineers from Facebook, have developed a new open-source version of PHP that could take the programming world by storm. It offers the speed and flexibility of PHP, as well as the safety of more static languages like Java. The best thing about ‘Hack‘ is that it’s already being used to run the gargantuan social network that is Facebook.

PHP and Hack are extremely similar, but the difference is that PHP requires much more server space compared with other programming languages, especially as websites start to grow. Facebook engineers first solved the server problem by running all its PHP code on a new piece of software called the Hip Hop Virtual Machine (HHVM). Hack is the final piece in the puzzle, and makes it easier for developers to manage code and eliminate errors.


The programming language combines flexibility and speed with safety, which until now has only been an academic exercise known as gradual typing. “You edit a file and you reload a webpage and you immediately get the feedback of: Here’s what the page looks like after I made that change. There is no delay,” explains O’Sullivan. “You get both safety and speed.”

Some argue if the language is actually ‘new’ because it’s so similar to PHP, but there’s no doubt it makes it possible to do something that wasn’t even an option before.

Source: Wired
Image: Abraham Williams via Flickr


Why The Apple Watch Is Taking Foot In The Restaurant Industry

Travel Today

Delta Lets Flyers Track Their Luggage From The Airplane To The Airport

The airline's new app allows customers to see exactly where their baggage is throughout their journey

Food Today

Chef Turns Invasive Species Into Delicious Sushi

Creator Bun Lai is adapting strange new ingredients for his menu, which responds to the ecological impact of overabundant creatures in the local environment


Get PSFK's Related Report: Future of Automotive

See All
Gaming & Play Today

Build Your Own Subway System In This Minimalist Game

Mini Metro lets you design your own fully functional transit network, simulating the flow of urban commuters with pared-down visuals

Work Today

Keyboard Designed To Help Women Use More Assertive Language

The device is a commentary on gender roles in the workplace, and features easy access to "power verbs" that help reinforce a habit of being direct in writing

Related Expert

Jennifer Lopez

Science, Space, Technology, Innovation, Social Good

Arts & Culture Today

Spanish Artist Dreams Up What Animals Would Look Like In Modern Clothing

Yago Partal's portraits depict the fantasized style preferences of creatures worldwide, from an Arctic wolf to a zebra

Fitness & Sport Today

New Data Technologies Make Hyper-Personalized Training A Reality

The Sports Debrief from PSFK Labs looks at how analytics tools are being developed to optimize human performance across all industries

Technology Today

IBM Watson Helps Grammy-Winning Producer Craft An EP

The computer system's data technology generated musical scores for Alex Da Kid's first solo project


Future Of Automotive
Scenarios Driving The Digital Transformation Of An Industry

PSFK Op-Ed Yesterday

General Electric: Lighting’s Impact On Sleep Is More Than The Off Switch

Jeff Patton, General Manager of Connected Home Products at GE Lighting, uncovers how lighting technologies can affect our sleep cycles

PSFK Labs october 25, 2016

The Keys For Exceptional Performance On And Off The Field

PSFK Labs' new report highlights five important insights for businesses to perform better than the competition

Travel Yesterday

30-Year-Old Photographs Used As Travel Guides

A new photo series revolves around tracing the origins of images from the past

Children Yesterday

IKEA Is Letting Kids Design Its New Line Of Toys

The products are taken from fanciful drawings that showcase the imagination of those who use it most

Technology Yesterday

Album Turns Into Something New Each Time It’s Streamed

Bill Baird's new album explores the relationship between time and music through a website crafted by design team, One Pixel Wide

Health Yesterday

VR App Prescribed For Pain Relief

A pharmacy chain in Sweden is stepping away from tradition to develop a happy place for the pain-afflicted

Retail Yesterday

Banks Are Coming Together To Create A New Payment Network That Rivals Venmo

A number of financial institutions are collaborating to make a new person-to-person monetary system called Zelle for their customers

Media & Publishing Yesterday

Pocket Camera Aims To Facilitate The Struggles Of Live Streams

The Mevo helps resolve the complexities of streaming video with an intuitive setup and smart editing controls

Health Yesterday

Startup Believes Traceability Will Help Disrupt The Multivitamin Industry

Ritual is a daily supplement for women that traces every ingredient back to its source

Arts & Culture Yesterday

Photo Series Brutally Murders Some Of Your Favorite Fast Food

The portraits by artist duo Ilka & Franz do away with mealtime regulars in a way that is both beautiful and humorous

No search results found.