lua-users home
lua-l archive

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


On Apr 9, 2015, at 9:23 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:

> 2015-04-09 6:38 GMT+02:00 Petri Häkkinen <petrih3@gmail.com>:
> 
>> Are you aware of Terra? It's a Lua descendant with static typing,
>> pointers, FFI, very nice metaprogramming features and
>> JIT compilation using LLVM. Maybe worth to peek how it's done.
> 
> I was not aware of Terra, so I tried it.
> 
> More precisely, it's a LuaJIT descendant

Not really. While LuaJIT is a tracing JIT compiler, Terra uses LLVM to statically compile Terra functions into machine code the first time functions are called. I think Terra needs LuaJIT just for its FFI.

Petri