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

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/

(See also Lua's upvalues for a way to optimize closure variable access that's a bit simpler than his display closures).



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