4 ms·
> You may already know that PHP, C++, Swift, and any other modern programming language is not communicating directly to the hardware. The programming language i
by SiempreViernes 9y ago
> You may already know that PHP, C++, Swift, and any other modern programming language is not communicating directly to the hardware. The programming language is just an easier way to talk to the machine. The machine native language is still binary code.
> One way or another, each programming language is translated to the binary code by using the compiler. PHP is no different. But what makes it unique is a Just in Time engine, that allows compilation of the code during the execution of the program. This principle is also known as dynamic translation.
I mean, I guess this weird explanation is fine for a php consultant, but honestly I wouldn't trust any results presented next a description this wrong.
- deleted 9y ago[deleted]
- throwaway2016a 9y agoThe first part is kind of baffling. I'm not even sure what is trying to be said there. English as a second language? The second one if actually wrong unless something changed very recently, PHP is not JIT compiled (at least not to machine code). It is a bytecode VM. I remember the discussion came up and optimizing the byte code was actually improved performance more than proof of concept JIT did for common PHP use cases. PHP 8 is supposed to have a JIT I believe.