r/programming • u/matthieuC • Sep 18 '17
Facebook's Hack language is cutting the bridge with PHP
https://www.phoronix.com/scan.php?page=news_item&px=HHVM-PHP7-Focus
80
Upvotes
r/programming • u/matthieuC • Sep 18 '17
18
u/matthieuC Sep 18 '17
Next release of the VM (HVVM) will drop PHP 5 support. Future release won't have PHP 7 compatibility as a goal.
62
u/XNormal Sep 19 '17
Microsoft - C#
Google - Go
Apple - Swift
Facebook - Hack
When is Amazon starting its own language?
22
u/Scroph Sep 19 '17
Back when HHVM was announced, many PHP devs were cautious. They refused to bet on that technology because they thought that Facebook could remove PHP support from their virtual machine at any moment, or even drop HHVM entirely if the project ends up not satisfying Facebook. Looks like they were right.
Does anybody other than Facebook actually use Hack for production ?
10
u/MrDOS Sep 19 '17
I remember that Wikipedia moved to HHVM a couple years ago. I wonder what their next move is? PHP 7 has reached maturity since then and its runtime is much better than that of PHP 5, but AFAIK HHVM still beats it in most cases.
19
u/mhd Sep 19 '17
Awk -> Perl -> PHP -> Hack
And the dance continues.
12
u/m00nh34d Sep 19 '17
Are new projects commonly using PHP?
I'm kinda stuck using it as it's the only platform supported by GoDaddy's el-cheapo hosts (which the community group, whose website I look after uses). But given a choice, I'd much prefer to move to .NET, especially now with ASP.NET core 2.0. Is anyone actively choosing PHP over other available options nowadays?
4
u/CODESIGN2 Sep 19 '17
Hasn't even wikimedia which was running HHVM jumped ship to PHP7?
It seems like a desperate attempt to isolate users outside of the FB organisation for some dribbler investor notion of IPO
4
u/twiggy99999 Sep 19 '17
Orignal article without the shitty blog spam:
http://hhvm.com/blog/2017/09/18/the-future-of-hhvm.html
5
u/shevegen Sep 19 '17
Two things that I find interesting.
a) Hack uses a BSD style licence.
https://github.com/facebook/hhvm/blob/master/hphp/hack/LICENSE
Not as simple as oldschool MIT (almost no licence can beat it ... perhaps save for unlicence licence or public domain such as sqlite... but I think MIT may be better than these because it is short and very explicit), but BSD is ok too.
https://en.wikipedia.org/wiki/MIT_License
b) Oddly enough ... facebook considers PHP to no longer be good enough. Else why create a new language, even if it is similar to PHP? For some reason, the fat corporations love to control the whole software stack. It's understandable but ... I think that it is the wrong move. They should instead use resources to get in changes or modifications that they want to see in other language. And yes, bla bla... if you want to have a type system, that may not get added into PHP but seriously, WHY then does everyone and his pet create a new language? It's not as if ... there are already 500000 programming languages out there?
1
u/qsdf321 Sep 24 '17
Hack is a shit name for a programming language.
-4
u/tonefart Sep 19 '17
Not touching any dev tools from fb.
0
u/Gotebe Sep 19 '17
No way I am hacking with PHP.
Go away Facebook, you're drunk!
-1
u/liam-io Sep 19 '17
Facebook has learnt the lesson how people can easily switch from react to preact! You wont be easy to switch to PHP this time.
-1
u/liam-io Sep 19 '17
Facebook has learnt the lesson how people can easily switch from react to preact! You wont be easy to switch to PHP this time.