Arto's Notes re:
Lua
Installation
macOS
$ brew install [email protected] # or [email protected], [email protected]
Ubuntu
$ sudo apt install lua5.2
Reference
Libraries
- BitOp http://bitop.luajit.org/
sudo apt install lua-bitop - CJSON http://www.kyne.com.au/~mark/software/lua-cjson.php
sudo apt install lua-cjson - Lua-CURL https://lua-curl.github.io/
- LuaFileSystem https://keplerproject.github.io/luafilesystem/
sudo apt install lua-filesystem - Penlight https://stevedonovan.github.io/Penlight/
sudo apt install lua-penlight - luaposix https://luaposix.github.io/luaposix/
sudo apt install lua-posix - LuaSocket http://w3.impa.br/~diego/software/luasocket/
sudo apt install lua-socket
Tools
$ luarocks install busted
$ luarocks install luacheck
$ luarocks install luacov
Use Cases
Configuration
- https://www.netbsd.org/~mbalmer/lua/lua_config.pdf
- http://www.fysx.org/2013/10/16/using-lua-scripts-as-config-files-from-c/
- https://eliasdaler.wordpress.com/2014/07/18/using-lua-with-cpp-luabridge/
- https://eliasdaler.wordpress.com/2013/10/11/lua_cpp_binder/
- http://windrealm.org/tutorials/reading-a-lua-configuration-file-from-c.php
Templating
Embedding
Embedding in C++
Embedding in OCaml
- OCaml-Lua compatible with Lua 5.1.
Embedding in Python
- Lupa
sudo pip install lupaworks on OS X and Ubuntu both. - https://lupy.readthedocs.org/en/latest/
- Lunatic Python compatible with Python 2.7 and Lua 5.1. N/A on PyPi.
- python-lua in Debian and Ubuntu as system package python-lua. N/A on PyPI.
- https://pypi.python.org/pypi/PyLua