Warning
This post was published 108 days ago. The information described in this article may have changed.
I want to program weak embedded devices, so I want to use binary files as input data. So there is no need for expensive complicated parsing. Meaning: No Text-Files of any kind (XML, JSON, etc.).
But XML & JSON have been such a huge success because they're kind of self-documenting and easy to read - by humans. Still: Like Garbage Collection, this comfort doesn't come for free. One of the reasons Rust exists: You can't just always ignore Garbage Collection as "it's not thaaat expensive".
But the only way to document a binary file-format in a standardized way I know is DFDL. Where is no big support in Rust and in general. I tried a whole day to get a good workflow with DFDL, but couldn't, and I still miss good IDE support.
I then thought: What binary data format is (almost) universally supported, in almost every programming language? Answer: SQLite. Think about it:
But still: While it fits all my criteria, it doesn't feel right to use a DB for that. So, if you see flaws in my thoughts, please, tell me what they are and sell me a better solution.
1 post - 1 participant
🏷️ rust_feed