Hacker News new | ask | show | jobs
by tln 33 days ago
Feedback:

1. You should mention TOML in your first paragraph. "Why not TOML" exists at the end

2. how often are "instants"/dates really specified? Are you baking this in for TOML parity?

If you want leaner, drop this. If nothing else it's a lot of grammar.

If you want to lean in to "A value's type comes from its syntax", I'd suggest taking a cue from postgres and JS -- extensible literals. With JS tagged literals it would look like date`2026-09-19T14:00:00Z`. Conforming readers can fall back.

I'd use ver`3.1.0` 1000x more in config files than dates... I do like durations being baked in though.

Solid improvements over TOML and YAML.

2 comments

Instants are important if you migrate something, like TLS certificates, data flows, etc. ISO-8601 is widely adopted, unambiguously interpreted, human-friendly format for that. I see no reason to not have it.
Is this format for data or for config?

The reason for not having is simply a matter of specification size. ISO-8601 is full of weirdness! SOML's date spec is reasonable looking but there is still a lot of nuance.

Having durations is nice and instants are highly complementary. My feedback is just that if lots of literal formats are desired, maybe an extensible literal format!

It's almost like there is another half of the language missing, the one which describes a schema to validate the config against.
It's as much as a YAML fork as a TOML fork. I think each are emphasized the right amount.