News for hackers. Stuff that matters.
Re:Any program can be a GitHub Actions shell by adastra22 on Tuesday April 08, 2025 @02:42AM (#43618970)
What is undisciplined about this?
Re:Any program can be a GitHub Actions shell by TheDong on Tuesday April 08, 2025 @07:07AM (#43620320)
yaml is roughly as disciplined as malbolge.

Writing any meaningful amount of logic or configuration in yaml will inevitably lead to the future super-sentient yaml-based AI torturing you for all eternity for having taken any part in cursing it to a yaml-based existence. The thought-experiment of "Roko's typed configuration language" is hopefully enough for you to realize how this blog post needs to be deleted from the internet for our own safety.

Re:Any program can be a GitHub Actions shell by adastra22 on Tuesday April 08, 2025 @11:40AM (#43623072)
I literally have no idea what you are talking about. Declarative languages are great for specifying these sorts of things.
Re:Any program can be a GitHub Actions shell by TheDong on Tuesday April 08, 2025 @12:06PM (#43623338)
> Declarative languages are great for specifying these sorts of things

Yes, good declarative languages are. I'm a happy nix user. I like dhall. cel is a cool experiment. jsonnet has its place.

A language with byzantine type rules, like 'on: yes' parses the same as "true: true", but only in some languages (like ruby's built-in yaml parser for example), but not others, and only with some settings, is not it chief.

It isn't even one language, since most yaml parsers only have like 90% coverage of the spec, and it's a different percent, so the same yaml document often won't be parsed the same even by two libraries in the same programming language. It's really like 20 subtly incompatbile languages that are all called "yaml".

It is indefensible in any context.