[HN Gopher] Abusing Conda's Turing-Complete YAML Comments
___________________________________________________________________
Abusing Conda's Turing-Complete YAML Comments
Author : bo0tzz
Score : 22 points
Date : 2024-02-24 11:14 UTC (1 days ago)
(HTM) web link (astrid.tech)
(TXT) w3m dump (astrid.tech)
| ghuntley wrote:
| Another entry for https://noyaml.com
| woodruffw wrote:
| I don't think this really has anything to do with YAML; Conda
| appears to have defined a bespoke semi-DSL in comments rather
| than encoding it in YAML itself. They could have done this in
| any configuration language that supports comments. That doesn't
| make it any less cursed, of course.
|
| (If I'm reading this correctly, they may have their own "YAML"
| parser entirely -- multiple keys with different values
| shouldn't be distinctly represent-able in a normal YAML
| document, at least not after parsing.)
| anamexis wrote:
| > (If I'm reading this correctly, they may have their own
| "YAML" parser entirely -- multiple keys with different values
| shouldn't be distinctly represent-able in a normal YAML
| document, at least not after parsing.)
|
| I don't think they have their own YAML parser - the
| preprocessor just strips out lines whose magic comments
| return False.
| woodruffw wrote:
| I can't tell if that's better or worse :-)
___________________________________________________________________
(page generated 2024-02-25 23:01 UTC)