Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I recommend this instead of complicated standard yaml:
https://hitchdev.com/strictyaml/
Has anyone taken a look at Cue who can share any experiences?
https://cuelang.org/
It's mentioned on the site as an alternative to Yaml. Recently watched (~half of) this intro to it: https://youtu.be/fR_yApIf6jU
It used an off-the-shelf library, I don't remember which one anymore. I don't think it really matters though -- YAML is a format, not a parser.
Per the YAML docs [0], "Creating a fully compliant parser has proven almost impossible." Pretty much every YAML parser out there is going to have its own idiosyncratic subset that it handles. That doesn't make them not-YAML.
(This does make YAML a horrible data exchange format. No argument there!)
[0]: https://github.com/yaml/yaml-grammar
After evaluating several config file formats, I settled on JSON5 for work projects. Only issue for me is that sublime text doesn't have highlighting for it, though the hjson highlighting from package control works well enough. I should write one for JSON5...
Ironically the file format for sublime highlighting plugins is in YAML.
https://github.com/hjson/sublime-hjson/blob/master/Hjson.sub...
Related posts
- Funniest line of code you wrote while making a game?
- Show HN: DTL: a language and JavaScript lib to transform and manipulate data
-
yaml-cpp VS rapidyaml - a user suggested alternative
2 projects | 5 Feb 2022
- how to build a JSON parser?
- CMake proposal: Unified way of describing dependencies of a project