Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Human readable/writable serialization alternatives to YAML and XML ?

by JavaFan (Canon)
on Mar 07, 2009 at 10:48 UTC ( #749033=note: print w/replies, xml ) Need Help??


in reply to Human readable/writable serialization alternatives to YAML and XML ?

Worse there are a few apparently serious years old bugs.
Ingy is currently rewriting the YAML implementation (in fact, he's backporting the Python port to Perl), which should fix a lot of the bugs. It's my understanding he rewrite is closed to be finished (didn't he get a grand from TPF for this?).

As for JSON being more readable, JSON is actually a subset of YAML - anything that is valid JSON is valid YAML as well (but not the other way around).

If I want Perl to dump a structure which I want to read, I almost always use YAML - I find its output reasonable readable. For input, I prefer ini or apache like config files. I use Config::General to read it. But people vary in what they find readable/writable so don't expect a definite answer in this thread.

  • Comment on Re: Human readable/writable serialization alternatives to YAML and XML ?

Replies are listed 'Best First'.
Re^2: Human readable/writable serialization alternatives to YAML and XML ?
by moritz (Cardinal) on Mar 07, 2009 at 18:58 UTC
    Ingy is currently rewriting the YAML implementation (in fact, he's backporting the Python port to Perl), which should fix a lot of the bugs. It's my understanding he rewrite is closed to be finished (didn't he get a grand from TPF for this?).

    He has a grant running indeed, and today's grant update does indicate that it's nearly finished, and should be tested by interested hackers.

Re^2: Human readable/writable serialization alternatives to YAML and XML ?
by elmex (Friar) on Mar 09, 2009 at 08:37 UTC
    As for JSON being more readable, JSON is actually a subset of YAML - anything that is valid JSON is valid YAML as well (but not the other way around).

    Just for the sake of correctness: JSON is not a 100% subset of YAML. The author of the JSON::XS module researched that topic: http://search.cpan.org/~mlehmann/JSON-XS-2.232/XS.pm#JSON_and_YAML

      And the author of YAML told on a recent conference that there indeed was a slight difference between JSON and YAML, and that the YAML specification was recently relaxed to make JSON a proper subset of YAML.
        AFAIK there are currently no parsers that support JSON as yml.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://749033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-04-14 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?