News for hackers. Stuff that matters.
Re:CoreOS is building a container runtime, Rocket by digitalzombie on Monday December 01, 2014 @06:23PM (#8684721)
Please no json file, use yaml or have an option for yaml T___T.

The curly braces and brackets can get ugly when nested.

edit:

It may seems stupid but when you're on the terminal with vim and the directory path is long in some nested object/array. Things is really hard to parse out with your eyes.

Re:CoreOS is building a container runtime, Rocket by ecnahc515 on Monday December 01, 2014 @07:00PM (#8684918)
I think using JSON is a solid choice. You can easily make yaml to JSON translators for this purpose.
Re:CoreOS is building a container runtime, Rocket by ash on Monday December 01, 2014 @08:24PM (#8685182)
JSON is okay, but I hope TOML will gain traction soon. Because comments. And trailing commas. Rust Crate is already using TOML for package metadata.

https://github.com/toml-lang/toml

http://doc.crates.io/manifest.html

Re:CoreOS is building a container runtime, Rocket by catwell on Tuesday December 02, 2014 @06:06AM (#8686558)
+1 for TOML. If you think simplicity matters, look at the YAML spec [1], vomit and never use it again.

If you still don't believe me, try implementing a conforming YAML 1.2 parser (oh, and try not to make it a source of RCE [2]...).

[1] http://yaml.org/spec/1.2/spec.html

[2] http://blog.codeclimate.com/blog/2013/01/10/rails-remote-cod...

Re:CoreOS is building a container runtime, Rocket by nor0101 on Tuesday December 02, 2014 @02:54AM (#8686151)
+1 for TOML, started playing with Rust a couple of weeks ago.
Re:CoreOS is building a container runtime, Rocket by pnathan on Tuesday December 02, 2014 @12:43PM (#8688460)
+2 on Toml, it's a great config file language.
Re:CoreOS is building a container runtime, Rocket by bjt on Tuesday December 02, 2014 @12:17AM (#8685838)
I've been -1 on TOML for a long time, and preferred YAML, but your point about comments is persuading me.