yamlscript

Ingy döt Net 2024-01-08T14:42:23.543449Z

So the other day I was chatting in #clj-yaml about a new YAML framework I am creating that will be the best YAML framework to use in any programming language. I call that YAMLStar but it is a ways off in the future. This morning I got a ping from @mmer asking if the framework would expose YAML comments as data. This led to some thinking on it... All my effort is currently on YAMLScript which is a YAML loader (on steroids/acid/clj/etc) but not a full YAML serialization framework (dump and load) like YAMLStar will be. But since @mmer’s needs were only for loading comments (not dumping or roundtripping) I realized this would not be so hard to add to YAMLScript. Remember one of the major selling points of YS is that it will be the best YAML loader to use in any language. I just needed to build it on a parser that reported comments. YS is built on snakeyaml-engine, which does happen to report comment data! Therefore it should be doable to prototype this behavior very soon. The biggest missing piece is the Clojure binding library for Clojure. We have (FFI) binding libraries/modules for 5 other languages right now. I was already planning on trying a Coffi based Clojure binding this week. I might ask people here for some help, but it should be simple.

mmer 2024-01-08T15:22:04.413139Z

Round tripping would be good in some cases however.

Ingy döt Net 2024-01-08T16:11:26.325829Z

Yes but that would be a concern for YAMLStar, as YAMLScript only loads (reads) YAML, not dumps (writes) it