I just added this page so there would be somewhere for people to go to if they look at the code sample I added. You can often find me on [irc://irc.freenode.net/#lua][1] Or you can email me at my new eponymous domain (thanks, Ash!): [mailto:rici@ricilake.net][2] ### Code samples * [ExtendingIdentifierCharacters][3] (Lua 5.1) * [Files:wiki_insecure/users/rici/lfunclib.c][4] Function Metatable Library (Lua 5.1) * [LazySort][5] (Lua 5.1) * [HammingNumbers][6] (Lua 5.1) * [OrderedTable][7] (Lua 5) * [SplayRopes][8] (Lua 5 with a small tuple library) * [SimpleStringBuffer][9] (Lua 5) * [SimpleLuaPreprocessor][10] (Lua 5) * [StringRecipes][11] (Lua 5) (some useful string.find patterns, and other stuff) * [AsciiMenu][12] (Lua 5) (how to get rid of : calls) * [FuncTables][13] (Lua 5) (includes Memoise and a 99 Bottles of Beer implementation) * [AutomagicTables][14] a la Perl (Lua 5) (with a lot of thanks to [ThomasWrensch][15]) * [BoundScalarGlobalsOne][16] and [BoundScalarGlobalsTwo][17] (Lua 5) * [TableFuncs][18] and [TableFuncsTwo][19] (Lua 5) * [FunctionalTuples][20] (Lua 5) * [Files:wiki_insecure/users/rici/blex.lua][21] BLex lexer (Lua 5) * [Files:wiki_insecure/users/rici/parser.tgz][22] (code and configuration to lex and colourise Lua, including output) (Lua 5) * [Files:wiki_insecure/users/rici/heap.lua][23] and [Files:wiki_insecure/users/rici/pq.lua][24] Heap/Priority Queue implementations. Let me know if they don't work for you (Lua 5) * [VectorGlue][25] (Lua 4) ### Essays * [UserDataEnvironmentExamples][26] * [EnvironmentTables][27] * [GarbageCollectingWeakTables][28] * [UserDataRefinement][29] ### Lua Enhancements **Lua 5.1:** * [UserDataRefinement][29] * [YieldableForLoops][30] A simplified reimplementation of the forpatch (below) for 5.1work6 * [GeneralizedPairsAndIpairs][31] (Could be modified to work in 5.0.2 with the compatibility library) **Lua 5.0:** * [Files:wiki_insecure/users/rici/forpatch.diff][32] A patch to Lua 5.0.2 which allows iterator functions to yield to a scheduler. Also changes the semantics of for loops so that the control variables are bound within the loop rather than within the for statement itself, and includes the hack to call the traceback function from coroutines. **Lua 4.0:** * [ExtendingForAndNext][33] (Now mostly outdated by Lua 5) ### Miscellaneous * [LuaEnCastellano][34] (en construcción) ### Chat and Messages Thanks for the updates to [LuaUnicode][35], I obviously didn't have my head screwed on properly when burbling on about how UTF-8 works thanks for setting it streight. I'd been meaning to ask you to take a look at it. It's now looking pretty sharp don't you think? -- [DavidJones][36] [1]: irc://irc.freenode.net/#lua [2]: mailto:rici@ricilake.net [3]: ExtendingIdentifierCharacters.html [4]: http://lua-users.org/files/wiki_insecure/users/rici/lfunclib.c [5]: LazySort.html [6]: HammingNumbers.html [7]: OrderedTable.html [8]: SplayRopes.html [9]: SimpleStringBuffer.html [10]: SimpleLuaPreprocessor.html [11]: StringRecipes.html [12]: AsciiMenu.html [13]: FuncTables.html [14]: AutomagicTables.html [15]: ThomasWrensch.html [16]: BoundScalarGlobalsOne.html [17]: BoundScalarGlobalsTwo.html [18]: TableFuncs.html [19]: TableFuncsTwo.html [20]: FunctionalTuples.html [21]: http://lua-users.org/files/wiki_insecure/users/rici/blex.lua [22]: http://lua-users.org/files/wiki_insecure/users/rici/parser.tgz [23]: http://lua-users.org/files/wiki_insecure/users/rici/heap.lua [24]: http://lua-users.org/files/wiki_insecure/users/rici/pq.lua [25]: VectorGlue.html [26]: UserDataEnvironmentExamples.html [27]: EnvironmentTables.html [28]: GarbageCollectingWeakTables.html [29]: UserDataRefinement.html [30]: YieldableForLoops.html [31]: GeneralizedPairsAndIpairs.html [32]: http://lua-users.org/files/wiki_insecure/users/rici/forpatch.diff [33]: ExtendingForAndNext.html [34]: LuaEnCastellano.html [35]: LuaUnicode.html [36]: DavidJones.html