otake84 / dlhn

DLHN implementation for Rust
https://dlhn.org
Apache License 2.0
165 stars 6 forks source link

Header should contain property names? #6

Open timfish opened 1 year ago

timfish commented 1 year ago

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.

otake84 commented 1 year ago

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.