Using os.time, os.date, os.difftime, UTC formatting, and calendar arithmetic in Lua.
Software notes and practical experiments
This is the English entry point to Nanfeng's development blog. The archive currently contains Chinese-language technical notes; English translations will be published progressively.
Pattern Matching in Lua
Searching, capturing, replacing, and iterating over text with Lua patterns.
Understanding Closures in Lua
Lexical scope, captured variables, higher-order functions, callbacks, and closure pitfalls in Lua.
Control Structures in Lua
Conditions, while and repeat loops, numeric and generic for loops, break, return, and goto in Lua.
Local Variables and Blocks in Lua
Lexical scope, local declarations, shadowing, blocks, and variable lifetime in Lua.
Input and Output in Lua
Reading and writing files with Lua's simple and complete I/O models.
Functions in Lua
Definitions, multiple returns, variadic arguments, named arguments, recursion, and tail calls in Lua.
Working with Tables in Lua
Creating, indexing, iterating, inserting, removing, sorting, and comparing Lua tables.
Strings in Lua
String literals, immutability, concatenation, conversion, library functions, bytes, and UTF-8 in Lua.
Numbers and Arithmetic in Lua
Integer and floating-point values, operators, conversions, ranges, random values, and precision in Lua.