vitrivr / cineast

Cineast is a multi-feature content-based mulitmedia retrieval engine. It is capable of retrieving images, audio- and video sequences as well as 3d models based on edge or color sketches, textual descriptions and example objects.
MIT License
57 stars 50 forks source link

Support a simpler config file format #385

Open x4e-jonas opened 1 year ago

x4e-jonas commented 1 year ago

JSON is hard to read and write for humans. E.g. you can't just diff/merge lines of config and it does not support comments.

I'd suggest TOML since it's a very simple standardized format and Java implementations are already available. Other candidates are YAML, INI or HCL like formats.

lucaro commented 1 year ago

While the JSON standard does not include comments, many parsers, including the one cineast uses, support C-style comments, so you can use comments if you want. TOML could potentially be an alternative if one wanted. I'm not a bit fan of INI and YAML, as they are somewhat limited and/or cumbersome. There's also HOCON which, being a superset of JSON would have the advantage that configurations would even stay backwards compatible.