Live data from Hacker News

Ask HN: Is Perl dead?

news.ycombinator.com

31–40 of 140 posts

Re: Ask HN: Is Perl dead?

#31
If this really isn't trolling, check jobs.perl.org instead.

As others have written, Python and Ruby fill the same niches and have about the same features.

Re: Ask HN: Is Perl dead?

#32

(Second try at this) First, anyone who says that Python or Ruby is not even comparable to Perl is full of it or very mistaken. They are close enough that we quickly run into the narcissism of small differences [1]. Second, in my experience HN ranges from uninterested to hostile when it comes to Perl. I read lots about Perl, but many of the blogs or forums I frequent are Perl-centric. My point is simply that you shoul…

For a while, maybe 5+ years ago (7? I can't remember clearly) it seemed like Perl was stagnating a little. This was about the time Ruby really seemed to take off, and some neat Python projects appeared (e.g. Gentoo Linux).

Now, even though the core language hasn't changed, there seem to be all sorts of clever Perl modules appearing which take advantage of a lot of Perl's highly flexible nature.

I really like Ruby myself, and really hate Python (even though I have to use it at work) but when the other languages fail me, I can almost always turn to Perl in a pinch and get it to do what I want. I also have to admit that the potential power of Perl6's syntax is a little astonishing; I think I would pick Perl6 over Ruby, for example.

Re: Ask HN: Is Perl dead?

#33
For what it's worth, a quick search on dice.com gives the following:

  - perl: 4448 results
  - python: 1988
  - ruby: 1087
So I don't know... apparently there are still many jobs out there that require Perl. It may be that people use it less for new projects, though.

Re: Ask HN: Is Perl dead?

#34
I don't think Perl is dead, as computer languages are significantly harder to kill than zombies. I would not at all be surprised if some critical infrastructure that must run lets a bunch of people gets killed is written in PDP 9 assembler. Just seams to be the nature of the beast.

Re: Ask HN: Is Perl dead?

#35

I love perl, and I don't want to see it be dead, but there aren't enough libraries relating to my interests (games).

You should really check out the SDL bindings for Perl. It's getting to the point where the dev versions are almost comparable to PyGame. There's some really cool stuff going on.

Re: Ask HN: Is Perl dead?

#36
My thoughts... coming from someone who has been working with Perl for basically a decade at various companies, and have had the pleasure of working with Perl experts like Tim Bunce (author of DBI) and Randall Schwartz (author of various Perl books, including the camel book).

a) Perl was used for EVERYTHING web-related in the early 2000s, but other languages and tools have come around to supplant it.

Several commenters have already said, "oh man I had to deal with this legacy perl code and it was awful," and yeah, that's a common experience and makes them think, "Perl is a terrible legacy language, I can't wait to trash it on my Ruby mailing list tonight." The negativity propagates and then people like you wonder, "is Perl dead?"

b) Web frameworks are one of those tools where frameworks like Rails and Django have all the hype. If you want to whip up your startup idea into a minimum viable web application, the trendy choice is Rails or Django. I've used Perl web frameworks like Catalyst and I'll be the first to admit banging out your "It's like Facebook... But For Cats!" startup idea is a lot faster in Rails or Django.

c) As Steve Yegge said in one of his blog posts:

'As I've done for a great many other programming languages, I've bashed on Perl's technical weaknesses at length in the past. To my continued amazement, the Perl folks are the only ones who never get upset. They just say "Haha, yeah, boy, you're right, it sure is ugly. Heh. Yeah, so, um, anyway, I'm going to get back to work now..." It's awesome. I've gained so much respect for them. It's almost enough to make me go back to programming in Perl.'

In my experience (which of course is just as anecdotal at Steve's), this is very true. Zed Shaw writes yet another blog post blasting whatever technology crawled up his ass and died, and we just smirk and update our modules on CPAN. But while that means we're not getting caught up in the "narcissism of small differences" (to refer to an earlier commenter), it also means we're not part of the noise on the web. There will probably never be a "Perl is a Ghetto" blog post written, and while that's obviously a good thing, it can also lead to the perception that, "man, nobody's talking about Perl, nobody's even bashing Perl, is it dead?"

d) That said, in my opinion these languages don't hold a candle to Perl when it comes to back-end engineering. We love talking about startups here at HN and thus, we talk a lot about startup problems and their solutions. But if your startup actually grows into a real company, you're going to encounter problems like, "we need a system to allow our analysts to manage our SEM campaigns and reconcile our cost and revenue" or "this partner doesn't have an API so we need to spider their interface to get the daily data and import it into our data warehouse." And any company that dismisses Perl as an option for those problems just because of (a) (b) and (c) is doing their company a disservice.

TL;DR -- Perl's strengths don't match the trendy topics on communities like HN, but it still has real value for real business problems.

Re: Ask HN: Is Perl dead?

#37
post #23
post #13

FYI, I use Perl extensively for text file parsing and processing Yeah, me too, but that's the issue. It's great at that. Great at quick and dirty command line hacks. Hell, most of my PhD code was written in Perl. (Something I take a perverse satisfaction in.) But it's not great for rapid webapp development, it's probably harder to hire people, there are fewer libraries and interfaces and open source toolkits, etc - s…

>>But it's not great for rapid webapp development Interesting, do you know what you talk about and have references? AFAIK, there are some quite neat libraries and a better OO system than the usual competition (Ruby, Python, Java et al). Etc.

Observe the vague handwavy terms I used: I'm about 18 months out of date as I made the switch to Python around the start of 09.

At the time, Catalyst was very unfriendly (a quick google - it still is) and nowhere near as rapid-accessible as Django, just because of the amount of head-twisting you have to do to get things up and running. It may have changed, but frankly I have little interest in investigating it, and I expect most other people who drifted away from Perl are in a similar boat.

Also, having developed an OO backend for a site running in Perl, I never wish to do so again. Your definition of 'better OO system' clearly differs from mine.

Re: Ask HN: Is Perl dead?

#38
post #8

It is a very useful tool that serves many needs. It isn't "dead" anymore than the Norwegian language is "dead". It might just not be your first choice for your next project.

> It isn't "dead" anymore than the Norwegian language is "dead".

It's just pining for the fjords?

Kidding aside, it still does well here:

http://www.langpop.com/

Although if you put Ohloh and Freshmeat at 0, it does significantly worse.

Re: Ask HN: Is Perl dead?

#39
post #37
post #23

Earlier quoted context omitted.

>>But it's not great for rapid webapp development Interesting, do you know what you talk about and have references? AFAIK, there are some quite neat libraries and a better OO system than the usual competition (Ruby, Python, Java et al). Etc.

Observe the vague handwavy terms I used: I'm about 18 months out of date as I made the switch to Python around the start of 09. At the time, Catalyst was very unfriendly (a quick google - it still is) and nowhere near as rapid-accessible as Django, just because of the amount of head-twisting you have to do to get things up and running. It may have changed, but frankly I have little interest in investigating it, and I…

He's referring to Moose, which is an insanely good object system, which wasn't prevalent at all 18 months ago but is nearly de rigueur in all but a handful of cases today. It's a mashup of CLOS, Perl 6, Smalltalk and a few other things that remains consistent, Perlish and intuitive. It's also crazy extensible - just look at the MooseX namespace on CPAN to see what I mean.

Re: Ask HN: Is Perl dead?

#40
post #13

FYI, I use Perl extensively for text file parsing and processing Yeah, me too, but that's the issue. It's great at that. Great at quick and dirty command line hacks. Hell, most of my PhD code was written in Perl. (Something I take a perverse satisfaction in.) But it's not great for rapid webapp development, it's probably harder to hire people, there are fewer libraries and interfaces and open source toolkits, etc - s…

> from Perl to Python (it's a really easy jump)

I disagree. Python is incredibly restrictive when you're used to perl. I would be so frustrated if I went that direction.

Post reply on HN