Hacker News new | ask | show | jobs
Show HN: GYML – YAML syntax, JSON semantics, zero runtime dependencies (github.com)
1 points by jeeybee 109 days ago
YAML keeps surprising people in production. The Norway Problem (`NO` parsed as `False`). Silent duplicate key overwrites. The spec has 211 grammar productions. Most of that complexity exists to support features nobody wanted in a config file.

GYML is a strict subset of YAML. Valid GYML is always valid YAML. It keeps the block indentation syntax and pairs it with JSON's type semantics: one spelling for each type, no anchors, no aliases, no tags, duplicate keys are a hard error. From-scratch parser, no runtime dependencies, fully typed Python.

https://github.com/janbjorge/gyml