|
|
|
|
|
by binary132
1010 days ago
|
|
I think it’s because Lua’s C API is very very closely coupled to its native keywords and standard library, so it’s not only built for trivial embedding but also for trivial / mechanical integration. Using the Lua API from within C or C++ is almost like the syntactic language isn’t even there and it’s just a convenient library. For example: https://www.lua.org/manual/5.4/manual.html#lua_pushfstring and: https://www.lua.org/manual/5.4/manual.html#lua_next It’s also amazingly semantically simple and dynamic, almost like a Lisp; even though it doesn’t have classes, typelevel programming is pretty straightforward. It also allows you to easily write and distribute native modules (as shared objects) without needing integration code. It is also insanely portable. |
|