Developers flag precision and clarity issues in the spec
6 Nov 2 3:52 PM · 9d ago · 4 comments · 1 source · development 6 of 7
Multiple commenters point out that the 'what you see is what you get' claim about floats is inaccurate due to IEEE 754 representation, and request clearer documentation of how SOML differs from TOML upfront rather than burying comparisons at the end.
“So what you see is not what you get, and it's also unclear what exactly you'll get.”
layer8Sindre Sorhus SOML creator
The whole story articlespostscomments the bright band is this development · numbered dots are the others · click one to jump
What people said 5 voices · verbatim
-
> durations like 30s are real values, so nobody has to guess the unit of timeout: 30Pet peeve of mine, but I would argue that it's better to always keep units baked into the key.If you have: timeout_s: 30 Then unit information will never be lost, because the unit is always marshalled as a part of the key name and you don't have to worry if the…
-
> what you see is what you get: […] '10.20' and 10.20 are a string and a float, exactly as written.This seems both underspecified and incorrect. Assuming a single-precision binary IEEE 754 floating-point number, 10.20 is actually 10.19999980926513671875. With double precision, it would be 10.199999999999999289457264239899814128875732421875. So…
-
Feedback:1. You should mention TOML in your first paragraph. "Why not TOML" exists at the end2. 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…
-
> no key needs quotes> 'the name': 'quotes are the escape hatch, when a key needs spaces'To quote David Fincher:> They know you have computers and can show a Tyrannosaurus Rex eat a car, so they know you can do anything. The question is: what don't you do, not what do you do.Constraints liberate; I wish people tended to more strictness. I had…
-
Gotta be honest, any time there's a solution like there that makes it more "human" they've just removed the structure / syntax.I'm guessing so you don't need to learn them, so then anyone off the street can edit the files, but it will break so bad without those guardrails, usually in some non-obvious way.Leading us back to inventing some new…
All 7 developments of Sindre Sorhus launches SOML, a config format blending JSON… →
MastodonHacker NewsNewswires