Live data from Hacker News

Not Your Grandfather’s Perl

stackoverflow.blog

51–60 of 257 posts

Re: Not Your Grandfather’s Perl

#52
post #35

Earlier quoted context omitted.

I’ve had very limited contact with Perl, but for scripting purposes it does seem like the best option, so I intend to sit down to it and learn it better. It looks like a great next step after sed and awk (perl -pe). I love the ability to write terse scripts, reasonable speed for a scripting language and, as you said, backwards-compatibility (such a stark contrast compared to Python).

I would argue that ruby as almost all the strengths of perl and conciseness with more coherency if you want a perl-like fluidity and terseness. I personally like python for anything that becomes more than a 100 lines of bash.

Does Ruby come pre-installed on virtually every Unix-like system out there?

Re: Not Your Grandfather’s Perl

#54

Perl receives such an unnecessary amount of hate

I don't think it's hate. I think it's more "why would I choose Perl over Python?" Perl has a painful syntax, Python greatly improves on this with easy syntax. I don't want to have to relearn the syntax every time I reach for a scripting tool.

Re: Not Your Grandfather’s Perl

#55
post #49
post #13

"Bare bones" seems to be a good thing for Perl. I use Strawberry Perl on Windows and it is orders of magnitude faster than Powershell for processing large files of text strings using regular expressions. I hope the addition of a "new object-oriented programming framework" won't take away the "bare-bones" speed of the current release.

The best OO frameworks Mouse and cperl make it faster. Moose, Moo and Corinna signicantly slower. Guess which frameworks are recommended

Corinna is essentially the working spec of the new class system in Perl. I’m not sure being performant was ever the goal.

Re: Not Your Grandfather’s Perl

#56
post #52

Earlier quoted context omitted.

I would argue that ruby as almost all the strengths of perl and conciseness with more coherency if you want a perl-like fluidity and terseness. I personally like python for anything that becomes more than a 100 lines of bash.

Does Ruby come pre-installed on virtually every Unix-like system out there?

If it's not installed already, Ruby will be installed ASAP on any machine I use.

Re: Not Your Grandfather’s Perl

#57
post #35

Earlier quoted context omitted.

I’ve had very limited contact with Perl, but for scripting purposes it does seem like the best option, so I intend to sit down to it and learn it better. It looks like a great next step after sed and awk (perl -pe). I love the ability to write terse scripts, reasonable speed for a scripting language and, as you said, backwards-compatibility (such a stark contrast compared to Python).

I would argue that ruby as almost all the strengths of perl and conciseness with more coherency if you want a perl-like fluidity and terseness. I personally like python for anything that becomes more than a 100 lines of bash.

[deleted]

Re: Not Your Grandfather’s Perl

#58

With function signatures and state variables added in 5.010, I consider Perl feature-complete and have not really missed anything from it for as long as I've been writing Perl. What I do appreciate that's missing from many other languages and systems is the extreme committment to backwards compatibility. The knowledge that the next minor release won't break existing scripts is underrated, IMO. Solo project with ~23K…

Needs static typing.

I'll let myself out now.

Re: Not Your Grandfather’s Perl

#59
Sorry, but what? The top features they highlight here are a print statement that adds a new line, a change to the bonkers default of creating some kind of implicit global named variable every time you open a file, representing time as an object (with a strftime function!) and… function signatures?

I wouldn’t call this as “Perl moving forward”, I’d call this “Perl is still about 20 years behind everyone else”.

Wait until they find out that other languages print statements let you customise the line ending!

Re: Not Your Grandfather’s Perl

#60
post #38
post #23

Earlier quoted context omitted.

> A few Perl one-liners and I have 2 GB processed in a couple of minutes. This matches my experience: my task is IO bound, processing tens of GB in a matter of minutes. > I'm working in Windows (employer's choice) Work prefers MacOS, Windows is my personal choice :) Windows 10 and 11 are a pleasure to use: between the Windows Terminal and tools like AutoHotKey, there's no Linux equivalent, even for a commandline geek…

Full disclosure: Work has been Windows centric, but I recently moved to a new group with some Mac users. I'll have that choice, next time I swap hardware, but probably will stay with Windows because * Would miss too many amazingly useful utilities like arsclip. * Easier to patch into my home network, which is NTFS-based. * Employer is now wedded to Microsoft and Azure, so having Powershell and native access to NTFS A…

> The keystrokes have become second-nature. Try as I might, I can never get fully comfortable on a Mac OS desktop.

Same, that's one of the biggest reasons - but I also agree with the rest of your list: what I like the most in Windows is the UI! I run most of my programs fullscreen, with shortcuts. I rarely use the mouse, and Windows plays along, while I have to fight other systems.

Even when run baremetal, Windows has improved so much over the board that once you add RDP/VNC, it's a no brainer.

Post reply on HN