Hello!
On Mon, Oct 8, 2012 at 6:15 PM, Ji Zhang <zhan...@gmail.com> wrote:
> I'm kinda confused about these three components. They seem not the same, but
> have some relationship.
>
To clarify:
1. ngx_lua is an nginx module that embeds a Lua implementation into
the Nginx core;
2. both the standard Lua interpreter and LuaJIT 2.0 are Lua implementations;
3. you can use ngx_lua with either standard Lua interpreter or LuaJIT
2.0, but not both at the same time, because they're different Lua
implementations. You have to pick one from these two.
4. basically LuaJIT 2.0 is preferred over the standard Lua (5.1)
interpreter because the former is more efficient most of the time.
Best regards,
-agentzh