dlhn icon indicating copy to clipboard operation
dlhn copied to clipboard

Header should contain property names?

Open timfish opened this issue 2 years ago • 1 comments

This is great. I love how the header is optional to keep the data size small when the format is known and compile time!

DLHN is a language and platform neutral binary serialization format. It is designed for blazing fast serialization and deserialization with the smallest possible data size without the need for schema file.

If I wanted to create a parser, for example for JavaScript with no schema file, the header does not contain enough information to allow me to reconstruct the object as property names would be required.

timfish avatar May 08 '23 09:05 timfish

Thank you for your valuable feedback. Currently, the DLHN header does not contain property names. However, we understand the benefits of having property names or property numbers in the header, especially for parser development in languages like JavaScript. We are considering an extension to the specifications that would allow the inclusion of property names or numbers in the header in the future.

otake84 avatar May 11 '23 16:05 otake84