Lua - Part 10

Lua low level binding to libuv

Related projects
lluv-ssl - SSL/TLS sockets for lluv library
lluv-websocket - Websocket sockets for lluv library
lluv-redis - Redis client for lluv library
lluv-memcached - Memcached client for lluv library
lluv-ftp - FTP client for lluv library
lluv-poll-zmq - ZMQ poller for lluv library
lluv-rs232 - Serial port communication library for lluv library
lluv-gsmmodem - Control GSM modem connected to serial port using AT commands.
lua-gntp - lluv connector to Growl notification system
lluv-esl - FreeSWITCH ESL implementation for lluv library
lluv-curl - Make asyncronus requests using libuv and libcurl
lluv-pg - PostgreSQL client for lluv library
lluv-busted - Support async tests for lluv library using busted
lluv-qless - Binding for qless - queue / pipeline management system
lluv-pegasus - Simple HTTP server based on pegasus.lua library

Cross-platform asynchronous I/O

Libuv is a multi-platform support library with a focus on asynchronous I/O. It was primarily developed for use by Node.js, but it's also used by Luvit, Julia, pyuv, and others.

Luvit implements the same APIs as Node.js, but in Lua!

This helps teams migrate without having to learn a new way of programming.



A Lua client library for the redis key value storage system.


You can use following command to get a list of modules with

nginx -V 2>&1 | tr -- - '\n' | grep module

iOS 12 uses Lua code downloaded from Apple's servers (

Fun fact: some of the predictive stuff on iOS 12 is based on Lua code downloaded from Apple's servers, which means the behavior can be updated without the need for a full OS update - 45 comments

image of code


apt-get install libxml2-dev
apt-get install libxml2
luarocks install lua-xmlreader

not working.

typed up the script in the above post, but got the error:

lua: error loading module 'xmlreader' from file '/usr/local/lib/lua/5.3/':
    /usr/local/lib/lua/5.3/ undefined symbol: luaL_checkint

i think that xmlreader is not updated to work with lua 5.3.

ignore xmlreader and use expat to parse xml.

local lxp = require "lxp"

if the xml file is an rss or atom file, then use feedparser, since it's built for rss and atom files. generic xmls, then use lxp.

Aug 30, 2018

luarocks install lunatest

Lunatest is an xUnit-style, Lua-based unit testing framework with additional support for randomized testing (a la QuickCheck).

It's largely upwardly compatible from lunit, with the following changes:

Aug 30, 2018 - plan to make lua-memcached module work in lua 5.3.