Libfyaml 1.0.0-alpha1, a modern YAML library for C
Python-like generics and reflection-based serdes in plain C is genuinely clever.
Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite.
473x faster YAML parsing via mmap cache with near-zero memory on hot reload.
Backend developers working with large configuration or data files
libyaml · yaml-cpp · serde_yaml
It is not making the parser itself hundreds of times faster. On a cache hit, libfyaml mmaps the generic arena and directly uses that instead of parsing the file. Due to the design of the generic subsystem it even avoids relocation and in 64bit systems with ASLR.
Benchmark run using the python binding on AllPrintings.json sized 427.5 MB.
- cache off: 16.98 s, +13.4 GB RSS - cold cache: 22.45 s, +13.4 GB RSS - hot cache: 35.9 ms, +1.0 MB RSS
That is about 473x faster on the hot-cache path versus a normal parse, with a much smaller memory delta. Also note how the RSS is essentially zero; the generic data in the arena are not even faulted in.
This is intended for startup/config/data-loading workloads where the same large YAML or JSON file is read repeatedly.
Benchmark commit: https://github.com/pantoniou/libfyaml/commit/f150432b36e409a...
Python-like generics and reflection-based serdes in plain C is genuinely clever.
Polished UI, but identical tools exist free on CyberChef, in VS Code, and browser DevTools.
Yet another JSON validator, but uses TypeScript types instead of JSON Schema.
Multi-language literal generator when quicktype already handles JSON-to-code conversion.
Privacy-focused JSON viewer born from the JSON Formatter Give Freely scandal.
YAML block syntax, JSON semantics—fixes Norway Problem and silent overwrites.