Skip to content

web - hhvm.com has announced a specification for PHP

http://hhvm.com/blog/5723

The wait is over! We’ve just pushed v1 of the PHP language spec to the repo. The first thing you’ll notice is that it’s in Markdown. Yeah, I know there was a slight lean towards ReStructuredText in my little informal poll, but the guy working on massaging the spec out of MSWord format (JoelM) had enough to deal with that I didn’t want to sideline him too far with bike shedding over document format. I suspect one of the first decisions we’ll make as a group is to pandoc it into something else, and that’s fine. The important thing is to have this starting point.
There are some known issues, which Joel is going to categorize onto bugs.php.net including the fact that PHP currently fails one of the conformance tests because ($a)[0] is a parse error. Speaking of conformance tests, they need some love too. They’re monolithic and scattered with commented out lines of code. Some nice low-hanging fruit for anyone wanting to get involved would be to split them up a bit and clean them to match PHP Coding Conventions.

A final reminder, this is an initial draft, and not a completed documented. As my employer says, "This journey is 1% finished."
Let’s make it awesome.

-Sara

source

And here is the link to the php specification draft.

Fackbook Tries to Solve PHP's Issues With Their New Language Called "Hack"

I just had finished an article about facebooks new programming language. I am compiling it right now (thats there is a aur package available for hhvm).
In general, it looks like hack is friendship php with benefits. Can be run as script language, can be used as dynamically typed. Yes you are right, both times a "can be", indicating "can run as compiled code" and "can be statically typed" (or how they called it gradual typing.

So what hack is hack?

Hack is a programming language for HHVM that interoperates seamlessly with PHP. Hack reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages.

Hack provides instantaneous type checking via a local server that watches the filesystem. It typically runs in less than 200 milliseconds, making it easy to integrate into your development workflow without introducing a noticeable delay.

source

Good articles are starting to spreading around, first i found was on sitepoint.com.

I was searching for a support announcement of hack for phpstorm and yes, there is a feature request for hack support as well as a feature request for hvvm debugger out there. Crossing fingers to get it in asap :-D.