2 ms·
> See also Lua's upvalues for a way to optimize closure variable access Yes! In fact, that's how the C version of the interpreter in my book implements closure
by munificent 10y ago
> See also Lua's upvalues for a way to optimize closure variable access
Yes! In fact, that's how the C version of the interpreter in my book implements closures. It's pretty brilliant. <3 those Lua folks.
- Flow 10y agoWill you cover anything about LuaJIT's "NaN-coding"? Or perhaps do you have a link about how it works?
- munificent 10y agoYes, we'll do NaN-tagged values in the last chapter on optimization.