News for hackers. Stuff that matters.
Re:Aho – a Git implementation in Awk by anonnon on Saturday February 10, 2024 @02:54PM (#39329616)
> then people decided perl was bad and moved on from that.

That's a large part of what's driving Awk's renaissance: devs that never learned Perl to begin with want something to fill the gap between shell and Python, and other devs like me who (reluctantly) abandoned Perl because it was deemed "uncool" by HN types, which means Perl and all code written in it now has an expiration date on it. But since Awk is a POSIX standard, HN types can't get rid of it.

Re:Aho – a Git implementation in Awk by bigstrat2003 on Saturday February 10, 2024 @04:46PM (#39330530)
"HN types" can't get rid of perl either. So just use perl if you want to. Personally I think perl is a terrible language and that anything which is too complex for a shell script (which is most things) should just be done in python. But if you disagree, it's not like anyone can stop you. If your issue is "my teammates hate it and want me to use something else", I promise you they will be just as annoyed if you use awk.
Re:Aho – a Git implementation in Awk by lanstin on Saturday February 10, 2024 @06:33PM (#39331285)
I'm pretty sure people have read more perl code than awk code, so they'll roll their eyes but will be able to cover for perl-required tasks, but won't build up the courage to touch the awk.

To me, hell is having to debug perl scripts other people wrote. Based on experiences in the 1998 time frame.

Re:Aho – a Git implementation in Awk by dleink on Sunday February 11, 2024 @04:38PM (#39339020)
took a contract job where I was writing a thing in perl to connect a billion dollar collection of ecommerce sites to facebook ads in 2019.
Re:Aho – a Git implementation in Awk by lanstin on Sunday February 11, 2024 @09:50PM (#39340853)
OMG. I hope the pay was excellent.
Re:Aho – a Git implementation in Awk by bemusedthrow75 on Sunday February 18, 2024 @01:22PM (#39421536)
Hell is having to debug perl scripts you wrote yourself long enough ago that you've forgotten and the developers of the packages you depend on have literally died of old age.

Because you have only yourself to blame.

Re:Aho – a Git implementation in Awk by Almondsetat on Saturday February 10, 2024 @03:35PM (#39329957)
can't wait for the day I will be able to compile Linux without Perl
Re:Aho – a Git implementation in Awk by fuzztester on Saturday February 10, 2024 @11:15PM (#39332602)
that's the day I'll eat my red hat
Re:Aho – a Git implementation in Awk by LinuxProtips on Sunday February 11, 2024 @03:54AM (#39333568)
You can do that right now. Sabotage Linux rewrote the one and only perl dependency in awk years ago.

Grab https://raw.githubusercontent.com/sabotage-linux/sabotage/ma... and clobber the perl script in the Linux source.

Then: sed -i -e 's@perl $(srctree)/$(src)/build_OID_registry@awk -f $(srctree)/$(src)/build_OID_registry@' ./lib/Makefile

They also removed the perl dependency for ca-certificates since one of the goals was to remove perl dependencies from the core system including its toolchain and kernel. It's not needed at all now.

This Aho project is neat because it has the potential of removing the perl dependency on having a git client, which was a problem prior.

Re:Aho – a Git implementation in Awk by oooyay on Sunday February 11, 2024 @11:52AM (#39336262)
What is an "HN" type? HN has smart, dumb, and in-between people of every variety. That's the byproduct you get of encouraging curiosity. I don't think HN was even around in any sort of prominence when Perl died.

I stopped using Perl because my egg drop bots got laborious along with my expect scripts. They were novel early on, but maintaining them became something of a chore I wasn't inclined to do anymore. Other things started to do that better.

Personally, I think Python won because it's syntax was much more readable. It had nothing to do with technical merits. DX is a strong subliminal motivator.