News for hackers. Stuff that matters.
Re:The Awk Programming Language (1988) [pdf] by ajross on Thursday May 24, 2018 @12:55AM (#17141197)
To be clear: I like that about it too. But in the real world, we want tooling that does more stuff. In the mid-90's, "everyone" knew perl, because it was the best choice for problems in this space. And in a world where everyone knows perl, there is no place for awk.

But now we live in a world where no one knows perl, and languages like python and javascript are clumsy and weird in this space. And that makes awk look clever and elegant.

All I'm saying is that in perl-world (which was a real place!), awk wasn't clever and elegant, it was stale and primitive. And that to me is more surprising than awk's cleverness.

Re:The Awk Programming Language (1988) [pdf] by fiddlerwoaroof on Thursday May 24, 2018 @01:01AM (#17141218)
I think people underestimate the importance of medium-powered tools. Perl is great, but awks limitations make it easier to write in a way that the next person can maintain.
Re:The Awk Programming Language (1988) [pdf] by fiddlerwoaroof on Thursday May 24, 2018 @01:03AM (#17141223)
That being said, the couple times I’ve paired with a perl wizard were revelatory.
Re:The Awk Programming Language (1988) [pdf] by zmodem on Thursday May 24, 2018 @02:54AM (#17141627)
Or just reading about perl wizardry: https://www.hanshq.net/perl-oneliners.html
Re:The Awk Programming Language (1988) [pdf] by xyrouter on Thursday May 24, 2018 @02:07AM (#17141466)
Can you elaborate this? What revelations did you experience?
Re:The Awk Programming Language (1988) [pdf] by ams6110 on Thursday May 24, 2018 @09:08AM (#17143575)
> in a world where everyone knows perl, there is no place for awk.

And yet in 2018, I never think about Perl anymore, but use sed, awk, and grep daily.

Re:The Awk Programming Language (1988) [pdf] by mbubb on Friday May 25, 2018 @04:01PM (#17157358)
This is a great point
Re:The Awk Programming Language (1988) [pdf] by kamaal on Thursday May 24, 2018 @04:03AM (#17142005)
>>And that makes awk look clever and elegant.

Eventually the cycle will repeat again. The moment you will have non trivial text work to do, awk will have to give way to Perl.

The rise of Python was really use case for dealing with standard interfaces like DBs/XMLs/JSONs becoming common. Python hasn't actually replaced Perl in any meaningful way.

Re:The Awk Programming Language (1988) [pdf] by oblio on Thursday May 24, 2018 @04:31AM (#17142152)
Most modern distributions write their tools in Python instead of Perl. Proof: the really long transition process Fedora (and therefore RHEL), Debian and Ubuntu went through to migrate from Python 2 to 3. They could have done it faster if not for their system tools written in Python 2.

In the web space, Python is not huge, but it definitely supplanted the niche Perl used to have. No one I know writes web stuff in Perl anymore.

Re:The Awk Programming Language (1988) [pdf] by kqr on Thursday May 24, 2018 @03:16AM (#17141742)
I totally see your point. And in Perl-world, I would probably use Perl too – I mean, if both tools are equally ubiquitous, why not use the most powerful one?

I entered the field at the tail end of the Perl era, so I've only toyed with it a long time ago.

Re:The Awk Programming Language (1988) [pdf] by mozumder on Thursday May 24, 2018 @04:39AM (#17142192)
I hated perl in the mid-90's, and stuck with grep/awk/sed intead, because it was a little more documented-structured.

Meanwhile, if you randomly mashed on your keyboard, it would output a perl script.

I jumped to Python as soon as I found out about it in the late 90's, because it was exactly what I was looking for in self-documenting structuring. It was great for creating parsers with state-machines. I was also the user of my scripts, and I didn't want to have to relearn what I coded a year or so earlier. Python let me pick that up, and to a lesser extent, awk. State machine programming was really self-documenting in Python.

Re:The Awk Programming Language (1988) [pdf] by singingfish on Friday May 25, 2018 @06:05PM (#17158405)
I’m sick of the “perl is line noise” narrative. https://pastebin.com/C9hPS8xR