News for hackers. Stuff that matters.
Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by rafekett on Thursday December 19, 2013 @05:20PM (#6938339)
It _is_ their fault, for repeating the stupid mistakes that Kernighan, Ritchie, et al made when designing Unix and C.
Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by pdog on Thursday December 19, 2013 @05:34PM (#6938434)
Short names weren't really a mistake when K&R made them.
Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by rafekett on Thursday December 19, 2013 @05:58PM (#6938592)
Yes, for some time (the dark ages I like to think) programmers had to sacrifice productivity to make things faster, or to make them fit in memory. The original C compiler had a 6 character limit on variable names, leading to abominations like `strstr()`.

Fortunately, by the Pentium era, which was when PHP was designed, those times were long gone.

"X made this design decision before us" is never a good justification for any design decision unless the decision is truly arbitrary (i.e., are arrays 0 or 1 indexed?) -- then it might be better to stick to what's more familiar. If it was a good design decision then, then there must have been some reason at the time that should be true now to give a good case for repeating a design decision.

Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by Crito on Thursday December 19, 2013 @06:37PM (#6938802)
I find the juxtaposition between PHP's short function names taken from C, and things like T_PAAMAYIM_NEKUDOTAYIM to be rather funny.
Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by e-tron on Thursday December 19, 2013 @09:52PM (#6939632)
recently(not quite) there was a talk in php internals about changing that.

read this:

http://philsturgeon.co.uk/blog/2013/09/t-paamayim-nekudotayi...

Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by Crito on Thursday December 19, 2013 @11:27PM (#6939933)
Well, so long as they don't fix the parsing of octal int literals that is okay. Loosing both of my favourite offhand complaints would be rather disappointing. ;)
Re:HipHop VM: now at 98.5% PHP framework parity, 16% faster by userbinator on Thursday December 19, 2013 @11:31PM (#6939951)
Never seen that one, but I think it's cute.