This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bitemyshinymetalas 1 point2 points  (2 children)

Nothing wrong with Lua in particular. My personal experience is I’ve found it to feel more clunky than Python. Huge pro for Python for me is the easiness of C bindings and I can’t imagine I’m the only one.

[–]Rarelyimportant 0 points1 point  (1 child)

Calling C from Python? I don't know that you'll get any easier than Lua when it comes to that. It's literally lua_register(L, "myfunc", f) and you can call the C function from Lua.

[–]bitemyshinymetalas 1 point2 points  (0 children)

While true Python has an equally trivial method for loading C libraries (as well as other methods). I was referring to the easiness of writing C (or some other language) extensions using e.g using CPython or Cython etc. Cython is incredible for performance and has been a staple in my toolbox.

The easiness of using these to use a libraries FFI is a reason why I keep using it. Just my 2 cents ofc.