HHVM Hack source for simple PHP

I have searched on Google and SO. Couldn't find this question or answer anywhere. Like this.

I would like to start using Hack at work, at least for small projects. Our servers don't have HHVM installed right now, and it will take some work. Because of this, I was wondering if it is possible to write and use Hack locally, but then "compile" / "convert" the Hack-source files to plain PHP. Then the simple PHP source can be deployed on our current platforms as is.

I know edge case, short term, but I'm still curious about the possibility

Edit Enough people seem to have asked this question because Facebook has published a transpiler from Hack to PHP . I haven't tried it yet, but thought I'd mention it here.

+3


source to share


1 answer


Not. This has been discussed and doesn't make sense. There's a lot more to it than a Hack than just type annotations, making it nearly impossible to convert it to PHP.



+3


source







All Articles