Lua - Part 1

created Jun 1, 2017

lua-users.org/wiki useful pages:


"How to make a game from scratch using Lua and Löve"
https://github.com/SSYGEN/blog/issues/30
https://news.ycombinator.com/item?id=16404230

book:
"Creating Solid APIs with Lua"
https://www.safaribooksonline.com/library/view/creating-solid-apis/9781491986301/

"Build Android Apps in PicoLisp Without an Android SDK (picolisp.com)"
https://picolisp.com/wiki/?pilbox
https://news.ycombinator.com/item?id=17559265

This is similar to how LÖVE games work on Android [1], you download the app from the store and then load a .zip file of your game and it runs inside that. You can then make it into its own app and publish it to the store

https://bitbucket.org/MartinFelis/love-android-sdl2/wiki/FAQ_-FrequentlyAsked_Questions

https://love2d.org


string lib
http://lua-users.org/wiki/StringLibraryTutorial

Game development
https://github.com/SSYGEN/blog

Embedding Lua within Perl:
http://search.cpan.org/~vparseval/Inline-Lua-0.03/lib/Inline/Lua.pm

Collecting links.

I could use Lua to create programs related to embedded systems, web development, utilities, and gaming.

https://luapower.com

unit testing:
http://olivinelabs.com/busted/

https://news.ycombinator.com/item?id=14441492
http://midipixel.com/warlockstower/
https://haxe.org/

https://howl.io/ A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface. Built on LuaJIT and fully programmable using Lua or Moonscript.

https://github.com/leafo/etlua Embedded Lua templating

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

http://leafo.net/guides/parsing-expression-grammars.html
http://www.inf.puc-rio.br/~roberto/lpeg/

http://leafo.net/lapis/
http://moonscript.org/
http://openresty.org/

http://www.lua.org

https://en.wikipedia.org/wiki/Lua_(programming_language)

Programming in Lua, Fourth Edition Paperback – August 1, 2016 - i ordered it on Jun 1, 2017
https://www.amazon.com/exec/obidos/ASIN/8590379868/lua-home-20

http://www.lua.org/manual/5.1 - I bought the Lua 5.2 reference manual book from Amazon on Jun 1, 2017

http://moonscript.org

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

https://eev.ee/blog/2016/04/30/embedding-lua-vs-python/

https://eev.ee/blog/2016/05/25/under-construction-our-pico-8-game/

https://eev.ee/blog/2016/11/26/embedding-lua-in-zdoom/

http://luajit.org - "a Just-In-Time Compiler for Lua."

http://luajit.org/ext_ffi.html - "The FFI library allows calling external C functions and using C data structures from pure Lua code."

Jun 2, 2017

curl -R -O http://www.lua.org/ftp/lua-5.3.4.tar.gz
tar zxf lua-5.3.4.tar.gz
cd lua-5.3.4
make linux test

lua.c:82:31: fatal error: readline/readline.h: No such file or directory

https://stackoverflow.com/questions/23085076/readline-readline-h-file-not-found

https://github.com/jcjohnson/neural-style/issues/350

sudo apt-get install libreadline-dev

then make linux test worked

make install

vim hello.lua

-- hello.lua
-- the first program in every language
io.write("Hello world, from ",_VERSION,"!\n")

lua hello.lua

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

http://www.lua.org/doc/hopl.pdf

https://luarocks.org

https://luarocks.org/modules/hisham/luafilesystem

web framework

https://github.com/benglard/waffle

SSG

Luapress builds static blogs from markdown files
https://luarocks.org/modules/fizzadar/luapress

A simple, flexible static site generator based on plugins
https://luarocks.org/modules/gordonb/lettersmith

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

JSON

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

http://regex.info/blog/lua/json

https://github.com/rxi/json.lua [x]

https://github.com/harningt/luajson

https://luarocks.org/modules/luarocks/lua-cjson

web framework

A web framework for MoonScript & Lua
https://luarocks.org/modules/leafo/lapis

https://luarocks.org/modules/etiene/sailor


https://web.archive.org/web/20130820131611/http://stackoverflow.com/questions/38338/why-is-lua-considered-a-game-language

Languages rarely become popular simply on the merits of their technical features. Ruby languished for a decade, more or less, before people noticed it because of Rails. Lua would be a complete unknown without WoW's programming APIs. Lua is no more a "gaming" language than Ruby is a "web" language.


Learn Lua for iOS Game Development Paperback – December 17, 2012
https://www.amazon.com/exec/obidos/ASIN/1430246626/lua-docs-20

http://www.lua.org/gems/

http://www.onlamp.com/pub/a/onlamp/2006/02/16/introducing-lua.html

http://www.linuxjournal.com/article/9605

https://github.com/dibyendumajumdar/ravi

http://www.eluaproject.net/

http://luaforge.net/projects/

http://lua-users.org/

https://www.computerworld.com.au/article/260022/a-z_programming_languages_lua/?