Giter Site home page Giter Site logo

Comments (5)

langner avatar langner commented on June 16, 2024

I think YAML has some great features missing from JSON (anchors, comments, readability as you mention). On the other hand, JSON is probably more widespread and the parsers are faster at this point.

Also, YAML is a superset (well, almost) of JSON, so there shouldn't be a problem converting JSONs to YAML, or moving the YAML in the future if that seems like the way to go.

Short and pretty accurate comparison: https://stackoverflow.com/questions/1726802/what-is-the-difference-between-yaml-and-json-when-to-prefer-one-over-the-other

from qcschema.

sunqm avatar sunqm commented on June 16, 2024

YAML support sounds a bad idea for me at the moment. Adding the YAM support may lead to another dimension of complexity. I assume the JSON format serves as intermediate data for different QC program to communicate. I guess human readability should be less concerned although to some extent JSON is readable.

from qcschema.

dgasmith avatar dgasmith commented on June 16, 2024

Hmm, is there any reason that this cannot be an optional input for programs who choose to implement a YAML reader? As @langner mentioned if we focus on a JSON spec, the spec itself is representable in YAML without data loss and the end structure should be the same once imported to the language of your choice.

In Python using yaml.read vs json.read is all that would be required.

from qcschema.

loriab avatar loriab commented on June 16, 2024

I've played with both and really like yaml. Right now I have about quarter-and-three-quarter yaml and json. Insofar as it's dump/load simple, I plan to support yaml wherever potentially user-facing fields overlap with the JSON schema.

from qcschema.

dgasmith avatar dgasmith commented on June 16, 2024

The short answer here is "yes". Any format which supports the basic required quantities (hierarchical key- value/array) support is valid such as JSON/YAML/XML/HDF5/etc. However, this is up to the individual programs to add parsers for these formats or not. Keeping in mind JSON is the "officially" supported language at the moment.

from qcschema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.