Hacker News new | past | comments | ask | show | jobs | submit login

Lua is pretty minimalistic. There are few batteries included. The standard library is very basic.

To what extent does its easy C interop make up for this?




It helps quite a bit. It's really easy to write a glue layer between Lua and whatever C library you want. The downside is that you still have to actually write that glue.

It should probably be noted that Lua gets along less well with C++, so that glue is a bit harder to write for C++ libs. There are tools that will automatically generate that glue for C++, but I'm not familiar with them.


As Dyson said, it's fairly easy.

LuaJIT2's ffi also makes it a lot quicker.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: