News for hackers. Stuff that matters.
Re:Validating Kubernetes YAML for best practice and policies by ithkuil on Sunday August 09, 2020 @01:57PM (#24101464)
> powerful as yaml

Can you make an example of the power of yaml that makes it more like a programming language (in particular vs JSON)?

Re:Validating Kubernetes YAML for best practice and policies by riffraff on Sunday August 09, 2020 @02:04PM (#24101537)
not OP but: tags (custom data types), more builtin data types (dates etc), more syntax variations (heredocuments, multiple ways to write a string,a boolean, etc), comments, references+aliases.

The language is vast, and most people use it without knowing it.

I love YAML, but I wish there was a "strict&sane yaml subset".

Re:Validating Kubernetes YAML for best practice and policies by ithkuil on Sunday August 09, 2020 @03:37PM (#24102230)
All those are good examples of yaml complexity but none of that is anywhere near what even a simple programming language can unleash (variables, loops, functions, recursion etc)
Re:Validating Kubernetes YAML for best practice and policies by Znafon on Sunday August 09, 2020 @06:53PM (#24103641)
You can do recursion in YAML, and it ends badly: https://en.wikipedia.org/wiki/Billion_laughs_attack#Variatio...
Re:Validating Kubernetes YAML for best practice and policies by ithkuil on Monday August 10, 2020 @03:59AM (#24106706)
Recursion without termination doesn't produce a useful computation