
LuaJIT Hacking: Getting next() out of the NYI list
2/21/2017
This post introduces 'loom', a custom HTML-formatted tool for visualizing LuaJIT's JIT compilation traces, offering more detail and cross-references than the standard `-jdump` option. It also details the problem of `next()` and `pairs()` being 'Not Yet Implemented' (NYI) in LuaJIT, forcing code to run in the interpreter and incurring significant performance penalties, especially when using the FFI library. The post outlines the steps taken to get `next()` out of the NYI list, enabling it to be JIT-compiled.