Show HN: Ldump – serialize any Lua data

Some time ago, I was implementing saves for my LOVE2D game. I wanted to do a full dump of the game state -- which included closures (AI), complex graphs, sets with tables as keys and also fundamentally non-serializable data (coroutines and userdata), that require user-defined serialization/deserialization logic. I went through every Lua serialization library -- none covered all data types/cases. So I wrote my own.

It is a polished version, thoroughly annotated, tested and documented. It is made to be as functional and customizable as possible (or at least I did everything I could think of). I would be happy to hear suggestions/corrections for both code and documentation -- even nitpicky ones.


Comments URL: https://news.ycombinator.com/item?id=42886079

Points: 5

# Comments: 0

https://github.com/girvel/ldump

Creato 1mo | 31 gen 2025, 10:10:19


Accedi per aggiungere un commento

Altri post in questo gruppo

Show HN: In-Browser Graph RAG with Kuzu-WASM and WebLLM

We show the potential of modern, embedded graph databases in the browser by demonstrating a fully in-browser chatbot that can perform Graph RAG using Kuzu (the graph database we're building) and W

10 mar 2025, 16:10:15 | Hacker news
Show HN: Editable Games

I made an animation programming language that you can type into a textarea. I make little games with it. Now other people can customize the games I make with it.

I've been working on canvas lang

10 mar 2025, 16:10:14 | Hacker news