News for hackers. Stuff that matters.
Re:GNU Awk 5.0 by jph on Tuesday April 16, 2019 @05:19AM (#19672222)
Congratulations and thank you! Namespaces are a big help for me personally.

From the GNU Awk 5 manual: A qualified name consists of a two simple identifiers joined by a double colon (::). The left-hand identifier represents the namespace and the right-hand identifier is the variable within it.

Namespaces are a big help for writing libraries, especially for clients with systems (e.g. banking, government, education, medical) where awk code is fine yet other kinds of languages (e.g. python, go, perl) are not available and/or require management audit practices.

Re:GNU Awk 5.0 by acqq on Wednesday April 17, 2019 @04:07AM (#19680674)
Thanks for pointing to the Awk 5 manual (in the tar archive, I haven't seen it online still).

I've written the previous comment asking "why namespaces based" only on the directly online accessible info. Now having had the time to download and unpack the sources and read the documentation there, it sounds much better than it appeared based on the announcement.

Long term it shouldn't make gawk less compatible than it already is. Gawk already has gawk-specific extensions, and that would be one. It seems that the command-line example is the only "breaking" aspect. And even that could be theoretically modified to be non breaking, but it's hopefully seldom enough used to not affect too much.

And the "namespaces" is in fact a "module" infrastructure extension, introduced specifically to support the construction of module-like libraries (specifically solving the problem of exporting the limited number of variables from the module).

I especially like the writing of the author of Gawk manual, I've really enjoyed it even almost thirty years ago.

Re:GNU Awk 5.0 by koolba on Tuesday April 16, 2019 @06:17AM (#19672398)
Why would awk not require audit and code management practices vs those other languages in a controlled environment?
Re:GNU Awk 5.0 by ivanbakel on Tuesday April 16, 2019 @07:01AM (#19672575)
I took it to mean that getting support for those languages would require management audit practices i.e. "why are we installing a new package on all of our servers?". In that case, awk would be better since the gnutils are much more likely to already be installed and in use. The resulting awk code would still probably fall under code management.
Re:GNU Awk 5.0 by aries1980 on Tuesday April 16, 2019 @07:38AM (#19672762)
Go, you mentioned, does not require package to be installed. It compiles to a single, native binary.
Re:GNU Awk 5.0 by whatshisface on Tuesday April 16, 2019 @08:23AM (#19672999)
If the place you worked at was backwards enough you may not be able to install a Go compiler on your desktop. Anything is possible when the people making the rules are disconnected enough from the people getting the work done.
Re:GNU Awk 5.0 by 4thaccount on Tuesday April 16, 2019 @11:21AM (#19674405)
This. If I want anything installed it requires survey from IT and Legal and can take months.

If it is Java or C# and already in-use, it is pretty simple. If I wanted to install a Go compiler, it could get complicated. Not having Admin rights really slows down an organization. Especially if you're someone who likes to use multiple technologies (right tool for the right job). IT hates that. Note that I don't write production tools, just things to get my job done quicker (automation scripts, data analysis...etc).

Re:GNU Awk 5.0 by gcb0 on Tuesday April 16, 2019 @02:57PM (#19676295)
always assumed all those organizations stayed in the 90s

not figuratively

Re:GNU Awk 5.0 by timClicks on Tuesday April 16, 2019 @06:59AM (#19672567)
Probably because awk is available as a stock build of the approved OS. It's been around a long time. I mean, to be POSIX-compliant, you need an awk interpreter in your system https://pubs.opengroup.org/onlinepubs/9699919799/utilities/a...