4 ms·
I’m almost more amazed that someone figured out jq’s syntax and got some use out of it. In all seriousness though, are you sure some of this isn’t those blocks
by atonse 2y ago
I’m almost more amazed that someone figured out jq’s syntax and got some use out of it.
In all seriousness though, are you sure some of this isn’t those blocks being loaded into some kind of file system cache the second and third times?
How about if you rebooted and then ran the mimalloc version?
- matt123456789 2y agoThe benchmarking tool being used in this post accounts for that using multiple runs for each invocation, together with a warmup run that is not included in the result metric.
- atonse 2y agoAh missed that, sorry.
- behnamoh 2y agojq has point-free programming. it's intuitive once you wrap your head around it. See this: https://en.wikipedia.org/wiki/Tacit_programming#jq https://en.wikipedia.org/wiki/Tacit_programming#jq
- mmastrac 2y agoI wish I had seen this earlier. My mental model was close but not quite there to the point where I needed to think too hard about how to solve problems. This is much more intuitive now.
- atonse 2y agoYeah after this post I sought a couple youtube videos explaining it. It's starting to make a bit more sense now. But the lightbulb hasn't gone off just yet. Appreciate the link.
- Flimm 2y agoThank you! That's helpful. I got the examples in that Wikipedia section to run using the `--null-input` flag: $ jq --null-input '[1, 2] | add' 3
- penguin_booze 2y agoI think jq's syntax is pretty sweet, once you get used to it (or are already familiar with point-free style, as it's in Haskell). The man page is subpar, however.