yamlscript

Ludger Solbach 2026-06-15T14:24:45.143629Z

Is YAMLScript a drop in replacement for expressions in Helm charts?

Ingy döt Net 2026-06-15T19:38:05.436299Z

@lsolbach have a look at https://yamlscript.org/helmys/

👀 1
Ingy döt Net 2026-06-15T19:39:31.557189Z

I'm working towards having YS be 100% Go based, rather than JVM based. After that I am going to give another big push on HelmYS

👍 1
Ingy döt Net 2026-06-15T19:33:11.257089Z

https://rosettacode.org/wiki/Category:YAMLScript#mw-pages now has more Rosetta Code examples (675) than https://rosettacode.org/wiki/Category:Clojure#mw-pages (648)!

🔥 2
Ingy döt Net 2026-06-15T19:36:58.499799Z

Also https://github.com/acmeism/RosettaCodeData (the github repo with all the code on all the languages) is up to date as of today.

neumann 2026-06-15T21:04:52.242809Z

Regarding:

(let [x (if (> y z) (bar x) x)])
You can use a cond-> idiom in Clojure:
(let [x (cond-> x (> y z) bar)])
Although I would avoid rebinding x.

neumann 2026-06-15T21:05:34.157499Z

> it's 15 language bindings and the http://yamlscript.org website That's a lot of languages!

Ingy döt Net 2026-06-15T21:06:00.577209Z

I can get to 42 easily 😉

Ingy döt Net 2026-06-15T21:07:33.572219Z

here's a demo of a gloat genned .so bound to 23 langs

Ingy döt Net 2026-06-15T21:07:51.381949Z

but I've identified over 20 more

Ingy döt Net 2026-06-15T21:10:12.570509Z

@neumann thanks for weighing in here. Wasn't aware of cond-> though I don't think that solves the issue in general. Only because the example is a fn call, right?

Ingy döt Net 2026-06-15T21:14:28.693229Z

$ ys -ce '
defn f(x):
  x :if (a > b) =: 123'
(defn f [x] (let [x (if (> a b) 123 x)]))

neumann 2026-06-15T21:17:31.394159Z

In that case, you're only repeating x because you're rebinding, and rebinding is generally discouraged in Clojure.

neumann 2026-06-15T21:18:36.216549Z

I won't go far as to say it's never done, but I would say making rebinding more convenient is a non-goal for Clojure.