Re: A Few Noob Questions [message #175179 is a reply to message #175164] |
Sat, 20 August 2011 17:48 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Man-wai Chang wrote:
>>> In the old days, "Programs" were compiled into binary codes for direct
>>> execution by the CPU. "Scripts" were not compiled, but interpreted by a
>>> program called intepreter.
>>
>> Contrary to popular belief, scripts, i. e. programs written in a
>> scripting language, are compiled, too. They are *JIT-compiled* *at
>> runtime*.
>
> Is this real compilation? :)
Yes.
>> PHP 4+ scripts are compiled by the Zend Engine (a virtual machine,
>> currently Zend Engine II), to Zend Opcode, a platform-independent byte
>> code (much like
>> with Java). That byte code is interpreted by that VM.
>
> So is PHP still a script?
PHP is a scripting language. Scripting languages are a subset of
programming languages.
As a result, a PHP program may be called a PHP script.
This is not an Internet chat, so please leave in the attribution lines.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
|
|
|