Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Will you cover anything about LuaJIT's "NaN-coding"?

Or perhaps do you have a link about how it works?


Yes, we'll do NaN-tagged values in the last chapter on optimization.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: