News for hackers. Stuff that matters.
Re:Modernizing AWK, a 45-year old language, by adding CSV su... by asicsp on Thursday May 12, 2022 @06:06AM (#31351650)
>A big thank-you to the library of the University of Antwerp, who sponsored this feature. They’re one of two major teams or projects I know of that use GoAWK – the other one is the Benthos stream processor.

That's great to hear.

Are you planning to add support for xml, json, etc next? Something like Python's `json` module that gives you a dictionary object.

Re:Modernizing AWK, a 45-year old language, by adding CSV su... by benhoyt on Thursday May 12, 2022 @08:25PM (#31361745)
I'm not considering adding general structured formats like XML or JSON, as they don't fit AWK's "fields and records" model or its simplistic data structure (the associative array) very well. However, I have considered adding JSON Lines support, where each line is a record, and fields are indexable using the new @"named-field" syntax (possibly nested like @"foo.bar").
Re:Modernizing AWK, a 45-year old language, by adding CSV su... by asicsp on Friday May 13, 2022 @03:56AM (#31364605)
Thanks, JSON Lines support would be welcome too :)