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

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.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: