r/AskProgramming • • Aug 07 '26

Can i get feedback on mybinary serialization format?

Hello! I've been working on this document for a binary serialization format for a while now, its meant to use primarily for future personal projects once i have the time to write a parser for it, but in the meantime i want people to judge just how crazy I am :-D

Yes, I know this may suffer from a severe case of scope creep, or some might use an existing solution, but what's the fun in that?

Anyways, Here is the link: https://gist.github.com/ErrorDAR32/130f03e3eed484dcc703e5e30e27614f

If this is not the right place to ask for feedback, please let me know! Im new to sharing stuff on the internet in general.

1 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/ErrorDAR32 Aug 08 '26

i agree, and i commend you for knowing how to comunicate haha., i did say from the beggining this is likely feature creeped hard. but yeah, i do plan to use many, but not all of the features, the main thing all this complex self describability allows as you said debbuging, but also to allow compile time and run time systems to interact, because i 100% agree with you that type information is meaningless if the program gets compiled with it

and actually you gave me some ideas to tweak the format, maybe even simplify it a bit, ill keep the gist updated lol

1

u/MrJCraft Aug 08 '26

yeah having some debuggers visualizers for the format would be quite nice
and having it work across multiple languages and have it auto translate to that languages native numbers or keep them byte compatible etc...

you could also try to verify some types and harden against attackers for networking
because you are storing so much more type info you could make a library to verify types at runtime.

because the type information is actually available at runtime there is ALOT you can do its just alot of work as well, especially cross language support