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

Établi 5mo | 31 janv. 2025, 10:10:19


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano)

Chrome now includes a native on-device LLM (Gemini Nano) starting in version 138. I've been building with it since it was in origin trials, it's powerful but the official Prompt API is still a bit

6 juil. 2025, 21:50:14 | Hacker news
I extracted the safety filters from Apple Intelligence models

I managed to reverse engineer the encryption (refered to as “Obfuscation” in the framework) responsible for managing the safety filters of Apple Intelligence models. I have extracted them into a r

6 juil. 2025, 21:50:11 | Hacker news