Lua - yszheda/wiki GitHub Wiki
Source code trace
- http://lua-users.org/wiki/LuaSource
- http://lua-users.org/wiki/LuaSourceTable
- http://www.codingnow.com/temp/readinglua.pdf
- http://www.hoterran.info/lua-metatable-sourcecode-and-use-1
- https://github.com/lichuang/Lua-Source-Internal
suggestions
- https://www.zhihu.com/question/20617406
- http://lua-users.org/lists/lua-l/2009-10/msg00679.html
- http://del.icio.us/adnamin/lua+source
- https://www.reddit.com/comments/63hth/ask_reddit_which_oss_codebases_out_there_are_so/c02pxbp
- http://www.codedump.info/?p=464
nan trick
- http://lua-users.org/lists/lua-l/2011-07/msg00148.html
- http://onesmash.github.io/2013/08/13/lua-nan-trick/
- http://markof.ninja/lua-nan-trick
- http://www.360doc.com/content/14/0114/21/9200790_345325432.shtml
- http://blog.codingnow.com/2012/11/dev_note_28.html
coroutine
-
http://wiki.roblox.com/index.php/Beginners_Guide_to_Coroutines
-
http://suresh-anothernetprogrammer.blogspot.com/2014/03/coroutine-in-lua-consumer-driven.html
quickx
SandBox
env
- http://blog.codingnow.com/2011/12/lua_52_env.html
- http://lua-users.org/wiki/EnvironmentsTutorial
- http://stackoverflow.com/questions/14290527/recreating-setfenv-in-lua-5-2
- http://stackoverflow.com/questions/9540732/loadfile-without-polluting-global-environment
HTTP client
-
http://stackoverflow.com/questions/8286677/https-request-in-lua
-
http://pyfpdf.readthedocs.io/projects/wiki/en/latest/language/lua/http.html
-
http://kracekumar.com/post/55856724724/http-request-examples-for-luasocket
-
http://stackoverflow.com/questions/25389657/lua-routine-to-decode-query-argument
Lua socket
- http://stackoverflow.com/questions/5795419/lua-socket-asynchronous-calls
- http://stackoverflow.com/questions/18954977/lua-socket-http-loads-fine-from-example-script-but-does-not-load-from-third-par
lang
require
-
http://stackoverflow.com/questions/9145432/load-lua-files-by-relative-path
-
[nginx]http://blog.csdn.net/langeldep/article/details/8289199
index
gc
nil
in table
- http://lua-users.org/wiki/StoringNilsInTables
- http://stackoverflow.com/questions/12394841/safely-remove-items-from-an-array-table-while-iterating
variable num of arguments
- https://www.lua.org/pil/5.2.html
- http://stackoverflow.com/questions/7183998/in-lua-what-is-the-right-way-to-handle-varargs-which-contains-nil
select
- http://emmanueloga.com/2010/12/09/lua-select.html
- http://lua-users.org/lists/lua-l/2006-12/msg00194.html
package
- http://lua-users.org/lists/lua-l/2011-11/msg00486.html
- http://stackoverflow.com/questions/18151286/how-to-organize-lua-module-path-and-write-require-calls-without-losing-flexibi
- http://stackoverflow.com/questions/5761229/is-there-a-better-way-to-require-file-from-relative-path-in-lua
- http://stackoverflow.com/questions/9145432/load-lua-files-by-relative-path
string to table
- http://stackoverflow.com/questions/3518903/string-to-table-in-lua
- http://stackoverflow.com/questions/15412537/convert-string-to-table-in-lua
- http://stackoverflow.com/questions/20423406/lua-convert-string-to-table
upvalue
- http://lua-users.org/lists/lua-l/2012-01/msg00323.html
- http://hqwrong.github.io/2015/02/05/lua_upvalue.html
- https://www.lua.org/pil/27.3.3.html
list comprehensions
- http://stackoverflow.com/questions/14672350/lua-language-how-use-something-similar-to-python-list-comprehensions
- http://lua-users.org/wiki/ListComprehensions
require
-
http://stackoverflow.com/questions/30305270/lua-how-to-detect-unused-require
-
http://stackoverflow.com/questions/6902059/lua-how-require-works
-
http://stackoverflow.com/questions/9102931/can-lua-support-case-insensitive-method-calls
windows
- http://lua-users.org/lists/lua-l/2015-07/msg00419.html
- http://lua-users.org/lists/lua-l/2012-09/msg00434.html
- http://superuser.com/questions/266110/how-do-you-make-windows-7-fully-case-sensitive-with-respect-to-the-filesystem
read input
- http://www.lua.org/pil/21.1.html
- http://stackoverflow.com/questions/1815163/lua-get-command-line-input-from-user
random
- http://stackoverflow.com/questions/17784489/randomseed-in-lua
- http://stackoverflow.com/questions/18052129/random-number-repeating-in-lua
metatable
function overloading
char computation
- http://www.computercraft.info/forums2/index.php?/topic/5869-lua-try-to-convert-letters-to-numbers-solved/
- http://stackoverflow.com/questions/23120266/lua-advancing-to-the-next-letter-of-the-alphabet
string trim
unpack
- http://stackoverflow.com/questions/22433839/how-to-unpack-table-into-function-arguments
- http://blog.codingnow.com/2008/08/compile_time_calculation_in_lua.html
- http://www.cnblogs.com/stephen-liu74/archive/2012/03/21/2410300.html
require
/ module
- http://stackoverflow.com/questions/6902059/lua-how-require-works
- http://stackoverflow.com/questions/9145432/load-lua-files-by-relative-path
- http://stackoverflow.com/questions/21416798/lua-global-variable-containing-path-to-current-file
- http://stackoverflow.com/questions/21416798/lua-global-variable-containing-path-to-current-file
- http://lua-users.org/wiki/ModulesTutorial
Trouble-shooting
more than 60 upvalues
- http://stackoverflow.com/questions/12045077/function-at-line-xxx-has-more-than-60-upvalues
- http://www.wowinterface.com/forums/showthread.php?t=22340
invalid order function for sorting
- http://www.zhazhaniu.com/?p=198
- http://www.cnblogs.com/ghost240/archive/2013/04/08/3008587.html
- http://www.cnblogs.com/slysky/p/5360387.html
- http://stackoverflow.com/questions/2102710/treating-nils-in-sort-function
- http://lua-users.org/lists/lua-l/2008-04/msg00099.html
- http://stackoverflow.com/questions/19060069/table-sort-in-lua-dont-understand-this-code