I make my living writing single-page web apps in JavaScript. These days, everything I do, even on the server, is in JavaScript.
What does Perl do a hundred times better than the latest in the JavaScript universe (ES6, Meteor, node.js, etc.)? If it doesn't, that right there is your answer.
Well, for a start, it's relevant for more than 3 months.
Asking for doing something 100 times better is quite a mouthful, coming from a JS developer.
perl does one thing hundred times better than (server-side) JavaScript: when you need to get data out of a server that you have no sudo privilege because your boss asked you to get stats on your trades ASAP.
This happens shockingly frequently in finance, and perl (and actually, awk) was the only scripting language that I could safely assume was installed.
A concise POSIX interface. Conciseness in general, really. How many node one-liners do you see?
There is not a single (well known) reason for using Perl. Even if it's 10% better and faster than any other language without a unique selling point the cost of switching is just too high in most cases.
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.
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 job postings on sites like Indeed asking for Perl experience.
Looks like this internet thing was just a passing fad after all.
EDIT: Even more interestingly, there is an inverse relationship between searches for PHP and pizza. What does this mean? http://www.google.com/trends/explore#q=php%2C%20pizza&cmpt=q...
How to use a for loop, hash, or array?
I'm not saying that the supply of noobs drying up is a good thing, but...
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.
That's not to say that the trend shown is entirely incorrect, just that it would be mostly coincidental to the data shown here.
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 relation between Perl and Python in any meaningful way.
http://www.google.com/trends/explore#q=perl%2C%20python%20-m...
http://www.google.com/trends/explore#q=perl,+python&cmpt=q&c...
http://www.google.com/trends/explore#q=Perl%2C%20JavaScript&...
And they both have a similar decline.
http://www.google.com/trends/explore#q=ada%2C%20JavaScript&c...
http://www.google.com/trends/explore#q=JavaScript%2C%20jquer...
The absolute decline looks similar but given javascript's higher starting value the relative decline is much less.
I.e. a really nasty downward spiral that leaves perl occupying the same space as COBOL and FORTAN - a language used in massive legacy systems, but rarely used in new systems unless implemented by ancient wizards.
One the upside, pretty soon Perl wizards will be able to charge the same rates as COBOL & FORTRAN wizards...
That's a compelling story. Lots of folk believe it, including, it seems, you. But have you checked your sources and data? For those interested in data and irony, watch about 2 minutes of either or both of these from last summer:
The slashdot story ("Always check your sources"): https://www.youtube.com/watch?v=hHy5h6ZRL6M#t=4m
CPAN data: https://www.youtube.com/watch?v=hHy5h6ZRL6M#t=7m
> Perl 6's infinite development cycle sapped the life out of the community.
Again, lots of folk believe this story. For another dollop of irony the leading current P6 attacker was once the leading P6 booster around 2010. When he was pro P6 he didn't accept suggestions that it was slower than dog slow. (It was.) Now he's anti P6 he doesn't appear to be accepting that it's been speeding up every month and is due for official launch within a year. (It is.)
P6 is now flying under the radar but stories like this are around if you look for them, like this from a day or two ago here on HN: https://news.ycombinator.com/item?id=9089259
I've asked you multiple times in multiple places not to speak for me. Your assertions here are nonsense.
Please cease and desist.
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 preceded it was helpful.
Being able to slap a set of braces around code to create a closure was also much better than needing to do the same in a function like JavaScript.
Perl formed some much new ground. CPAN was the predecessor of npm, etc.
I'm just glad to be able to write functional code again through JavaScript, just like when I wrote Perl. I don't miss writing Java (or any static typed object oriented language) at all, and hope I never will again. I just hope that ES6 doesn't turn JavaScript engineers into object oriented programmers.
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.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.
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.
Perl is one of the few languages associated with the web that was really pre-web. It's because of Perl's inspiration that we have PHP and Python. So while the language evolved, it was never web centric at heart.
Another great thing about Perl was in the early days of the web it appealed to both real coders and script kiddies. But as time went on the script kiddies tended to move on to languages like PHP, so only the pros are really left.
The last issue with Perl was that it was never a favorite of computer science programs, so it was always a bit of a hackers language at heart. So there is a wonderful community around Perl, but it makes it very hard if you run a shop to find kids out of school who know the language vs. Java back in the day (and other languages today).
But I know a few coders who still really love Perl in hearts, so while the popularity hasn't grown I would say the language does have a very hard core dedicated following.
It's funny, it found a home for a long time in various linguistic programs.
Due to the financial industry?
Perl and Python are similar, excellent programming languages, and I don't imagine Larry and Guido argue like children about it when they meet at conferences.
I'll just quote Bjarne Stroustrop: There are two kinds of programming languages. The one's people complain about, and the one's people do not use.
I also strongly recommend looking at the headlines marked on the graph.