r/programming • • Mar 20 '14

Facebook introduces Hack: a new programming language for HHVM

https://code.facebook.com/posts/264544830379293/hack-a-new-programming-language-for-hhvm/
802 Upvotes

526 comments sorted by

View all comments

Show parent comments

177

u/expertunderachiever Mar 20 '14

Couldn't you name it php++ like it should have been called? :-)

172

u/alokmenghrajani Mar 20 '14

The PHP license would not allow it: "4. Products derived from this software may not be called "PHP", nor may "PHP" appear in their name[...]"

286

u/expertunderachiever Mar 20 '14

just put the name backwards then.

212

u/MikeTheStone Mar 20 '14

dHd

0

u/[deleted] Mar 20 '14

[deleted]

→ More replies (5)

25

u/Feirlane Mar 20 '14

And then get sued by the Stargate people

32

u/[deleted] Mar 20 '14

GNP:

GNP's Not PHP.

→ More replies (2)

35

u/Vulpyne Mar 20 '14

I wonder if they could have called it QIQ.

18

u/seanosaur Mar 20 '14

QIQ: It's quick and easy.

52

u/SomniumOv Mar 20 '14

it's Quick Ind Qasy.

14

u/unwind-protect Mar 20 '14

I looked at PHP once... was enough to make me queasy...

→ More replies (2)
→ More replies (1)

15

u/[deleted] Mar 20 '14

Recursive like PHP.

QIQ = QIQ is quick.

3

u/[deleted] Mar 21 '14

so... "PHP handles poorly"?

→ More replies (2)

3

u/[deleted] Mar 21 '14

If you want to go with the IBM -> HAL joke it should be OGO :)

→ More replies (3)

11

u/cjt09 Mar 20 '14

It doesn't say you can't use "php" though, only that you can't use "PHP". ;)

62

u/TJ09 Mar 20 '14
$ php -r "var_dump('php' == 'PHP');"
bool(false)

Your logic holds.

56

u/Crandom Mar 20 '14

I was half expecting that to come back true for some reason, given what I've seen of PHP.

20

u/cjt09 Mar 20 '14

This should satisfy your urge:

var_dump(('php' == 0) == 'PHP');
bool(true)

44

u/TJ09 Mar 20 '14

Hack error: 0,11 This is a string, you are comparing it to an int (0,20).

Yay static analysis.

7

u/[deleted] Mar 20 '14

Still a bad, nondescript name. At least they didn't name it "code" or something.

→ More replies (5)
→ More replies (7)

57

u/max_t2 Mar 20 '14

yeah "Hack" is a weird name for a programming language...

23

u/Steltek Mar 20 '14

Moreover, "Hack" is a weird name whose principle (only?) improvement is static typing. In my mind, a "hack" language is like Perl. Quick, dirty, and able to twist reality for no reason other than "I want to".

→ More replies (57)
→ More replies (4)