Re:PHP: why GOTO instead of recursion?
by Someone1234 on Tuesday September 23, 2014 @02:29PM
(#8357153)
> You've asserted that Zend PHP does not use an intermediate bytecode during normal operation, do you stand by it?
I never made that claim, and no I don't stand by a claim I never made.
You've asserted that PHP is actually JavaScript with style, do you stand by it?
Re:PHP: why GOTO instead of recursion?
by masklinn on Tuesday September 23, 2014 @02:40PM
(#8357243)
> I never made that claim
Sorry to report that yes you did, let me quote exactly (rather than paraphrase):
>> The detection is only done one while generating the bytecode
> That isn't how PHP natively works.
Since "the detection" is obviously a hypothetical assumed in case the compiler ever got a peephole optimizer, the only part of the phrase you could object to is that Zend PHP generates intermediate bytecode.
Since when do you backtrack to a completely different subtread (or to a subthread which does not exist)?
* I said that the detection (optimisation) would be performed while generating the bytecode
* You asserted that it's not how PHP works by default
* I replied that it is
You've asserted that Zend PHP does not use an intermediate bytecode during normal operation, do you stand by it? Because that's where we end up if we backtrack, not about the fact that it doesn't cache bytecode by default which is not actually relevant to my point (the existence and widespread use of bytecode cache merely supports said point by further improving the ROI).