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

Created 1mo | Jan 31, 2025, 10:10:19 AM


Login to add comment

Other posts in this group

Show HN: Leaflet.pub – a web app for creating and sharing rich documents

Hi HN!

For the last 8 months we've been working on leaflet.pub, a web app for making delightful documents. We're trying to strike a balance between Notion and Google Docs — very fast, ultralight

Mar 5, 2025, 10:30:13 PM | Hacker news
Show HN: Beating Pokemon Red with RL and <10M Parameters

Hi everyone!

After spending hundreds of hours, we're excited to finally share our progress in developing a reinforcement learning system to beat Pokémon Red. Our system successfully completes th

Mar 5, 2025, 8:20:12 PM | Hacker news