[erlang-questions] [ANN] yaml loader
Tim McNamara
paperless@REDACTED
Thu May 24 05:38:11 CEST 2012
This is really great. Having an Erlang implementation is excellent.
Strongly suggest changing the project name from "yaml" though.
YAML does have a few (IMO) advantages over JSON apart from readability:
- comment syntax
- named entities
- supports streaming more easily*
* Although it looks like yaml:load_file/1 loads everything into memory.
On 24 May 2012 15:31, Daniel Goertzen <daniel.goertzen@REDACTED> wrote:
> I'm pleased to announce an application for loading YAML files into
> Erlang. This implementation supports:
>
> - Detailed errors on yaml load failures (line, column, reason)
> - Anchors and aliases
> - Merge tags
> - The tag !atom for explicitely tagging values as atoms.
> - An implicit_atoms mode to interpret values that look atom-ish as atoms.
> - Customizable schemas via callback modules.
> - Loading only, but perhaps it will also emit YAML in the future.
>
> This application embeds the C yaml parser "libyaml" which is compiled as a NIF.
>
> Details at https://github.com/goertzenator/yaml
>
> For those unfamiliar with YAML, it is similar to JSON with a strong
> focus on human readability and writeability. If you need to type in
> lots of structured data, YAML is a decent choice.
>
>
> Dan.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list