Q: A faster re-implementaiton of jq written in Reason Native/OCaml
71–80 of 196 posts
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#72> The report shows that q is between 2x and 5x faster than jq in all operations tested and same speed (~1.1x) with huge files (> 100M).
While faster for somethings....that's a pretty large set of caveats!
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#73Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#74Earlier quoted context omitted.
Yeah. Can you imagine trying to do a web search for ‘q’?
I can and it is lightly disturbing. https://imgur.com/a/yAOF31g ^_^
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#75Are we sure it should get a single-letter 'q' binary name though? Docs seem to point that it's short for 'query-json'? Why not call it 'query-json' and let the user decide that as a shell alias or whatever. Even the ubiquitous 'ls' and 'cd' are two characters.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#76I'd long for such a tool with a better comprehensible query language.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#77Earlier quoted context omitted.
That's super weird, I think most people use jq for bash pipelines.
Yes, I don't understand how people end up with assertions that the filename is a require argument. At least we've got /dev/stdin or /proc/self/fd/0 as workarounds.
It's not hard to fix things like this, but it exemplifies a lack of familiarity with the Unix command line. There are an enormous number of tools out there that only exist because people don't know how to chain together basic 1970s Unix text-processing tools in a pipeline.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#78> Aside from that, q isn't feature parity with jq which is ok at this point, but jq contains a ton of functionality that query-json misses and some of the jq operations aren't native, are builtin with the runtime. In order to do a proper comparision all of this above would need to take into consideration. > The report shows that q is between 2x and 5x faster than jq in all operations tested and same speed (~1.1x) wit…
I have a issue to improve performance where I can push this forward: https://github.com/davesnx/query-json/issues/7
But sure, are caveats!
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#791) refuses to operate on stdin; requires a filename argument, which is so irritating. 2) doesn't accept values that jq accepts % time jq -r '[expression]'
That's super weird, I think most people use jq for bash pipelines.
Re: Q: A faster re-implementaiton of jq written in Reason Native/OCaml
#801) refuses to operate on stdin; requires a filename argument, which is so irritating. 2) doesn't accept values that jq accepts % time jq -r '[expression]'