Re:jq 1.7 released
by MassiveBonk51 on Wednesday September 06, 2023 @11:46PM
(#37414522)
You're probably right. I just wish there was an easier way to handle json on the command line that didn't turn into its own dsl. The golang scripting seems interesting, might be what motivates me to learn the language.
Ruby is the clear answer here. The fact that more people don't use it for this purpose (its intended purpose!) is a travesty.
Re:jq 1.7 released
by majkinetor on Thursday September 07, 2023 @03:40AM
(#37415862)
Any not-designed-specifically-for-shell language will suck for shell, more or less. Ruby, python, node, whatever, they all have the same problem - you write stuff too much and care about stuff you shouldn't care while in shell.
Even with that bias though, I have to admit that it's awful for typical command line script stuff.
Dealing with async and streams and stuff for parsing csv files is miserable (I just wrote some stuff to parse and process hundreds of gigs of files in node, and it wasn't fun).
Python is the right tool for that job IMHO.
Also, weirdly, maybe golang? I just came across this [1] and it has one of my eyebrows cocked.
[1] https://bitfieldconsulting.com/golang/scripting