Lua - Part 3

Tamale: An Erlang-Style Pattern-Matching Library for Lua

Dynamic routing/vhosts with nginx + Lua + Redis

Show HN: LuaGB – A Gameboy emulator written in pure Lua

Show HN: Superset of Lisp and Lua Programming Language, a la JSX

Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust

Sandcat Browser – Chromium and Lua

ComputerCraft has turtles you can program in-game in lua.

leaf or leafo's contributions:

PICO-8 is a fantasy console for making, sharing and playing tiny games and other computer programs. When you turn it on, the machine greets you with a shell for typing in Lua commands and provides simple built-in tools for creating your own cartridges.

Sep 18, 2017

installing on my home linux computer.

curl -R -O <a href=""></a>
tar zxf lua-5.3.4.tar.gz
cd lua-5.3.4
make linux test

received error:

fatal error: readline/readline.h: No such file or directory

searched and found this linux mint thread:

that pointed to this post:

sudo apt-get install libreadline6 libreadline6-dev

re-ran make linux test and it worked.

then i did:

make linux install

the whereis lua command returned:

lua: /usr/local/bin/lua /usr/local/lib/lua

i installed Lua 5.3.4.

lua -v returned:

Lua 5.3.4  Copyright (C) 1994-2017, PUC-Rio

Learn how you can build APIs by integrating the Lua and C programming languages. These APIs can be used to speed up development within your company, allow people to customize your app or game, and serve as the foundation of a domain-specific language within a platform you’re developing.

Author Tyler Neylon—a game designer with a PhD in applied math—shows you how C and Lua interface with each other, so you can create a set of Lua classes and functions that work programmatically with local applications. You’ll also learn how to guard against shady scripts written by users who either make mistakes or purposefully attempt to break your system.

lua in the web browser
lua vm written in javascript

December 2017

Most Downloaded(This week)

lua-cjson by OpenResty — downloads: 1,348,508
Fast JSON encoding/parsing support for Lua

lua-geoip by agladysh — downloads: 961,520
Bindings for MaxMind's GeoIP library

LPeg by gvvaughan — downloads: 835,575
Parsing Expression Grammars For Lua

LuaFileSystem by hisham — downloads: 822,932
File System Library for the Lua Programming Language

LuaSocket by luarocks — downloads: 817,754
Network support for the Lua language

Install luarocks

lua's package manager:


tar -xvzf luarocks-2.4.3.tar.gz

cd luarocks-2.4.3


make build

make install

Install Lua module

Want to install LuaSocket library found at

luarocks install luasocket



local http=require'socket.http'
body,c,l,h = http.request('')
print('status line',l)

post req

may need to experiment with this some day: