This is a book on Lua; it discusses basic programming paradigms found in many language and it also goes and discusses how memory works and how memory is allocated in Lua.
Discusses many different programming paradigms that can be executed inside a procedural language such as Lua. Page 16 and further discusses how to make a language that handles endianess and byte operations in a procedural language.