News for hackers. Stuff that matters.
Re:Comments in JSON by IanCal on Friday August 02, 2013 @01:35PM (#6148379)
You can use a screwdriver as a hammer all you want, it's not going to make it a good idea. This isn't a free speech issue.

> Further, if JSON was really only data, then it's an incredibly stupid way to store data, given that it has a human-readable syntax that the computer can only deal with after it's been parsed. As data, it's bloated and inefficient.

So use something else. Also, a computer can only read any file after it's been parsed in some way. I'm not really sure what you're suggesting as an alternative.

> To the extent that JSON is a good format, it's code

Is it executable? Is it turing complete?

Re:Comments in JSON by TeMPOraL on Friday August 02, 2013 @03:17PM (#6149040)
> Is it executable? Is it turing complete?

It represents groups of more-less arbitrary tokens as trees, therefore it's a natural format for code representation as it's equivalent to an AST, therefore it's trivial to attach a basic execution context with if and lambda defined, and now it's executable and turing-complete.

Re:Comments in JSON by IanCal on Tuesday August 06, 2013 @07:47AM (#6166013)
So any indented text file would be considered code?