NLua / NLua

Bridge between Lua and the .NET.
http://nlua.org
MIT License
2.05k stars 309 forks source link

What is the difference between nlua and keralua? #511

Open unicornlox opened 11 months ago

unicornlox commented 11 months ago

What is the difference between nlua and keralua? which library should we use in which situation?

viniciusjarina commented 11 months ago

KeraLua is 1:1 projection of Lua C library to C#/.NET NLua uses that projection to dynamically invoke methods/properties etc using reflection

unicornlox commented 11 months ago

@viniciusjarina Thank you very much for your answer, so keralua and nlua are not alternatives to each other, do I understand correctly?

viniciusjarina commented 11 months ago

NLua uses KeraLua. You could use KeraLua if you want a simple binding from C# to Lua without requiring a lot of reflection. I strongly recommend the Lua author book https://www.amazon.com/Programming-Lua-Fourth-Roberto-Ierusalimschy/dp/8590379868/