4 ms·
Lua can be viewed as a pretty solid lisp dialect. You've got the compiler available at runtime, first class functions and coroutines, sensible language runtime.
by JonChesterfield 2y ago
Lua can be viewed as a pretty solid lisp dialect. You've got the compiler available at runtime, first class functions and coroutines, sensible language runtime. Type system is pretty much the same. It doesn't do the phase separated macros out of the box, but metalua does. Performance is rubbish and the syntax is a parse away from the s-expression ast but whatever, the semantics are right.
- kragen 2y agoI mostly agree. Probably Stallman would object that Lua doesn't have read (apart from eval) and print. As for performance, LuaJIT performance is better than any Common Lisp or Elisp, and dramatically better than the first 35 years of Elisp, before native-code compilation.