SOML – A Config Format for Humans github.com · 39 points · 20 comments · HN thre...
HN Best 200 @best
SOML – A Config Format for Humans github.com · 39 points · 20 comments · HN thread
TL;DR SOML is a draft config file format, named as a joke expansion of 'Sindre's Objectively Marvelous Language', that aims to be easier to write and read than JSON, YAML and TOML. It has bare keys, no required top-level braces, line breaks instead of commas, comments, typed dates, instants and durations, literal strings, and strict typing where the syntax, not the content, decides the type. The repository includes a spec, a comparison with other formats, and implementations in many languages.
- Top-level object needs no braces, keys need no quotes, and line breaks replace commas; # and /* */ comments are allowed wherever whitespace may go.
- A value's type comes from its syntax: '123' is a string, 123 is an int, 10.20 is a float, and unquoted words like 'no' are errors rather than booleans.
- Native date (2026-09-19), instant (2026-09-19T14:00:00Z) and duration (1m30s) types, so a timeout cannot be ambiguous about its unit.
- Strict rules: duplicate keys, lone surrogates and out-of-range numbers are errors; ints are exact int64; there is one canonical form for hashing and signing.
- The spec argues against YAML's implicit typing and security issues (aliases, tags) and against TOML's table headers and dotted keys, and says a conformance suite of nearly 1000 cases backs its implementations.
- The format is marked as a draft spec, with a JavaScript reference implementation and libraries for Swift, Rust, Python, Go and others, plus editor and linter plugins.
Discussion The thread is a mix of cautious interest and skepticism. Several commenters find the duration type and the separation of int and float appealing, and a few note that TOML and INI already cover much of this ground. Others question the project's purpose and whether it needs to exist at all, with one saying the README reads as LLM-generated. Some technical criticisms focus on the TOML comparison, which one commenter says contains factual errors, and on missing pieces such as a schema, a float definition and support for tagged unions. The mood is mildly critical and curious rather than hostile.
- Useful additions: durations and strict typing (some): Commenters single out the first-class duration type and the no-implicit-typing rule as genuinely good ideas that fix YAML and TOML problems.
- TOML already works well; SOML adds little (some): Some argue TOML is already good and widely supported, and that a new format needs a strong reason to exist and wide library support.
- README reads as LLM-generated and oddly written (a few): One commenter says the project looks LLM-generated and wants a direct explanation of its purpose rather than a generated pitch.
- Comparison with TOML has factual errors (a few): A commenter corrects claims about Git config (it is INI-like, not TOML) and notes that TOML also needs quotes for literal dots.
- Missing: expressive types like tagged unions and function calls (a few): Some want key-value or function-call syntax for tagged unions and tuples, and point to Forma, a typed Lisp, as one approach.
- Unclear purpose and the title is confusing (a few): One commenter reads the title as being about configuring humans and says the project is not clearly explained.
Links from the comments