News for hackers. Stuff that matters.
Re:Jq: A lightweight and flexible command-line JSON processor by glesica on Sunday June 15, 2014 @04:57PM (#7896285)
jq is written in portable C, and it has zero runtime dependencies.

Thank you! When I clicked on the link I was fully expecting it to be written in Node and I was going to cry.

Re:Jq: A lightweight and flexible command-line JSON processor by Xavi on Sunday June 15, 2014 @08:20PM (#7896836)
Why is having node as a dependency such a bad thing? No snark. Genuinely curious.
Re:Jq: A lightweight and flexible command-line JSON processor by ajtaylor on Sunday June 15, 2014 @08:51PM (#7896899)
I don't think that node is bad, but it's simply another dependency you have to worry about. Most devs likely won't have node pre-installed. Having a no-dependency binary is a great thing.
Re:Jq: A lightweight and flexible command-line JSON processor by aendruk on Sunday June 15, 2014 @08:46PM (#7896882)
The subsequent sentence suggests that the benefit is convenience of impromptu deployment:

> You can download a single binary, scp it to a far away machine, and expect it to work.

Re:Jq: A lightweight and flexible command-line JSON processor by bsg75 on Monday June 16, 2014 @11:35AM (#7899592)
Because if you are not developing in node, and don't have any other node based software, yet another runtime, its package manager(s), and dependencies are unwanted additions to a system.
Re:Jq: A lightweight and flexible command-line JSON processor by cryptonector on Monday June 16, 2014 @02:44AM (#7897716)
Node is great, and a port of jq to node would be awesome (someone once hinted at such a port, but I've lost track of it).

But jq also has libjq, a C library. And jq uses a copy-on-write, reference counted representation of JSON values, which is, for example, inherently thread-safe (though jq isn't using atomic operations for refcount management yet). The library is easy to use and powerful.

Ultimately the main thing I love about jq (and why I contribute to it) is the jq language itself. It reminds me of my one-time favorite, Icon. But in a world where C is still the champion of systems programming (until Rust takes over?), it's real handy to have a C JSON library _and_ a functional DSL that's easy to invoke from C.

Re:Jq: A lightweight and flexible command-line JSON processor by slapresta on Monday June 16, 2014 @06:36AM (#7898240)
One of jq's maintainers (nicowilliams) often mentions Icon as a source of inspiration.
Re:Jq: A lightweight and flexible command-line JSON processor by cryptonector on Monday June 16, 2014 @12:04PM (#7899724)
@nicowilliams (github) and cryptonector (HN) are one and the same ;)

It's no secret either, just look at my commit messages' email address :)