News for hackers. Stuff that matters.
Re:Perl 5.26.0 released by 0xFFC on Thursday June 01, 2017 @05:40AM (#14459000)
Guys I am genuinely asking this and I have zero intent on bashing on Perl. What is the position of Perl industry right now? how much it can compete with Python. Where does it compete? is it on losing side ?

P.S. I am student and I have no real perspective on what is going on in industry right now.

Re:Perl 5.26.0 released by stevekemp on Thursday June 01, 2017 @06:02AM (#14459064)
Even now I start web-projects with Perl.

It's not "cool", it's not "sexy", but there package collection (http://cpan.org/) is __huge__.

I find it unlikely that new people will suddenly rediscover perl, in the golang/node.js/python-centric state the world is in. But the people who love it, do continue to love it, and do continue to do useful and essential things with it.

Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @08:42AM (#14459738)
The CPAN argument for choosing Perl was relevant about 10 years ago but if you look at http://modulecounts.com you'll find Ruby, Python, PHP, JS and Java have an order of magnitude more libraries to choose from. CPAN is not __huge__ by today's standards. Drupal alone has the same number of modules. The declining community also means many of the libraries on CPAN are unlikely to be maintained.
Re:Perl 5.26.0 released by wazoox on Thursday June 01, 2017 @11:59AM (#14461412)
Hum, depends upon your definition of what's a module. from cpan.org front page:

The Comprehensive Perl Archive Network (CPAN) currently has 186,953 Perl modules in 35,278 distributions, written by 13,095 authors, mirrored on 248 servers.

Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @10:33AM (#14460566)
Yes, "stableperl" maintains a small number of backported bugfixes to Perl 5.22: http://blog.schmorp.de/2015-06-06-a-stable-perl.html

The author cites a couple of issues as the motivation behind the release.

Re:Perl 5.26.0 released by forinti on Thursday June 01, 2017 @06:57AM (#14459285)
CPAN has never failed me. I love it.
Re:Perl 5.26.0 released by TurboHaskal on Thursday June 01, 2017 @06:19AM (#14459123)
There are still jobs specially on the banking sector, but these are not the kind of jobs you want. Its position in the industry is somewhat dying as I'm not aware of many new projects being written in it. I am myself in the process of phasing out a significant Perl codebase in exchange for Java.

I think it cannot compete with Python at its current state. This has nothing to do with the language (I consider Perl to be vastly superior) but rather its ecosystem and lack of momentum.

Concerning scientific programming, PDL used to be among the first choices but I'm not even sure if it's being used in bioinformatics anymore.

Its last nail in the coffin was missing the DevOps hype-train (Puppet, Chef...)

So even though the language is awesome I wouldn't recommend a developer in 2017 to learn it

Re:Perl 5.26.0 released by oblio on Thursday June 01, 2017 @07:57AM (#14459512)
> I think it cannot compete with Python at its current state. This has nothing to do with the language (I consider Perl to be vastly superior) but rather its ecosystem and lack of momentum.

In this specific case, these are contradictory.

Perl and Python had roughly the same amount of corporate backing (almost none) and Perl had a huge head start.

If Perl as a language would be "vastly superior", Python would have never developed its ecosystem and wouldn't have ever gathered enough momentum.

Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @08:53AM (#14459803)
Python's growth in popularity is largely due to its superior data science libraries and the backing of Google. Without these it wouldn't be where it is today. Perl's stewardship is largley responsible for its decline. If Perl6 hadn't taken 15 years to complete Perl's popularity might be different. Perl6 is far superior to Python and most popular languages. It's just not performant at string/regex handling which is ironic considering regex was Perl's forte.
Re:Perl 5.26.0 released by dozzie on Thursday June 01, 2017 @11:55AM (#14461373)
> Python's growth in popularity is largely due to its superior data science libraries and the backing of Google.

Both are false. Data science libraries are quite new development that happened because Python got popular, not the other way around. Backing by Google (whatever you mean) was irrelevant, as the main selling points for Python dozen years ago was simple and readable syntax and nice web toolkits (a movement that followed Ruby with its RoR).

> If Perl6 hadn't taken 15 years to complete Perl's popularity might be different.

Perl6 didn't compete for popularity with Perl, because it was essentially non-existent back then. Perl popularity decline cannot be attributed to Perl6.

The thing is, Perl is a very complex language, but has competiton that is simpler grammar-wise and similarly powerful and expressive: Python and Ruby. It's easier for newcommers to learn Python or Ruby than Perl, so they rarely dig into Perl. This means that the number of people leaving the language (a normal thing for any language) is not matched by the number of young programmers, which leads straight to decline.

Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @12:56PM (#14462038)
Ruby 1.0 was released in 1996 and Python 1.0 in 1994. If Perl's demise was due to the simpler syntax of Python and Ruby why was Perl ever popular? Answer: Perl CGI at the dawn of the WWW. I'd date Perl's decline from around 2005 so Django and Rails might have more to do with it than languages and syntax.
Re:Perl 5.26.0 released by pseudalopex on Friday June 02, 2017 @08:00AM (#14469233)
Perl was popular because it had a huge head start. Perl 5 was released the same year as Python 1.0. CPAN launched in 1995, PyPI in 2003.

Python began to pick up momentum around 2000. It was able to break out of the "scripting" niche because it had good OO support and encouraged a consistent style that made it easy for several developers to work on a large project.

Rails probably marked the tipping point, but it wasn't just the framework. A lot of Perl programmers found out they liked Ruby. You're right that Perl 6 was part of the problem; it might be where Ruby is today if it had come out in 2003.

On the other hand, Ruby probably wouldn't exist if Perl 5 had a better object system.[1] It's "Ruby on Rails" because DHH fell in love with Ruby.[2] The creators of Django learned Perl before falling in love with Python.[3] So that has something to do with the languages too.

[1] http://www.linuxdevcenter.com/pub/a/linux/2001/11/29/ruby.ht...

[2] https://www.quora.com/Why-did-David-Heinemeier-Hansson-choos...

[3] http://www.akitaonrails.com/2008/01/01/chatting-with-adrian-...

Re:Perl 5.26.0 released by petre on Thursday June 01, 2017 @03:28PM (#14463636)
For me it's quite the opposite: knowing Perl I have little incentive to learn Python; the syntax is quite different, it uses significant whitespace that can easily change the logic. With Ruby it's different because Matz was inspired by Perl and the language is quite ellegant. Too bad it's equally slow. Maybe if mruby/crystal changes that it would be a nice language to learn.
Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @08:38PM (#14466455)
With TruffleRuby, Graal and Substrate VM all aimed at improving Ruby's speed I wouldn't write-off Ruby purely on performance. JRuby has also recently made great strides in performance.
Re:Perl 5.26.0 released by petre on Friday June 02, 2017 @12:39AM (#14467493)
Well okay but Jruby/Truffle is a JVM language. I just want an interpreter + code, or a binary to drop anywhere. Mruby is fast but you have to build modules into it at compile time. It would be nice if it had something like LuaRocks. Anyway, Ruby is doing fine, there is much innovation going on.
Re:Perl 5.26.0 released by oblio on Thursday June 01, 2017 @10:15AM (#14460378)
Perl is not more readable than Python.

I know that "readable" is a subjective trait, but Python is 1 cm away from being pseudocode.

And when a programming language is basically the thing we write when we don't have any tools to assist us, that says a lot about the language's syntactic quality, including its readability.

Both the data science libraries and Google's backing come from this. And to be honest, I don't really see how Google's backing mattered that much... 99% of the popular Python libraries have nothing to do with Google, especially Django.

Re:Perl 5.26.0 released by TurboHaskal on Thursday June 01, 2017 @09:02AM (#14459864)
I don't know how I feel about that. We're talking about subjective measurements here.

There are many languages that are "better" than JavaScript for example, yet not many that enjoy its share of success.

Re:Perl 5.26.0 released by oblio on Thursday June 01, 2017 @10:18AM (#14460408)
That's why I chose my words carefully in the previous comment.

Perl and Python are perfectly comparable regarding origin, corporate backing, marketing, platform restrictions, etc. Javascript isn't.

Perl and Python were both started by a BDFL, acquired a grass-roots community that promoted them and never really had 1 major corporate backer or sponsor that outshined all the others. They also didn't become the main or even the only suppported language for a platform.

They had a really similar trajectory, just with different peaks. Perl peaked earlier and IMO lower.

Re:Perl 5.26.0 released by maxlybbert on Thursday June 01, 2017 @10:00AM (#14460244)
Perl has great Unicode support. Not just Unicode regexes, but a lot of built-in Unicode support ( https://perldoc.perl.org/perlunicode.html ). I have no idea if other languages have caught up, though.

Perl doesn't have anything like Python's GIL. People have other complaints about threading in Perl, but you can count on things running in parallel more often.

I believe Larry Wall is correct that he borrowed more from Lisp than Guido did. Perl built in functions are also often modeled after POSIX functions (that may not mean a lot to you, but I like it).

On the other hand, Perl 5 doesn't have anything like Python's "yield", and the closest it gets to list comprehensions is a Lisp-style "map" that is NOT lazily evaluated. And I've never managed to get a job where I was expected to write Perl (I've written Perl utilities at plenty of jobs, but Perl was never on the official job description).

Re:Perl 5.26.0 released by SmirkingRevenge on Thursday June 01, 2017 @12:06PM (#14461501)
Your comment about list comprehensions reminded me of an old, interesting Perl book, "High-Order Perl", which explores functional programming techniques in Perl. One of the chapters implements a lazy map - which, turns out, is actually quite easy to implement in a few loc, since Perl supports closures and high-order, first-class functions.

http://hop.perl.plover.com/

Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @10:08AM (#14460305)
What do you mean by Perl functions being modeled after POSIX functions?

My only points of reference are POSIX being a UNIX system specification which defines both a C language reference and system userspace specification. I also have a vague notion of POSIX specifying the fundamental behavior of shells.

I'm just not quite sure which point of reference to apply.

Re:Perl 5.26.0 released by hoytech on Thursday June 01, 2017 @10:47AM (#14460694)
In addition to what others have said, perl also directly exposes errno via $!:

    $ perl -E 'unlink("/etc/passwd"); say (0+$!)'
    13
    $ grep 13 /usr/include/asm-generic/errno-base.h 
    #define EACCES          13      /* Permission denied */
Of course $! is a special dual-val so if you treat it as a string you get the nicer strerror(3) equivalent:

    $ perl -E 'unlink("/etc/passwd"); say $!'
    Permission denied
That said, some people prefer autodie: https://metacpan.org/pod/autodie
Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @11:16AM (#14460944)
Wow, interesting. The language has type coercion, and makes full use of it. I likey :D

Thanks for the example too!

Re:Perl 5.26.0 released by cestith on Thursday June 01, 2017 @02:29PM (#14463029)
It actually goes a bit beyond type coercion. Larry Wall is a linguist. The language is actually contextual. There's numeric vs. string context for scalars and scalar vs. list context for assignments and returns.

The list of features is impressive, but taken together all at once can be daunting. I think that's why there's so much distaste for it in certain camps. It's actually possible in a function to test whether the caller wants a single value or a list and adjust your return accordingly. It has anonymous functions. It has closures. It has map() and sort(), either of which apply a custom block of code to a list. You can easily write user-supplied functions that do that, too. It has dictionaries / associative arrays (called "hashes" in the community since that's how they are implemented), regular arrays, scalar values, and a number of different object systems from which to choose.

Re:Perl 5.26.0 released by maxlybbert on Thursday June 01, 2017 @10:42AM (#14460640)
If you want to read a directory, you use the functions opendir, readdir, and closedir. You can get a decent idea of what they do by looking at POSIX documentation. They have been modified to fit Perl better, so you still have to look at the Perl documentation as well.

If you want to fork a process, you use the function "fork". If you want to call exec, Perl has it. You can even have the parent process wait on the child's pid.

This isn't a big deal to everyone, but I like POSIX, and I like knowing that if I want to do something new, there's a good chance I can start with "how would I do it in C on a POSIX system?" I have many complaints about Java, and one is that their original standard library appears to have been modeled on early versions of MFC, even though Sun had access to a superior API, since they had plenty of experience with shipping a POSIX operating system.

Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @11:00AM (#14460775)
I see what you mean.

POSIX was basically a committee ratifying things that a bunch of systems people had come up with. So it gets to the point, it's reasonably concise, and there's little noise to wade through to do most things.

Java was slowly designed by committee, taking inspiration from other languages.

I just thought of something. Maybe it's relevant.

IBM said "let make something totally different with this 8086 system, let's make everything open and not lock it down." Apple said "let's do something different with the Macintosh, let's enforce absolute control over the hardware and software so we can perfectly unify them."

Maybe Sun got fed up with SunOS and said "let's make a language and runtime that's totally different - something so different that it resists influence by platform architecture."

Re:Perl 5.26.0 released by maxlybbert on Thursday June 01, 2017 @11:47AM (#14461301)
I think Java's "all OOP, all the time" approach influenced their standard library design. I don't like the result.

"Modernism was based on a kind of arrogance, a set of monocultural blinders that elevated originality above all else, and led designers to believe that if they thought of something cool, it must be considered universally cool. That is, if something's worth doing, it's worth driving into the ground to the exclusion of all other approaches. Look at the use of parentheses in Lisp or the use of white space as syntax in Python. Or the mandatory use of objects in many languages, including Java. All of these are ways of taking freedom away from the end user 'for their own good'. They're just versions of Orwell's Newspeak, in which it's impossible to think bad thoughts. We escaped from the fashion police in the 1970s, but many programmers are still slaves of the cyber police" ( http://m.linuxjournal.com/article/3394 ).

Re:Perl 5.26.0 released by i336_ on Friday June 02, 2017 @11:53AM (#14470804)
Very very interesting thoughts, thanks very much for this comment. Would +10 if I could.

The article was an excellent read too.

I've noticed that a lot of people around the 18-25 demographic (and some outside that range) have mental health issues that (among other catastrophes) cause detrimental effects to emotional development. I was thankfully able to get off this train myself using alternative therapies about ten years ago, but one of the things I observed about myself was a tendency to hone in on one specific idea present in something I was thinking about and then redefine what I was focusing on on the basis of and in terms of that idea, in many situations irreversibly discarding any other possible interpretations. I essentially didn't have the capacity to wield concepts that required careful balance between a series of discrete ideas.

I wonder a lot about how much of the noise margin present in current research and work is caused by related developmental issues.

Re:Perl 5.26.0 released by falsedan on Thursday June 01, 2017 @10:15AM (#14460382)
Perl has a core function called 'unlink', which maps directly to unlink(2). Same for stat, rmdir, link, etc.

They're good for when you want something more than what the coreutils give you, but don't want to compile some C.

Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @10:45AM (#14460670)
Oooh, I see. Nice!
Re:Perl 5.26.0 released by krylon on Thursday June 01, 2017 @06:15AM (#14459112)
I don't use Perl for anything that I suspect will amount to more than 1,000 lines of code.

But for smaller scripts that automate tedious tasks or massage data to connect two otherwise software systems or generate a report-ish overview of a database/table, it is very hard to beat. Ruby comes close, but then again, Perl has been relentlessly optimized and fine-tuned over the last ~15 years, so for the stereotypical use-cases it is actually very fast, even compared to what one could cook up in C without weeks of hand-optimization and tweaking.

Someone once said that Perl is to batch-processing of text what Emacs is to interactive editing. I think the comparison is somewhat accurate.

Re:Perl 5.26.0 released by forinti on Thursday June 01, 2017 @06:50AM (#14459251)
Exactly. I have dozens of scripts in production and most are 30 lines or less. Most of them read various files and load them into our databases. I do this in perl, because I can cook them up in minutes. Java, which is the official language around here, is just too much of a bother.

This week I realised that a script I wrote about ten years ago has become an indispensable part of my company's infrastructure: it converts Office documents to PDF using OLE. It's about 30 lines long of very clear code.

Re:Perl 5.26.0 released by walshemj on Thursday June 01, 2017 @06:33AM (#14459188)
and I think it has replaces a lot of code that back in the day would have been written in, bash sed and awk
Re:Perl 5.26.0 released by rurban on Thursday June 01, 2017 @06:26AM (#14459156)
on the contrary perl5 has been relentlessly de-optimized and destroyed over the last ~15 years by its maintainers. how did you get to this interesting opinion? do you really believe the p5p marketing hype?

perl5.6.2 still blows away all newer releases performance and memory usage wise. 15 years ago the author was still active.

Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @10:43AM (#14460654)
It's sad you're being downvoted. I've found similar sentiment elsewhere, and I'm interested to learn more.

stableperl (http://blog.schmorp.de/2015-06-06-a-stable-perl.html) is a fork of perl 5.22 with a couple of tiny reversions that re-enable access to some internal state required by certain CPAN modules.

The author talks in other blog posts (http://blog.schmorp.de/2016-12-29-griefing-the-perl-api.html, http://blog.schmorp.de/2015-11-12-tidbits-why-coro-crashes-o..., http://blog.schmorp.de/2015-12-15-tidbits-cgipm-a-data-point...) about the decline of Perl's cohesion.

It's sad to see.

--

EDIT: And now I'm being downvoted.

I have no problem with Perl, I watched the Perl 6 presentation when it was released with great interest.

Perl remains on my list of languages to learn (I know, I know...). It's up there. And that's why I said I was sad to see datapoints like the one I linked. I want Perl to keep going strong, and I hope it lasts another 20 years. I guess I added this comment because I wanted to find out if there was anything I could do.

Re:Perl 5.26.0 released by duskwuff on Thursday June 01, 2017 @03:05PM (#14463411)
Mark Lehmann and rurban are considered... let's just say, a vocal minority in the Perl community. Their opinions are not widely shared.
Re:Perl 5.26.0 released by i336_ on Thursday June 01, 2017 @06:53PM (#14465665)
Oh. That's unfortunate. Thanks very much for the headsup.

I wouldn't mind learning more about this, perhaps via email (as an alternative to public discussion that might(?) start a flamewar).

Re:Perl 5.26.0 released by rglullis on Thursday June 01, 2017 @05:54AM (#14459040)
The only big company I know that uses Perl extensively is booking.com, and I think that has more to do with any technical merit from the language, and just that is what they started and it was working for them.

To be honest, I think Perl still powers a whole lot of systems, and certainly is a powerful tool for someone who is a Unix sysadmin, but this kind of job is dying. And as a language, I think Perl has nothing on Python or even Ruby, or even PHP nowadays.

Re:Perl 5.26.0 released by pwr22 on Thursday June 01, 2017 @06:53AM (#14459271)
I saw a talk at FOSDEM where a developer who worked at Booking said something along the lines of

- Big company bought lots of different hotel sites

- Big company decided to consolidate them into one system

- Booking (the Perl shop) won out

So I don't think it's necessarily just that "it started in Perl", if so then it could easily have been consolidated based on one of the other platforms that were not Perl based

Re:Perl 5.26.0 released by graysonk on Thursday June 01, 2017 @01:38PM (#14462515)
> Unix sysadmin, but this kind of job is dying

I don't think this job is dying, but rather evolving. Of the Unix admins I learned under, only the ones who were also okay programmers and adapted have a great job right now. The writing is on the wall for those that can't/refuse to program. I had an interview with Facebook and they were bragging about laying off 100's of sysadmins with a machine learning model.

Also, this is anecdotal, but of my friends who are software engs only, I make more as a "Systems Engineer" or "DevOps Engineer" or whatever buzzword by knowing systems and a moderate level of programming, but it is the same skills from the 90's applied to the "cloud".

Re:Perl 5.26.0 released by thinkMOAR on Thursday June 01, 2017 @06:01AM (#14459059)
Why do you think unix sysadmin function is dying? Just curious.
Re:Perl 5.26.0 released by dagw on Thursday June 01, 2017 @06:47AM (#14459242)
As an ex-sysadmin I find that a lot of what I used to be responsible for is now outsourced to "the cloud" and most of my old tasks are being handled by other people as a secondary responsibility. Back when I started it wasn't uncommon for a 20-50 man company to have a dedicated sysadmin, whereas now I hardly ever see that.
Re:Perl 5.26.0 released by thinkMOAR on Thursday June 01, 2017 @07:06AM (#14459324)
I see this too, and i think it is a shame/mistake, i'd recommend to keep such people on board, and expand their workload/responsibilities when sysadmin work is on the low. (though when needed they should be able to dedicated their full time on sysadmin related work).

I then see it happen they no longer have any knowledge about systems and their processes, just outsourcing. And often, things then go downhill quite fast in service which leads to less happy customers which leads to lower company/employee moral etc.

People not knowing what computing power certain processes need or what its worth in money (over/under specced nodes), or backup processes not properly monitored or setup.

Re:Perl 5.26.0 released by mdnormy on Thursday June 01, 2017 @08:26AM (#14459655)
DevOps duh

In all seriousness I'm glad with these changes. I'm paid more to be NIX sysadmin, with minimal working knowledge of AWS/Azure/GCP.

All hail buzzword!

Re:Perl 5.26.0 released by walshemj on Thursday June 01, 2017 @06:31AM (#14459180)
I still think CPAN has more coverage than the equivalent in python
Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @08:58AM (#14459836)
Re:Perl 5.26.0 released by falsedan on Thursday June 01, 2017 @10:20AM (#14460428)
Which python module lets me declare object methods like:

  method foo(bar):
    self.do_foo(bar+self.baz)
? Because I get tired of all those selfs
Re:Perl 5.26.0 released by cyphar on Saturday June 03, 2017 @10:21AM (#14476489)
There isn't one, because "explicit is better than implicit". Personally I've always found that Java's optional-self syntax to be incredibly confusing when reading code.

You could try to monkeypatch it by creating a decorator that will mess around with the closures of methods to make it work, but I don't understand _why_ you would want to do that.

Re:Perl 5.26.0 released by falsedan on Thursday June 01, 2017 @01:00PM (#14462095)
…is the answer 'the downvotes module'?
Re:Perl 5.26.0 released by falsedan on Saturday June 03, 2017 @05:49AM (#14475654)
Downvoters: ok I get it: never post anything that's not a glowing recommendation of Python or an attempt to learn more about available modules/distributions.
Re:Perl 5.26.0 released by cyphar on Saturday June 03, 2017 @10:24AM (#14476498)
Complaining about downvotes won't get you any praise in this community. It comes off as whining and is against the guidelines:

> Please resist commenting about being downvoted. It never does any good, and it makes boring reading.

Re:Perl 5.26.0 released by C0d3r on Thursday June 01, 2017 @05:48AM (#14459021)
Companies who are already using a technology such as Perl usually already have both some senior people who only know that technology and/or have a big codebase on that, such that migrating the code would take considerable resources.

Basically, sometimes it's not a choice.

Re:Perl 5.26.0 released by cutler on Thursday June 01, 2017 @08:34AM (#14459699)
My Indeed.com API client, which eliminates duplicates, shows 39 Perl jobs by title search in London compared with 405 Python and 166 Ruby. For the UK it's 64 Perl to 741 Python and 274 Ruby. So most of the Perl jobs are London-based. To put it in perspective, the same stats show Golang with only half the number of Perl jobs.
Re:Perl 5.26.0 released by petre on Thursday June 01, 2017 @09:11AM (#14459918)
We are using it in production. It gets the job done.

Looking forward to a Perl6 stable release. It is stable but Rakudo still needs a bit of polush. Also it doesn't have the amount of modules Perl5 has. What it does have however, is precise arithmetic because numbers in Perl6 are internally represented as rationals.

https://docs.perl6.org/type/Rat

Re:Perl 5.26.0 released by yellowapple on Thursday June 01, 2017 @05:28PM (#14464963)
Part of Perl 6's current problem is that it doesn't have a real CPAN equivalent yet. Hopefully that'll be fixed soon.
Re:Perl 5.26.0 released by petre on Friday June 02, 2017 @12:42AM (#14467504)
https://modules.perl6.org/

Although it's merely a list. But you have zef, an installer that pulls and installs modules.

Re:Perl 5.26.0 released by yellowapple on Friday June 02, 2017 @03:10AM (#14468060)
"Although it's merely a list"

Hence why I feel that a proper CPAN equivalent does not currently exist. The Perl 6 website even admits such.

Still, it does work reasonably well for now.

Re:Perl 5.26.0 released by wcummings on Thursday June 01, 2017 @07:59AM (#14459518)
I interviewed for a Perl gig at a biotechnology company recently. There's still people using perl out there.
Re:Perl 5.26.0 released by microwavecamera on Thursday June 01, 2017 @10:28PM (#14466984)
I've been using Perl for years, it's a pretty neat language. It can seem a little esoteric at first, but once you get into Perl it's pretty intuitive. I don't know how many times when I was learning it the I thought "this seems like this should work", tried it and it did. I'm not bashing any other languages (I think it's pointless, the "best" programming language it the one that makes you productive) but Perl definitely has it strong points:

- Great for sys admin stuff. Working with files and external programs is a breeze. *NIX administration is how I got into Perl. Perl is a devops friend.

- Handy for processing anything text based. Tedious tasks like screen scraping is straight forward.

- Versatile. Don't like X in Perl? Someone else probably thought the same thing and made a module for it. Even low level stuff like Perl subroutines and OO have alternatives. As they say in Perl TIMTOWTDI (there is more than one way to do it).

- So many modules! Write less code and get stuff done fast.

- Low level voodoo is easy. Perl exposes many of the internals of the interpreter so things like adding grammars and making DSL's doesn't seem like voodoo.

- Multi-paradigm. Doesn't force a programming style on you.

- Complex data types.

Not that everything is unicorns and rainbows in the world of Perl.

- Some features/syntax can feel outdated or seem "clunky" for lack of a better term.

- Versatility is a double-edged sword. You can write code so bad/evil it can summon an elder god and Perl will happily execute it.

- So much punctuation!

If your new to the world of Perl, try out Perl 6. It has all the cool features of Perl 5 and ditches most of the weird stuff but has all the modern features you would expect from other new(er) languages.

Re:Perl 5.26.0 released by wcummings on Thursday June 01, 2017 @08:01AM (#14459530)
Modern Perl pretty much has feature parity with python. Don't listen to the "perl bigots".
Re:Perl 5.26.0 released by collyw on Thursday June 01, 2017 @06:36AM (#14459201)
I moved from Perl to python around 6 years ago. There are more jobs available for Python, though probably more competition as well.

I regularly see Perl jobs posted in London, but the wages are surprisingly poor, compared to what I could get for my Django knowledge.

Re:Perl 5.26.0 released by tacostakohashi on Thursday June 01, 2017 @08:00AM (#14459520)
I think your comment on wages is astute, and it's the same everywhere. There are Perl jobs around, but they're on legacy codebases in (parts of) organizations that are basically too dysfunctional / under-resourced / incompetent to upgrade them, and if you take the job you'll just be putting out fires and stagnating.

When you take that into account, the salary would need to be at a real premium to make it worthwhile, and the premium just isn't there.

Re:Perl 5.26.0 released by voidmain0001 on Thursday June 01, 2017 @11:54AM (#14461364)
The 2017 SO Developer Survey has Perl in 6th place for highest compensation in the world. https://insights.stackoverflow.com/survey/2017#technology-to... Interestingly, Perl places 5th in the USA for highest compensation, and it doesn't even make the lists of France, Germany, India, and the UK.
Re:Perl 5.26.0 released by tacostakohashi on Friday June 02, 2017 @11:51AM (#14470792)
Hmm, I am pretty surprised by that, but I'll take it at face value.

I suspect there is too much else going on for a comparison of salaries by language to be meaningful. Those Perl programmers are probably highly paid mainly because they have 20ish years of experience, and lots of other valuable Linux/Unix experience. There are probably lots of fresh graduate and entry level JavaScript / Java / C++ developers bringing down those averages.

I always get a good laugh when I see job ads for a "Junior Perl developer" paying 25k GBP or something. They stopped making those 20 years ago.

Re:Perl 5.26.0 released by cafard on Thursday June 01, 2017 @09:01AM (#14459860)
I learned Perl back in the Perl 4 days, and still write one-off scripts in it. Lately, though, I do most new work in Python, since the young seem more likely to know that than to know Perl.
Re:Perl 5.26.0 released by tete on Thursday June 01, 2017 @09:32AM (#14460064)
I am also not a Perl programmer (anymore). I used to program in Perl decades ago and mostly switched essentially because of the hype. I've now many years of professional experience with Python and while I really like the language and will continue to use it I have to say that Perl gets too much bashing and Python sometimes not enough.

I think there are a number of reasons for this. One is that a lot more Perl code got written by non programmers (sysadmins) than Python code. People know Perl for regexes and "golf" (writing extremely short code), which looks like "compressed" (as in Closure/uglify compiled) JavaScript: Ugly.

The main thing that I disliked about Perl is something I also dislike about C, which is writing arrows. Other than that using other languages like Python didn't get me a lot.

You can and will write ugly, unmaintainable code and long unreadable lines in both Python and Perl. The main thing that makes Python look prettier seems to be forced indention, but believe it or not Perl can be indented too. The other thing probably are sigils, which are also a rather powerful feature.

There are of course different tradeoffs. Perl is more on the Ruby/JavaScript side, where people prefer expressiveness of code, where Python people prefer simplicity. And while I always for simplicity I don't think whether the community in large sets a bit more focus here or there there doesn't seem to be a great indicator for whether to choose one or the other language.

When comparing Perl with Python or Ruby, which I think are maybe other than JavaScript make the most sense in terms of use cases I think Perl influenced both of them more than a lot of programmers realize.

Despite the others being very mature I think Perl would wins on the edge of having solid modules and infrastructure. It certainly doesn't win in terms of image and popularity. What is nice about Perl is that the shortcomings of the languages have been largely compensated via modules. That includes modules that add changes to the syntax or add really big features like Moose, adding a lot around the topic of Object Oriented Programming, more than you have available in other languages.

Another thing I want to point out is, that Mojolicious is by far the best web framework I've seen so far. It's my personal opinion, but it beats everything available in the Python and Ruby world by far. And at least with Python I've used Django and Flask for multiple years, as well as taken a look at others.

The eco system in general is really good. There is a lot in regards to testing. If you really are into test driven development that alone might be a reason to give Perl a shot and be it simply to steal some ideas around this topic. That includes many modules around the topic of testing as well as CPAN Testers and other things.

For the bad side. Other than reputation, the learning curve is higher. This has a multitude of reasons. One is that Perl was designed after natural languages, which explains many of its oddities. That's why it isn't as easy to pick up as other languages. Knowing other languages simply might not help you as much.

Another is that a lot of very old and bad Perl tutorials are around. So one might want to look at something that in one way or the other mentions Modern Perl.

One might think to know and understand Perl really quickly, but it simply takes longer than knowing how to write Perl. This is why it makes a lot of sense to read Perl code from some "big people" in the community.

In terms of industry usage. I think the big names here are DuckDuckGo, Craigslist, eBay (I think), Amazon (I think).

However that probably is very outdated.

A good reason to not learn Perl is if you want a simple language. Perl simply is not that. I changed to prefer simple languages, which might be the reason I am now sticking mostly to Go and Python. However, it might open your eyes about different ways of simplicity here and there.

It's also good to know the other side and know how "simple" certain more complex tasks can be, if you just approach them with another tool.

Okay, this wasn't so much about the industry. It's certainly around, both for older and newer projects. I've seen it both in the Enterprise and Startup scene and not just online.

It's more quiet, but then most projects that have been around for a while don't have any big news. Debian, Postgres, various OSs, etc.

Oh one more reason: If you like it boring to get stuff done then use Perl. I think the Perl5/Perl6 thing is over and everyone agrees they are two different languages, so it's not like in Python where you still have so many projects supporting just a subset of Python in order to keep compatibility.

I think if you have Perl developers, which certainly exist, even in large quantities, choosing that one rather than Python certainly won't give you a big downside or so.

I think they are pretty much the same in that regard, even though I am pretty sure that neither community would agree on that statement.

I chose Python and Go for everything I do, mostly cause I haven't been programming Perl in ages and so my development setup, my muscle memory, etc. and money is all there, still I don't think other than that Python really has an edge over Perl. Again. I know people will disagree.

I haven't touched Perl in 10+ years. At all in fact. So if anything I am biased towards Python.

Re:Perl 5.26.0 released by petre on Thursday June 01, 2017 @03:48PM (#14463845)
> The main thing that I disliked about Perl is something I also dislike about C, which is writing arrows

You're in luck. Perl6 dropped the arrows. It's using dots just like everyone else. It also dropped the floating point math, so you can now do precise calculations natively which is a big deal for financial and scientific software.

I can second Mojolicious being one of the best web frameworks. We are using it for our web infrastructure. Basically we did a full rewrite from CGI.pm to Mojolicious. It is however Sinatra inspired, so let's give credit where credit is due.

Re:Perl 5.26.0 released by monk_e_boy on Thursday June 01, 2017 @07:10AM (#14459335)
Local companies using Perl have all migrated to Python or are 90% on the way. I know a few Perl guys who are employed just to keep legacy systems working while the customers are migrated over to the new Python systems.
Re:Perl 5.26.0 released by kluck on Thursday June 01, 2017 @06:01AM (#14459058)
Honestly, you are asking the wrong question. How can two turing complete programming languages even "compete"? I though about this a long time and came to the conclusion that it's not worth the effort to come up with an answer unless objective metrics are beeing found.
Re:Perl 5.26.0 released by gkya on Thursday June 01, 2017 @08:26AM (#14459660)
Good luck finding Ioke jobs then.
Re:Perl 5.26.0 released by rurban on Thursday June 01, 2017 @06:20AM (#14459133)
Mostly legacy. perl5 is not developed anymore, just managed to death compared to the other big 3. Of the big 4 only php managed to improve itself significantly, but it's still only php.

perl5 is still top 10, runs tons of code, has one of the hugest library codebases (CPAN), and is much easier to use than e.g. python or php. ruby is better, but slower. You cannot use simply a repl in whitespace formatted language (python), and trivial scripts get soon overly large. with perl sysadmin tasks or extending bash scripts is trivial. why gdb chose python over perl is not a technical decision (perl would have fit much better), but more a management decision. perl5 is going nowhere, and python is also stagnating, just slower. with ruby there still is a bit of hope. php done everything right, but still got its legacy coders and the horribly designed old stdlib.

Re:Perl 5.26.0 released by throwaway7645 on Thursday June 01, 2017 @12:26PM (#14461688)
They're all stagnating. Nim for Python & Crystal for Ruby are the logical steps forward to get speed (GCC & LLVM respectively for compilers).