News for hackers. Stuff that matters.
Re:Ask HN: State of PHP at Facebook? by golergka on Wednesday October 27, 2021 @01:21PM (#29016201)
Wow, that's almost the same thing that Typescript is to Javascript. Is all of that openly available to outsiders? If it is, I think I might to rethink my stance of php that I had for the last 15 years.
Re:Ask HN: State of PHP at Facebook? by vjeux on Wednesday October 27, 2021 @01:30PM (#29016342)
All of the language features in ES6 / Flow / JSX that Facebook has been pushing through as part of the React ecosystem have been pioneered by Hack/HHVM at Facebook and then ported very closely to the JavaScript ecosystem.
Re:Ask HN: State of PHP at Facebook? by klodolph on Wednesday October 27, 2021 @01:33PM (#29016382)
It is available. My understanding is that, unlike PHP, it really only has first-class support on Linux. You can run it on macOS, but you may have to fix some issues yourself.

I've been tempted to use it for things like static website generation, since it has the "XHP" stuff, which is like JavaScript's JSX... and I'd undoubtedly prefer writing code in Hack to writing code in JavaScript.

https://docs.hhvm.com/hack/XHP/introduction

JSX is based on XHP, of course, not the other way around.

Re:Ask HN: State of PHP at Facebook? by fredemmott on Thursday October 28, 2021 @11:44AM (#29027425)
The warnings about MacOS are mostly being cautious, as I don't think anyone actually runs it in production.

I work with open source Hack code a lot, and I almost always use the MacOS binaries instead of Linux for development.

For my workflows, it's more that there's two major missing things - I'm not seeing random issues. The big things are:

- a lot of the profiling features are Linux-only

- the mcrouter extension is Linux-only. If you're using memcached, this extension is useful even without mcrouterd, as it provides a true async (Awaitable) client.

Re:Ask HN: State of PHP at Facebook? by that_guy_iain on Wednesday October 27, 2021 @01:46PM (#29016549)
That feature is also part of the PHP language. Also as far as I know Hack is available to everyone.