ldump: A Lua Serializer for Complex Data Structures
2025-01-31
ldump is a robust Lua serializer capable of handling complex data structures, including circular references, functions (even with upvalues), metatables, coroutines, and userdata. It serializes data into executable Lua code, deserialized via `load(data)()`. ldump prioritizes functionality and flexibility over speed and size, making it ideal for scenarios requiring saving complex game states. While the output is large, modern compression algorithms can significantly reduce its size. It supports Lua 5.1 to 5.4 and LuaJIT, and has been tested extensively for edge cases.
Development