mojo-yaml¶
mojo-yaml is a YAML 1.2 serializer written in Mojo. The runtime and the code generator are Mojo. They do not wrap libyaml or any other C, C++, or Rust YAML library.
-
Why YAML
What YAML 1.2 Core is, how block and flow collections work, how implicit types differ from YAML 1.1, and how anchors fit.
-
Instructions
Install Mojo 1.1.0 with pixi, write a JSON Schema, generate Mojo, run the tests, and publish this site.
-
Examples
Encode and decode generated types,
YamlValue, and multi-document streams. -
Techniques
How encode and decode work: pre-sized writes, indent stack, SIMD scan, expected-order keys, and which ideas were measured and kept.
-
Test data
What lives under
testdata/(schemas, oracle text, fail-path goldens) and why each file is there.