68 points · by lelf · 13y ago · 57 comments
It's a shame it got a reputation as being uncool as it's a very capable language and nice eco system.
I also think the criticism about unreadability is way overblow, it's what you make of it really.
The Perl community, tired of waiting for a workable Perl 6 implementation, has lavished some fine attention to Perl 5 and it's in incredible shape, but the target community, also tired of waiting for Perl 6, has largely moved on.
It's going to be tough to bring people back into the fold. Everybody wanted Perl 6, and it barely works now. The features in 6 are amazing (might even be enough to get folks to come back), but the implementations are all over the place. Perl 6 needs a couple of killer apps. The CFG work might have made handling XML stupid simple, but XML is quickly falling out of relevancy.
The transition from Perl 5 to Perl 6 might go down as one of the great language mismanagements in history. For goodness sake, it's been in design for almost 14 years! And there are really just now workable implementations coming out, but all are still incomplete, lack features, robustness and speed.
I'm also guilty of this, having been excited about Perl 6 a decade ago, but taking a wait and see approach that lasts to this day, until development settles down. I don't want to commit lots of work that will be made obsolete the next time Larry decides to change an operator's semantics.
Is it finally time to sit down and learn Perl 6?
That said, there really haven't been too many major changes to the language itself (as opposed to the implementation) in the last couple of years. I have several modules I wrote 3+ years ago, and keeping them up to date with the language has only required trivial changes in that time. You could certainly start learning the language today using the Parrot implementation with the knowledge that something better will be along very shortly.
It's not quite as dramatic as it sounds:
Yes, Perl6 was announced in 2000, but the actual implementation effort (both Parrot and Pugs) started in 2005.
Guess what got started a year later (2006) and isn't finished yet as well? Rust.
Is it finally time to sit down and learn Perl 6?
Learn it? Certainly. Use it in production? Not yet. The Parrot backend was used to nail down the object system. Supposedly, the mostly-working JVM backend will be used to nail down threading semantics.
Concurrently, they are developing their own VM to get rid of the semantic mismatch between the language runtime and backend VM.
Parrot started in 2001, and there was at least one P6 implementation in the works shortly after:
https://github.com/parrot/parrot/commit/9bb281bf85088000ee40...
The Parrot backend was used to nail down the object system.
That's not how I remember things. Jonathan may have implemented the current object system on Parrot, but then he prototyped one on the CLR and one on the JVM (or vice versa), then wrote one for Rakudo based on that.
Concurrently, they are developing their own VM to get rid of the semantic mismatch between the language runtime and backend VM.
That's a very charitable interpretation of what they're doing.
But if we believe in the Osborne effect, then already from 2000 the announcement of Perl 6 started to eat momentum from Perl 5.
The idea for Perl 6 was the same: Clean up the language, add new features at the expense of compatibility, and create a v5 → v6 transition tool. During the evolution of Perl 6, this original goal became less important. Nowadays, Perl 5 and Perl 6 are seen as two sister languages in the same family, which take inspiration from each other, but are independent. There won't be mass migrations to v6 once it “arrives” (it already did in the form of Rakudo Star). There are, however, efforts to run v5 and v6 code in the same VM.
Readability was never an issue. We follow a few common guidelines and with Perl::Tidy we get consistently formatted code.
So in principle Perl is perfect for us, the only drawback is that there is less and less library support for Perl. Most services like for example Stripe have libraries for Python, Ruby but don't bother with Perl (and I don't blame them). Third party libraries from CPAN are usually not that robust and well maintained.
But in general the Perl backend is the most robust part in our codebase and I would not trade it for any other language.
If you have an experienced team and new programmers willing and eager to learn Perl, lady Luck can go for a fuck.
I think it would change your mind about a number of things!
use Modern::Perl;
use Moose;
it's quite different thing. Perl6 may become cool, but it's a different story.(Moose is full-grown object system, with meta object protocol, nice syntax and implemented completely as a library).
Perl got a bad rep for two reasons. First, writers of boutique languages wanted a reason to feel good about themselves. Second, certain segments of the Perl community (I won't name names) insisted on writing obfuscated, baffling code that read like line noise from a modem.
The Perl community counteracted this, but there were still enough of these people out there to give it a bad rap.
In the meantime, if you're a Perl programmer who can write functional, efficient, clean and readable code, there's no shortage of stimulating work.
I just took a quick look at the manual. The class definitions look seriously verbose. I guess with some coding templates or macros, it wouldn't be too bad, though.
To me, Perl represents the most organic language out there. It arose from a collection of traits in other languages and macro vocabularies. It's held together by a series of lexical assumptions that work because they mirror our intuition.
But even more, it's kind of the anarchy zone. You can write whatever type of code you want. However, the people who make readable, clean, efficient, and functional code are the ones who rise.
With CPAN, and the ingenuity of millions of Perl hackers, there's nothing it can't do. If you've never tried it, play around in it awhile. You might like it... and stay forever.
http://geekfeminism.wikia.com/wiki/Perl_is_my_bitch
It's so telling how Randal Schwartz, purveyor of hooters booth babes and publisher of "amihooternot", chimes in about how it's bad because it gives Perl an image of being the tool of "teen perl hacker misogynist guys," and that's harder to sell to Corporate America. Yet it doesn't even occur to him to mention that it's also bad because it's WRONG and disrespectful to women and offensive to people who aren't sexist.
The Perl community certainly has a long standing and well earned reputation of being "teen perl hacker misogynist guys," that drives away both women and Corporate America.
See also:
http://geekfeminism.wikia.com/wiki/Randal_Schwartz
http://geekfeminism.wikia.com/wiki/Stonehenge_OSCON_parties
There were less than 30 total comments in this discussion, including those five.
You must be the saddest troll on HN. I'll not feed you. Sorry for not brightening your "life".
Newfags always gonna hate oldfags and their rusty (but trusty) old battle-hardened toolboxes.
http://www.nntp.perl.org/group/perl.perl5.porters/2012/05/ms...
The Chuck Moore quote is especially ironic given what Perl represents in the programming language design space...
You’ve got gigabyte disks; you’ve got megabyte RAMs.
The book this appears in was published 2009, though the interview with Chuck Moore surely happened somewhat earlier. But yay for triple order-of-magnitude improvements!
Was slashdot still relevant in 2005? Was perl? I feel like they both peaked right around the turn of the century.
Yesterday, cmccabe was snarky about subtle changes in versions of the Python/Ruby std libs. Today, he/she is snarky about a similar language, which really take backwards compatibility seriously. (Google darkpan/backpan for discussions.)
(But ok, he do seem to not have looked at Perl since the turn of the century.)
I agree that Perl has done a very good job with backwards compatibility. I have run many ancient Perl scripts that all work fine, and yes, CPAN is huge. I never liked the language, but that for other reasons, not worth going into here. Feel free to mod me down or whatever, just speaking what is on my mind.