Live data from Hacker News

Why is perl losing its touch?

google.com

41–50 of 73 posts

Re: Why is perl losing its touch?

#41
Because everything perl can do python can do better? Okay that is a though claim but perl and python fit about the same area - a dynamically typed scripting language that can take over when that shell script gets too big and all the way up to a full-blown app or website, but you are not going to win any prizes for speed - but python doesn't have all the weird crap that goes along with perl (what exactly does $#% mean again?) and it has everything else.

Perl was a great language in its day but I just don't see a case where are new programmer is better of starting a new project in perl rather than python.

Re: Why is perl losing its touch?

#43
post #15

Earlier quoted context omitted.

Comparing 'perl language' and 'python language' shows a similar trend: http://www.google.com/trends/explore#q=perl%20language%2C%20...

Which falls prey to the fact that people don't need to disambiguate "perl" when searching, but often do for "python". Changing it to "perl" and "python language" isn't very useful either, as it so severely limits the python query as to be unusable. To be clear, I don't doubt there is a drop in Perl mindshare and usage, I just don't think the original comparison, or the alternative one you posted, really shows a relat…

No, it doesn't. There's no reason for the proportion of people looking for perl related stuff who use "perl language" as a search term to change over time. That proportion might affect the absolute numbers, but not the trends.

Re: Why is perl losing its touch?

#44

I'm not sure you are comparing apples to apples here. I would instead consider a graph like this one: http://www.google.com/trends/explore#q=%2Fm%2F05zrn%2C%20%2F... Though I am not sure how Google categorizes search terms intro specific things like a programming language versus a python snake, etc. I wasn't offered a Python language selector so I changed it to Java and added Go for fun.

I'm sure you are comparing apples to oranges here. Perl mainly is an alternative to shell script. A language for administrators.

Re: Why is perl losing its touch?

#45
post #41

Because everything perl can do python can do better? Okay that is a though claim but perl and python fit about the same area - a dynamically typed scripting language that can take over when that shell script gets too big and all the way up to a full-blown app or website, but you are not going to win any prizes for speed - but python doesn't have all the weird crap that goes along with perl (what exactly does $#% mean…

Why wouldn't you want sigils?

Re: Why is perl losing its touch?

#47
post #37

Perl always will be my favorite language. Its absolutely a joy to write. What's interesting to me is that all the things that people like about JavaScript, Perl had first, and I think better (closures, first class functions). The criticisms that people had about Perl, such as that it langrage like line noise was unfortunate. Being able to tell whether something was a scalar, array, or hash by the character that prece…

Which popular language nowadays doesn't have closures? Even the so hated (by HN) PHP has had that for many years already.

Python is often claimed not to have closures but that isn't really true, what it doesn't have is anonymous functions. It does have a lambda statement, but that is limited to a single statement.

So what you end up writing is more akin to:

    def multiplier_maker(a):
      def temp(b):
        return b * a
      return temp
That is because Python allows you to declare a function anyware, even inside other functions.

Re: Why is perl losing its touch?

#49
post #21

Earlier quoted context omitted.

I have to agree. There's nothing you need Perl for, and nothing it specifically offers. Like if you want to do something in Wordpress you can only use PHP, no choice. If you want to code a Linux driver you have to use C. If you want nice features like awesome readability you choose Python. If you want awesome power you use some kind of Lisp or Haskell. There is not a single (well known) reason for using Perl. Even if…

No language handles regular expressions as easily as Perl. Perl's power has always been in its power to do text processing. That said, it's objects and pointers are a joke. At least Perl 5's are. As for Perl 6, I don't know. It couldn't hold my attention for 15 years.

How does Perls regex stand up against Python? I mean once Perl was the pearl of regex/text processing (The Common Lisp package that everybody uses for regexis pcre, Perl Compatible Regular Expressions) but that was a long time ago.

Re: Why is perl losing its touch?

#50
post #4

This one page isn't a good indicator of a language's popularity. It probably includes results referencing Monty Python, as indicated by the news article headlines, or the animal python. The TIOBE index might be a better indicator of programming popularity using internet search results: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.... but that's still not perfect. You could also look at the number of jo…

You can filter a lot of that out.

http://www.google.com/trends/explore#q=perl%2C%20python%20-m...

Looks like the interest in monty python and snake pythons is pretty constant.

Post reply on HN