Skip to content

Instantly share code, notes, and snippets.

@btbytes
Last active June 8, 2020 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/6acf539bd280f642447fc975bf672674 to your computer and use it in GitHub Desktop.
Save btbytes/6acf539bd280f642447fc975bf672674 to your computer and use it in GitHub Desktop.
Lua stuff

Lua batteries

  • penlight
  • moses -- functional programming
  • Lua Fun is a high-performance functional programming library designed for LuaJIT tracing just-in-time compiler.

LuaRocks

LuaRocks supports multiple versions of Lua. By default it is configured
to use Lua5.3, but you can require it to use another version at runtime
with the `--lua-dir` flag, like this:

  luarocks --lua-dir=/usr/local/opt/lua@5.1 install say
==> Summary
🍺  /usr/local/Cellar/luarocks/3.3.1: 104 files, 696.3KB
╭─pradeep@lambda ~ ‹system›
╰─$ luarocks --lua-dir=/usr/local/opt/lua@5.3 install lapis
luarocks --lua-dir=/usr/local/opt/lua@5.3 install luaossl CRYPTO_INCDIR=/usr/local/Cellar/openssl@1.1/1.1.1g/include/ OPENSSL_INCDIR=/usr/local/Cellar/openssl@1.1/1.1.1g/include/ OPENSSL_LIBDIR=/usr/local/Cellar/openssl@1.1/1.1.1g/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment