lua-users home
lua-l archive

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

Coda Highland <> wrote:

> On Wed, Jul 15, 2015 at 6:28 PM, Paige DePol <> wrote:
>> I do not know much about LuaJIT, is it a totally standalone compiler
>> for lua code not based on any other compiler system?
> Yes, it's completely hand-constructed. Additionally, it's explicitly a
> JIT ("just-in-time") compiler, with no AOT ("ahead-of-time")
> functionality.
>> Hmm, I guess I am left wondering what magic LuaJIT is doing to achieve
>> such dramatic compilation speeds compared to LLVM or GCC?
> Lua is a VERY small language. Specializing for the specific set of
> functionality that Lua needs allows the compiler to be made more
> compact and efficient than a more general-purpose compiler
> architecture.
> [snip]
> /s/ Adam

Thank you very much for that fantastic explanation of LuaJIT!

I had wondered how it worked, but have not yet had time to devote
to the world of compiling Lua and JIT vs AOT techniques.

You have shed some light into a dark corner for me! ;)