News for hackers. Stuff that matters.
Re:Q – A Data Language by skrebbel on Monday March 03, 2014 @08:05AM (#7333462)
I really like this. In general, a well-supported non-crappy schema language for modern data exchange formats is long overdue (e.g. JSON Schema is horribly un-human-friendly). The fact that they aim higher and allow for a much more detailed set of validations is great, IMO.

I hope that this becomes a success and gets implementations in many programming languages.

Re:Q – A Data Language by FeloniousHam on Monday March 03, 2014 @09:09AM (#7333743)
For "human-friendliness" (eg. hand-edited configs), I'm all in with YAML. AFAIC, JSON is strictly for machine to machine data transmission.

While I think the idea is neat, a data language should not include processing logic. It's a wash where the constraints get specified, and in my experience, a single point of implementation is far more maintainable.

Re:Q – A Data Language by nevi-me on Monday March 03, 2014 @01:13PM (#7335295)
> I really like this. In general, a well-supported non-crappy schema language for modern data exchange formats is long overdue (e.g. JSON Schema is horribly un-human-friendly).

I think I'm a bit confused, is Q the actual schema or a validator of the schema? I can also validate a JSON document using JavaScript and respond with a true or false based on whether it meets certain criteria. So I think that there's something amiss with your statement above, specifically that "JSON Schema is horribly un-human-friendly". Doesn't Q take JSON and let the user know if it's correct or incorrect? WOuldn't JavaScript, or any other language at that, do the same?

Re:Q – A Data Language by rpedela on Monday March 03, 2014 @02:19PM (#7335773)
JSON Schema refers to http://json-schema.org/

I don't personally understand what is so "un-human-friendly" about it. It is easy to use and understand in my opinion.

Re:Q – A Data Language by nevi-me on Tuesday March 04, 2014 @06:42AM (#7339648)
I know what JSON is :)
Re:Q – A Data Language by bjeanes on Tuesday March 04, 2014 @10:34PM (#7345113)
JSON Schema != JSON.
Re:Q – A Data Language by TheZenPsycho on Monday March 03, 2014 @05:48PM (#7337107)
have you seen orderly?

http://orderly-json.org

Re:Q – A Data Language by vithlani on Monday March 03, 2014 @07:48PM (#7337696)
For data exchange, what is wrong with using an ASN1 specified, BER encoded file? Genuine question...
Re:Q – A Data Language by spacemanmatt on Tuesday March 04, 2014 @04:55AM (#7339326)
The binary encodings are cumbersome and difficult to perfect.
Re:Q – A Data Language by vithlani on Wednesday March 05, 2014 @06:27PM (#7350735)
Isn't it simply a matter of delegating it to a library -- the encoding and decoding I mean? I have had occasion to use Java and Python libraries for this and faced no problems.