Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
March 20, 2014
Chris
HipHop, Modern PHP, PHP
1

Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today

PreviousNext
hack-php

Exciting stuff is happening: Some years ago Facebook has released an early preview of HipHop, a virtual machine that precompiles PHP and seriously changes the game. While HipHop has become a serious and stable tool in the last months, some rumours about “a new programming language, built on top of PHP” have made the round.

Today, Facebook has officially released this awesome project: HACK is there! Not a completely new language, it’s more like a much much better PHP. The Hack -crew has taken PHP, rewritten it (for the HipHop virtual machine), removed lots of the crappy stuff, and added excellent, professional features while still being 100% backwards compatible to “native PHP”. Side-fact: They even removed all the mysql_ and mysqli stuff (yeah!), but then got complaints from the PHP community and re-implemented mysqli.

Why is this so awesome ? Because the biggest PHP-driven website in the world has seriously fixed PHP, and they have open-sourced (!) it today. Plus the dramatic fact that Hack runs only inside the HipHop virtual machine, which also improves PHP dramatically. Plus the fact that this is not a hobby project, it’s made by a billion dollar corporation that pumps a lot of time and money into PHP. Thanks!

Ladies & Gentlemen, we enter the “Postmodern PHP” era now (as called in Keith Adams’s excellent talk about the future of PHP). As this is a very fresh and ongoing event I will update this article after a deep jump into the Hack documentation.

  • Homepage of Hack (including install tutorials, quickstarts and a documentation)
  • A quick interactive tutorial on Hack
  • Official release statement on the Facebook dev blog

Older stuff that might be interesting in this context:

  • Talk of Julien Verlaguet (creator of Hack), Youtube video
  • Slides of that talk
  • Even more interesting slides, showing syntax etc. by Keith Adams of Facebook

 

This article was written quite a while ago (9 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack languageFacebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language
  • Experimenting with HHVM at Etsy (Link)Experimenting with HHVM at Etsy (Link)
  • Migrating Wikipedia to HHVM (@Scale Conference 2014)Migrating Wikipedia to HHVM (@Scale Conference 2014)
  • [RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)
  • Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8
  • PHP 5.6 announced, statically typed (!) “new” PHP announced by Facebook devsPHP 5.6 announced, statically typed (!) “new” PHP announced by Facebook devs
  • HipHop VM reaches 100% green Unit Tests in Laravel, Drupal, Slim, CodeIgniter etc.HipHop VM reaches 100% green Unit Tests in Laravel, Drupal, Slim, CodeIgniter etc.
  • A super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examplesA super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examples
  • The first micro framework written in Hack is there: hack-mvc !The first micro framework written in Hack is there: hack-mvc !
hackHHVMHipHopPHP
Share this

1 Comment

  • Vincent
    March 22, 2014 7:01 pm

    Great news! @everyone: please upvote these issues in order to make PHPStorm ready for Hack and the HHVM debugger:
    http://youtrack.jetbrains.com/issue/WI-18817
    http://youtrack.jetbrains.com/issue/WI-21737

    Reply

Leave A Comment Cancel reply

Perfect HTML email templates for perfect HTML emails (outlook!) with INK

The people behind FOUNDATION, the excellent responsive frontend framework, have just released a set of highly professional, perfectly compatible HTML

css3-chrome-font

Google rolls out Chrome 37, finally fixes horrible font-rendering

Google has rolled out Chrome 37 today, a legendary milestone that fixes one of the most annoying “bugs” in frontend

hiphop php

HipHop VM reaches 100% green Unit Tests in Laravel, Drupal, Slim, CodeIgniter etc.

In September 2013 the PHP HipHop VM dev team wrote a very interesting article [1] about failing Unit Tests of

java

Interesting: code of the same application in PHP, Python, Ruby, Closure, node.js, Java and Go

Definitly worth a look: Adam Bard created a tiny application in 4 different languages (PHP, Python, Ruby, Closure), just to

shadow dom

Crossbrowser-safe HTML5 video (IE6+) with a few lines of code and just one .mp4 video file

No time to read the full article ? Get the code directly here on GitHub: panique/html5-video. Publishing a video on

(Links) How to fix an extremely slow Symfony inside a Vagrant box

When you work with Vagrant (if not – try it!) on a Windows or Mac machine (which is an excellent

hiphop php

[Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)

This is probably the most useful tutorial in 2014 so far. An excellent post by Chris Fidao, explaining how to

vagrant

A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)

Here’s an excellent downloadable Vagrant box that’s brings you a preinstalled HHVM / HipHop for PHP within a Ubuntu 13.10

What’s new in PHPStorm 10 (Official promo video)

PHPStorm 10 is out! New features are mainly full PHP7 support, much better auto-recognation / autocompletion (even within arrays (unsure

unreal-4-engine

Tim Sweeney talks about the future of game graphics (and which hardware we need to “clone” reality)

If you are interested in 3D/CAD and game graphics and get sweaty hands at each new high-end game engine trailer

1/4

Categories

Search

php
How to install PHP curl extension (in 5 seconds)
php
Awesome list of Design Patterns with PHP code examples
php
[Link] Excellent PHP best practices, 2014 style
october cms
October CMS, built on top of Laravel, is beautiful, clever and on the way to be the new #1 CMS
java
Interesting: code of the same application in PHP, Python, Ruby, Closure, node.js, Java and Go
php
Test out PHP 5.6alpha1 on Windows 7 / 8 with two clicks
forbes 30 under 30
Need motivation ? Check out these 2 awesome “FORBES 30 under 30” lists (web, UI, games)
mod-rewrite-ubuntu-14-04-lts
How to enable mod_rewrite in Ubuntu 12.04 LTS
[Link] Redesigning SoundCloud by Evan Simoni
php
PHP 5.6 announced, statically typed (!) “new” PHP announced by Facebook devs
sass
New features in SASS 3.3 (a talk by SASS-creator Chris Eppstein)
js javascript
How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)
anti block adblock
Show ads to ad-blockering visitors – with PageFair.com
phpstorm-github-code-color-syntax-theme
Get Github’s syntax highlighting colors in PHPStorm
php
How to install sqlite driver for PHP in Ubuntu & Debian

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT