The pages here are related to Lua programming techniques which could be suitable
for use in virtually any program. The directory covers several kinds of
programming styles, paradigms and design patterns, as well as some low-level
algorthims.
Programming Paradigms
- Module Programming
- ModulesTutorial - creating and using Lua modules
- TheEssenceOfLoadingCode - the ways of loading external code in Lua
- ModuleExecutionProposal - new command-line switch
-p
to run package module as a script
- Customized Definitions and Loaders
- Namespace Arrangement
- ModuleReview - an effort for classification, quality assurance, and standartization of existing Lua modules
- LuaSearch - an effort to provide a centralized locater of Lua modules and documentation (like CPAN)
- StandardLibraries -
std
namespace: os, io, getopt, string, regex, xml, list/set/table, object, and math modules
- LuaRocks - rocks namespace: an open set of self-contained packages with dependency info
- Object-oriented Programming
- Declarative and Functional Programming
- CurriedLua - currying functions in Lua
- FunctionalLibrary - porting several convenient functional utilities form Haskell, Python, etc.
- ShortAnonymousFunctions - expressing anonymous functions more tersely than function() return ... end
- Data Structures
- Memoisation and Lazy Evaluation
- RandomSample - lazy tables, a simple illustration of lazy evaluation (design pattern)
- FuncTables - memoization of functions using callable tables (design pattern, code, and tutorial)
- HammingNumbersVariant - enumerate hamming numbers, with lazy list (function)
- Functional Text Processing
- FiltersSourcesAndSinks - discusses chaining of filters, which are functions that accept successive chunks of input, and produce successive chunks of output
- GenericInputAlgorithms - functional, AWK-style text processing in Lua
- Concurrent and Event-driven Programming
- Source Preprocessing and Metaprogramming
Design Patterns, Programming Techniques, Code Structure
- Error and Exception Handling
- Operator Overloading
- Miscellaneous
- Conventions and Discussions
Algorithms
- OptimizedSampleCode - best known algorithms that perform the specified tasks
- Data Structures and Types
- Searching, Sorting, Traversal, Iterators
- Ordering Iterators
- Sorting
- LazySort - sort only as much of a table as is necessary (function and tutorial)
- LuaSorting - a sample shellsort implementation in pure Lua (function)
- Search in sorted arrays
- BinarySearch - searches for a value in a sorted array via a binary search algorithm (function)
- BinaryInsert - inserts a value into a sorted array via a binary search algorithm (function)
- InterpolatingSearch - searches for a value in a sorted array via an interpolating search algorithm (function)
- String Manipulation
- CommandLineParsing - approaches to command-line parsing in Lua
- RandomStrings - generate random strings from defined char sets (function)
- To-string conversion and output
- Text Processing and Encoding
- Numbers
- IntegerDomain - calculates the actual limits for integer numbers which can be exactly represented by Lua (function)
- FormattingNumbers - format numbers in monetary format (function)
- ReadWriteFormat - a way to pack/unpack integer values into a binary string (functions)
- SimpleRound - round number to N decimal places (functions)
- Mathematics
- Time and Date
- Filesystem
See also
- LuaDomains - application-field specific approaches, techniques, and modules
- LuaCoding - code creating, building, binding, testing, optimizing, maintaining, and sharing
- LuaAddons - a directory of "things for Lua" that are outside this site
- LuaLinks - a directory of external Lua links including articles, tutorials, and comparisons
RecentChanges · preferences
edit · history
Last edited February 5, 2012 1:19 pm GMT (diff)