Neither fully human-editable nor really compact, but an interesting experiment nonetheless.
Nevermind readable
JCOF: JSON-like Compact Object Format
31–40 of 69 posts
Re: JCOF: JSON-like Compact Object Format
#32Re: JCOF: JSON-like Compact Object Format
#33Earlier quoted context omitted.
It might on small files but it doesn't on (some) bigger ones. e.g. I dumped a Minecraft region file into JSON giving 85M. `jcof` turns this into 66M. `gzip` on the original json gives 14M for `-1` and 11M for `-9`. `zstd` also gives 11M. But because the Minecraft JSON is highly redundant, I also tried it on 84M of fake social graph data. `jcof` gave 44M, `gzip -9` gave 19M and `zstd` gave 18M. In summary, neat idea,…
JCOF and gzip are not mutex.
Re: JCOF: JSON-like Compact Object Format
#34People keep reinventing JSON trying to beat gzip, and it never beats the simplicity of gzipping JSON...
But "easy" wins so we keep returning to CSV and JSON. ^_^
Re: JCOF: JSON-like Compact Object Format
#35They're improvements, they're experiments, they're an attempt to move forward. Somebody cares!
but Randall Munroe said it pretty well: https://xkcd.com/927/
Re: JCOF: JSON-like Compact Object Format
#36Earlier quoted context omitted.
comets.json: JSON: 51949 bytes JCOF: 37480 bytes (0.721x) JSON ZIPED: 15178 bytes Zipped json wins again.
Now I am curious – how does zipped JCOF turn out? I know that’s not the author’s intention, but I’m curious how it compresses
If it could somehow produce a significant reduction with fewer CPU cycles, there may be a really niche use case, but I don't see those often.
Re: JCOF: JSON-like Compact Object Format
#37Re: JCOF: JSON-like Compact Object Format
#38Earlier quoted context omitted.
While Oscar Wilde would undoubtedly have something witty to say about that, I guess it's a matter of stress: if you read it as a word and assume stress on the (invisible) first vowel, it's almost inevitable: juh-cof.
But we dont say juh sahn for JSON? Hence why Jcough seemed intuitive.
Re: JCOF: JSON-like Compact Object Format
#39If I need a more compact no longer at all human readable format I can use a compact binary format. If not I can use JSON which has wide spread support.
or just use a compression (after which the difference between JSON and JCOF should be negligible)
Re: JCOF: JSON-like Compact Object Format
#40Earlier quoted context omitted.
It might on small files but it doesn't on (some) bigger ones. e.g. I dumped a Minecraft region file into JSON giving 85M. `jcof` turns this into 66M. `gzip` on the original json gives 14M for `-1` and 11M for `-9`. `zstd` also gives 11M. But because the Minecraft JSON is highly redundant, I also tried it on 84M of fake social graph data. `jcof` gave 44M, `gzip -9` gave 19M and `zstd` gave 18M. In summary, neat idea,…
JCOF and gzip are not mutex.