lua C++ wrapper

最近在研究lua的c++绑定库,使用过一下几个

luabind 问题:没人维护

https://github.com/vinniefalco/LuaBridge

https://github.com/ThePhD/sol2

https://bitbucket.org/alexames/luawrapper/src

https://github.com/jeremyong/Selene

主要问题:

这些库要彻底理解 还是有一定难度(难度主要还是在于不熟悉lua的api,哭。)

非常担心大量使用后,万一有啥问题到时候搞不定就麻烦了

ref: lua绑定库基准测试 http://satoren.github.io/lua_binding_benchmark/

参考资料

sol2的实现 https://github.com/ThePhD/sol2/tree/develop/docs/presentations

lua官方网站的介绍 http://www.inf.puc-rio.br/~roberto/cvpub.html

http://www.inf.puc-rio.br/~roberto/talks/index.html