DEV Community

Discussion on: PHP needs its own ES6

Collapse
 
cabloo profile image
Cabloo

Yes - I have had the pleasure of developing on Hack and I like to describe it as a blend of PHP, JavaScript, and Java, since it takes some of the best features from each (and adds more). It was built to be fully compatible with PHP so that Facebook could slowly migrate its giant code base without breaking any existing functionality.

That being said, I've never had to setup Hack on a server. The major difference is that Hack is a compiled language, so it requires significantly different server software to build & run (HHVM last time I checked). Depending on how your current PHP app is setup, this may turn out to be a simple or complex task.

Thread Thread
 
hamatti profile image
Juha-Matti Santala

Great, I'll have to put Hack on my list-to-learn and take a look at it in some point.

ES6 needs transpiling as well so needing to have a few extra steps with Hack is not really an issue.