[–] 4 points 8 months ago

Well, TOML is essentially just an extension of the INI format (which helped its adoption quite a bit, since you could just fork INI parsers for all kinds of programming languages).

And then, yeah, flattening everything is kind of baked into INI, where it arguably made more sense.
Although, I do also feel like non-techies fare better with flat files, since they don't have to understand where into the structure they have to insert the value. They just need find the right "heading" to put the line under, which is something they're familiar with.

  • source
  • parent
  • context
  • [–] 29 points 8 months ago (3 children)

    Not-so-fun fact: if you're transferring a yaml or toml file and the transfer is incomplete, the receiving app may not even know! Yaml and toml both have a good chance of being apparently valid when cut off randomly. This doesn't impact JSON because of the enclosing {} or [].

  • source
  • [–] 23 points 8 months ago (15 children)

    I've never gotten to be good friends with toml. I've never liked that the properties of some thing can be defined all over the place, and I've definitely never liked that it's so hard to read nested properties. JSON is my friend.

  • source
  • [–] 7 points 8 months ago (1 child)

    If the pattern is that each word is rewritten in a distorted but phonetically similar way:

    continuously merged → continvoucly morged

    Then applying the same playful distortion style to slop, a similar transformation would be:

    slop → slofp

    Thanks slofp-GPT.

  • source
  • parent
  • context
  • [–] 13 points 8 months ago (1 child)

    We could probably improve on that significantly without losing speed.

    return $x < 8
    

    That should yield one additional correct answer, while also confusing anyone who thinks it just returns false.

    And if we just hard coded and checked the first 20 or so primes before always returning false, we would probably get noticeable improvement (depending on the total range).

  • source
  • view more: ‹ prev