Libraries and tools for Lua

Here are my libraries and tools for Lua. They are simple to install and use, but read detailed instructions anyway. Check their release data (date, size, and checksum) to make sure you have the latest version. Some packages are also available as Lua rocks. All packages here are in the public domain.

Please drop me a line if you use one of my packages. All feedback is welcome. Enjoy.

ae · ctrace · demo · lalarm · lascii85 · lbase64 · lbc · lbci · lbn · lcl · lcomplex · ldumplib · lgdbm · lgpc · lint64 · linterval · lmapm · lmathx · lmd5 · loadlib · lpack · lpdf · lper · lposix · lqd · lrandom · lstrip · ltokens · lua2c · luac.lua · luuid · lv3 · lxml · mav · srlua · tokenf

Most of these tools are now available for Lua 5.2. The remaining 5.1 versions should work just fine with Lua 5.2 if you build Lua 5.2 with LUA_COMPAT_ALL or just LUA_COMPAT_MODULE. (These are the default settings.) In this case, you may need to compile my libraries with -DLUA_COMPAT_MODULE as well.


Lua.app – A precompiled Lua application for Mac OS X containing most of my modules and easy to adapt to other module collections. Read the announcement.
5.2

ae – A general-purpose arithmetic expression package for C programs based on Lua.
5.2 · 5.1 · 5.0 · 4.0

ctrace – A tool for tracing Lua API calls.
5.2 · 5.1 · 5.0 · 4.0

demo – The source of the Lua live demo.
5.1

lalarm – An alarm library for Lua based on POSIX alarm.
5.2 · 5.1 · 5.0 · 4.0

lascii85 – An ascii85 library for Lua.
5.2 · 5.1 · 5.0

lbase64 – A base64 library for Lua.
5.2 · 5.1 · 5.0

lbc – A simple self-contained arbitrary precision library for Lua based on GNU bc. See also lbn, lmapm, and lqd.
5.2 · 5.1 · 5.0 · 4.0

lbci – A bytecode inspector library.
5.2 · 5.1

lbn – A fast integer-only arbitrary precision library for Lua based on OpenSSL bn. See also lbc, lmapm, and lqd.
5.2 · 5.1

lcl – A command-line evaluator library that supports shell-like command lines and s-expressions.
5.1

lcomplex – A math library for complex numbers based on C99. See also lmathx.
5.2 · 5.1

ldumplib – A bytecode dumper for Lua 4.0.
4.0

lgdbm – A database library for Lua based on GNU dbm.
5.2 · 5.1 · 5.0 · 4.0
manual by Peter Billam

lgpc – A library for Boolean operations on polygons based on gpc.
5.2 · 5.1 · 5.0

lint64 – A library for 64-bit signed integer arithmetic.
5.2 · 5.1

linterval – An interval arithmetic library based on PROFIL/BIAS. Includes an implicit curve plotter.
5.2 · 5.1

lmapm – A complete arbitrary precision library for Lua based on MAPM. See also lbc, lbn, and lqd.
5.2 · 5.1 · 5.0 · 4.0

lmathx – An extension of the standard math library based on C99. See also lcomplex.
5.2 · 5.1

lmd5 – A message digest library for Lua based on OpenSSL. It supports MD2, MD4, MD5, SHA1, SHA2, RIPEMD160, MDC2.
5.2 · 5.1 · 5.0

loadlib – A dynamic loader for Lua 4.0.
4.0

lpack – A library for packing and unpacking binary data.
5.1 · 5.0 · 4.0

lpdf – A library for generating PDF documents based on PDFlib Lite. See also LuaHPDF.
5.2 · 5.1 · 5.0 · 4.0

lper – An experimental tool that allows a Lua state to persist across invocations of the interpreter. It uses LPSM.
5.1 · 5.0

lposix – A POSIX library for Lua. No longer maintained. See luaposix.
5.1 · 5.0 · 4.0

lqd – A high-precision mathematical library for Lua based on qd.
5.2 · 5.1

lrandom – A library for generating random numbers based on the Mersenne Twister.
5.2 · 5.1 · 5.0

lstrip – A tool for compressing Lua programs by removing comments and whitespace.
5.1

ltokens – A library for lexical analysis of Lua code based directly on the Lua lexer.
5.1 · 5.0

lua2c – A tool that converts Lua code into Lua API code in C.
5.1 · 4.0

luac.lua – A version of luac in pure Lua that supports require. Read the announcement.
5.1

luuid – A library for generating universally unique identifiers based on libuuid, which is part of e2fsprogs.
5.2 · 5.1 · 5.0

lv3 – A library for adding 3d vectors to Lua. Meant as a learning aid.
5.x

lxml – A library for parsing XML data into Lua tables based on expat.
5.2

mav – An experimental tool for memory allocation visualization.
5.1

srlua – A tool for building self-running Lua programs.
5.2 · 5.1 · 5.0
precompiled extended Windows versions by Daniel Quintela: 5.1 · 5.0.

tokenf – A token filter facility for Lua. See the talks at the Lua Workshops in 2005 and 2006.
5.1


Last update: Thu Feb 6 23:25:58 BRST 2014 by lhf.