Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
YAMLScript – Program in YAML (yamlscript.org)
17 points by noamtd on March 16, 2024 | hide | past | favorite | 22 comments


This should go on https://noyaml.com


As with many projects that bubble to the top of HN, I wish there was more justification of what problem this is trying to solve. Of course "just for fun" is a totally valid reason, but this seems to go beyond that and it's not clear to me why this is a better solution than existing languages.


Why do people want to code in YAML? Doesn’t seem like a very pleasurable experience


Because they're afraid of scripting.


Same reason as XML


I Wanna Be <![CDATA[

Sung to the tune of “I Wanna Be Sedated”, with apologies to The Ramones.

https://donhopkins.medium.com/i-wanna-be-cdata-3406e14d4f21


Because they yearn for Lisp?


Finally I can replace all that legacy XSLT.


Lately I've been looking at the generation of the YAML files. I'm not a fan. PKL was released and seemed promising, but support is limited (and I'd say after trying to build some stuff - tooling isn't that great).

Internet searches hadn't brought me anything.

Does anyone has some success stories with working with multiple YAML documents or is this always ending up in "just hack bunch of scripts, because alternatives are worse" ?


We define all our YAML config in typescript and just serialize it out. It’s a CI error to update the config scripts but not commit the newly generated YAMLs so nothing gets out of sync, and it’s usually only a few minutes work to write a typedef for a new config file type. Highly recommended.


Edit, not similar to what (PuppetLabs) Hiera does. But I've been using Hiera for years, first with puppet, then with terraform. Not to program, but simply to store config in a hierarchical store. There is crossover. But this seems to go deeper into the type of stuff that people don't want to use yaml for. It's interesting though, so I will check it out.


Well-known Baroque and quirky declarative language now comes with Rococo Turing-complete scripting capabilities


Would love if there were more parsers for nix lang to turn them into language specific datastructures. E.g. rust serde for nix. Nix covers much of the same features as YAML but is intentionally Turing complete.


Interesting, the script part is basically just a different syntax for Clojure, basically making the implementation quite slick.


Performing a sublime end-run around Greenspun by simply including a mature Lisp right away. 10/10


But with an ad hoc, informally-specified, bug-ridden, slow implementation of half of s-expression syntax.


Jesus. This appears to be not a joke.


I was desperately scrolling down the page looking for the part that identifies it as a parody...but yeah it looks serious. And that's terrifying.


- no


YAML's answer to "how many Prolog programmers does it take to change a lightbulb?"


you mean no, as in ... "Norway"? ...


Exactly ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: