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

phpstorm-8

PHPStorm 8 has just been released

The excellent PHP IDE PHPStorm just had a major release these days: Version 8 is out, coming with latest PHP

mod-rewrite-ubuntu-14-04-lts

How to enable mod_rewrite in Ubuntu 12.04 LTS

A little note first: This is the most seen way to enable mod_rewrite in tutorials. However, it’s not the best

How to get a single table out of a massive MySQL .sql database backup file (mysql dump splitter)

Imagine the following situation: Somebody backs up an entire MySQL database – a very large one – with common tools.

Frontend Ops Conf 2014 – Sarah Goff-Dupont: Git, Continuous Integration and Making It Pretty (31min video)

This article was written quite a while ago (8 years), please keep this in mind when using the information written

Increase your HTML / CSS coding speed with EMMET

Codeninja.com just published a very interesting article about the excellent free code-completion/code-generation tool EMMET, which allows you to create huge

logo-internet-explorer

How to professionally test on old Internet Explorer versions

If you have (or want) to test your websites and applications on older versions of Internet Explorer, then there’s a

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

php

PHP 5.6.0 RC1 is available

The first Release Candidate of PHP 5.6 is available here on php.net, as usual also for Windows systems. The RC

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

php

How to prevent PHP sessions being shared between different apache vhosts / different applications

When you run multiple applications on one server, you might run into the session-sharing problem: All your applications share the

1/4

Categories

Search

Hacked french TV channel exposed passwords in TV interview (video, screenshots, links)
forbes 30 under 30
Need motivation ? Check out these 2 awesome “FORBES 30 under 30” lists (web, UI, games)
bash-command-line-tutorial
Best introduction to unix command line / bash ever (by André Augusto Costa Santos)
How to install/setup latest version of PHPMyAdmin on Ubuntu 12.04 LTS (Precise Pangolin)
php
Slides from International PHP Conference 2014
phpstorm-8
PHPStorm 8 has just been released
How major web companies (and banks) handle passwords quite wrong
phpstorm 7.0 php
How to debug code on a remote server (or in vagrant box) with PHPStorm
Microsoft announces “holographic” 3D interfaces (promo video)
Frontend Ops Conf 2014 – Sarah Goff-Dupont: Git, Continuous Integration and Making It Pretty (31min video)
hack-php
Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today
php
How to setup / install PHP 5.6 on Ubuntu 14.04 LTS
O’Reilly’s Learning JavaScript Design Patterns by Addy Osmani for free
Increase your HTML / CSS coding speed with EMMET
angular js
Learn AngularJS in 20 (or 90) minutes with Dan Wahlin

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