[KinoSearch] Serialized Schema
marvin at rectangular.com
Wed Nov 7 11:26:43 PST 2007
On Nov 6, 2007, at 4:08 AM, Peter Karman wrote:
> I really like the JSON::Syck (and accompanying YAML::Syck) parser.
> libsyck is
> BSD-licensed and very fast.
The JSON::XS documentation has a "comparison" section where it runs
through the available alternatives, including JSON::Syck. Here's the
gripe list for JSON::Syck 0.21:
* Very buggy (often crashes).
* Very inflexible (no human-readable format supported, format
undocumented. I need at least a format for easy reading by
humans and a
single-line compact format for use in a protocol, and preferably
a way to
generate ASCII-only JSON texts).
* Completely broken (and confusingly documented) Unicode handling
escapes are not working properly, you need to set
I<different> values on en- and decoding to get symmetric
* No roundtripping (simple cases work, but this depends on wether
value was used in a numeric context or not).
* Dumping hashes may skip hash values depending on iterator state.
* Unmaintained (maintainer unresponsive for many months, bugs are not
* Does not check input for validity (i.e. will accept non-JSON
return "something" instead of raising an exception. This is a
issue: imagine two banks transfering money between each other
One bank might parse a given non-JSON request and deduct money,
other might reject the transaction with a syntax error. While a
protocol will at least recover, that is extra unnecessary work
transaction will still not succeed).
JSON::Syck is at 0.26 now, so it *is* maintained and some bugs are
getting fixed. Looking at the Changes file, though, I don't see any
mention of the rest.
Also, JSON::XS 1.52 has a better CPAN Testers report than YAML::Syck
0.99, the distro that contains JSON::Syck: 55 passes, 5 N/A vs 94
passes, 11 failures.
I think the main underlying difference is that libsyck has to deal
with YAML while JSON::XS is just JSON, and JSON is a much easier spec
to implement than YAML. Douglas Crockford, author of the JSON spec,
got KISS right -- and the YAML people didn't.
Something to bear in mind while writing the InvIndex file format spec.
KinoSearch mailing list
KinoSearch at rectangular.com
More information about the kinosearch