HN2new | past | comments | ask | show | jobs | submitlogin

I'd say they suck because the authors cared about specific issues other than making the implementation not suck (which I guess means fast performance performance?).

But how does lua bears lisp inheritance in its implementation? IIRC lua does not use pointer tagging which is a typical lispism, uses tables for everything, has no lists, and uses a different approach for implementing closures.

Are you thinking of LuaJIT(2) ?



Lua's designers have acknowledged a lot of Scheme influence, especially from 4.0 onward, but I think it's more about the semantics than the implementation.

Lua uses a type tag + union rather than tagged pointers because it's not strictly portable, and they've placed a high priority on strict ANSI C compliance (with the sole exception of dynamic library loading). Also, Lua tables recognize when they're being used as arrays and use an array internally.




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

Search: