lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 19 October 2011 00:10, Patrick Mc(avery
<> wrote:
> Thanks for feeding back on this. Is this how other languages like PHP do
> this? They are run through a preprocessor first? Is this why PHP is 3X -4X
> slower then Lua?

Please don't take any of this as black and white, because I really
have never looked at the PHP code myself (except via stories like[1]).
However, from what I can tell there is basically no clean separation
between parser and interpreter/VM in PHP like there is in Lua. Don't
forget that PHP stands for Hypertext *Preprocessor*... it's amazing
(though I guess actually not) in this light that we ever got to the
point where people are writing daemons in PHP.