lua-users home
lua-l archive

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


On 21 February 2017 at 23:52, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
>
> Specialise a Lua function by observing the types during execution.
> JIT compile the specialised version.


that's what LuaJIT does, it leaves guards (conditional branches out of
the trace) as assertions about types, ranges, and a few other stuff
that allows it to emit much simpler code.

-- 
Javier