Lua - Part 3

Tamale: An Erlang-Style Pattern-Matching Library for Lua
https://github.com/silentbicycle/tamale
https://news.ycombinator.com/item?id=13930092

Dynamic routing/vhosts with nginx + Lua + Redis
https://github.com/spro/simon

Show HN: LuaGB – A Gameboy emulator written in pure Lua
https://news.ycombinator.com/item?id=14076198

Show HN: Superset of Lisp and Lua Programming Language, a la JSX
https://github.com/meric/l2l
https://news.ycombinator.com/item?id=14120957

http://leafo.net/posts/itchio-and-coroutines.html

Benchmark: Java, Python, PHP, C, JavaScript, Swift, Ruby, Perl, Go, Lua, Rust
http://benchmarksgame.alioth.debian.org/
https://news.ycombinator.com/item?id=14479193

Sandcat Browser – Chromium and Lua
http://www.syhunt.com/sandcat/index.php?n=About.Sandcat
https://news.ycombinator.com/item?id=14495729


https://news.ycombinator.com/item?id=14909897

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

http://computercraftedu.com

http://ludumdare.itch.io/


leaf or leafo's contributions:

https://luarocks.org/modules/leafo

https://github.com/leafo


https://nwat.xyz/blog/2018/03/13/video-of-my-talk-at-lua-workshop-2017/

https://www.lua.org/wshop17.html


https://www.lexaloffle.com/pico-8.php

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.


http://www.blog.distelli.com/single-post/2016/12/11/Using-Lua-for-Our-Most-Critical-Production-Code

Sep 18, 2017

installing on my home linux computer.

http://www.lua.org/download.html

curl -R -O <a href="http://www.lua.org/ftp/lua-5.3.4.tar.gz">http://www.lua.org/ftp/lua-5.3.4.tar.gz</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:

https://forums.linuxmint.com/viewtopic.php?t=244699

that pointed to this post:

https://linuxprograms.wordpress.com/2010/10/19/install-readline-linux/

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 Lua.org, PUC-Rio

https://www.safaribooksonline.com/library/view/creating-solid-apis/9781491986301

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
https://fengari.io/
https://news.ycombinator.com/item?id=15626796


https://www.tedunangst.com/flak/post/easy-gopher-lua-bridge
https://news.ycombinator.com/item?id=15851055

December 2017

https://luarocks.org

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:

wget http://luarocks.github.io/luarocks/releases/luarocks-2.4.3.tar.gz

tar -xvzf luarocks-2.4.3.tar.gz

cd luarocks-2.4.3

./configure

make build

make install

Install Lua module

Want to install LuaSocket library found at https://luarocks.org/modules/luarocks/luasocket

luarocks install luasocket

documentation
https://www.defold.com/ref/socket/

HTTP

http://w3.impa.br/~diego/software/luasocket/http.html

https://stackoverflow.com/questions/8286677/https-request-in-lua

https://github.com/brunoos/luasec/wiki
http://lua-users.org/lists/lua-l/2009-02/msg00251.html

http://lua-users.org/wiki/FiltersSourcesAndSinks

https://www.defold.com/ref/http/

get
https://stackoverflow.com/questions/6858500/lua-fetch-a-webpage
local http=require'socket.http'
body,c,l,h = http.request('http://w3.impa.br/~diego/software/luasocket/http.html')
print('status line',l)
print('body',body)

https://stackoverflow.com/questions/24575504/send-get-to-website-with-lua

post req
http://lua-users.org/lists/lua-l/2006-02/msg00014.html

http://lua-users.org/lists/lua-l/2008-07/msg00206.html

http://forum.micasaverde.com/index.php?topic=32035.0

https://stackoverflow.com/questions/17372330/lua-socket-post

http://w3.impa.br/~diego/software/luasocket/http.html#request

https://gist.github.com/lidashuang/6286723


https://github.com/JakobGreen/lua-requests


may need to experiment with this some day:

https://www.lua.org/wshop17/lua-http.html
https://github.com/diegonehab/luasocket/blob/master/src/http.lua
https://github.com/daurnimator/lua-http/
https://daurnimator.github.io/lua-http/0.2/

https://github.com/daurnimator/lua-http/blob/master/examples/server_hello.lua