3 ms·
For making an efficient Scheme implementation: most everything written by R. Kent Dybvig or his students. I'd start with his PHd thesis (Three Implementation Mo
by ioddly 10y ago
For making an efficient Scheme implementation: most everything written by R. Kent Dybvig or his students. I'd start with his PHd thesis (Three Implementation Models for Scheme, specifically the stack-based part).
http://www.cs.indiana.edu/~dyb/ http://www.cs.indiana.edu/~dyb/
(See also Lua's upvalues for a way to optimize closure variable access that's a bit simpler than his display closures).
- 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.