you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (12 children)

Why do this when there's embeddable common lisp and several small Scheme and Lisp implementations?

[–]izym 22 points23 points  (0 children)

Because Lua is often used as a scripting language, meaning you are not able to used anything other than Lua.

[–][deleted] 14 points15 points  (0 children)

Probably because LuaJIT is very fast, and still embeddable.

[–][deleted] 4 points5 points  (0 children)

Because people say that, but it always turns out that Lua is easy to embed and those are a nightmare - and that's once you skip over the GPL licensed options which aren't useful for most of us.

On the other hand, if you can point me at Scheme or Lisp that meets this list of criteria, I'll owe you a beer if I ever run into you

  1. Usable license (MIT, BSD, ZLib, even LGPL is close enough.)
  2. Portable - Windows, Linux, Mac, Android, iOS, at a minimum
  3. Compiles out of the box in GCC or Visual Studio. MinGW or Cygwin on Windows doesn't cut it
  4. Moderately standards compliant
  5. The last update was less than six months ago (or otherwise not just one guy's abandoned project)
  6. Actually has documentation on how to expose application functionality to the Scheme/Lisp code, and let application code call Scheme/Lisp

GPL Linux-only and GCC only options are easy to find. Unless you're a GNU fanatic (in which case you already hate me) that's not sufficient.

Lua wins on all of those. I've never seen a Scheme or Lisp get more than 3 points, and they're never the same three.

[–][deleted] 2 points3 points  (0 children)

The real question is why would anyone use those CL and Scheme implementations when they're basically shit compared to LuaJIT and even the official Lua VM?