Perl 5.16.0 Released
An anonymous reader writes "Perl 5.16.0 is now available with plenty of improvements all around. You can view a summary and all the change details here. With Perl on an annual release schedule, and projects like Mojolicious, Dancer, perlbrew, Plack, and Moose continuing to gain in popularity, are we in the middle of a Perl renaissance?"
I love Perl, but I'm curious. Whatever happened to Perl 6? I remember hearing about it way back when I was in grad school, which was a long time ago.
If I can be modded down for being a troll, can I be modded up for being an orc, or a balrog?
PERL spend many a night modifying my Everyauction script/site.
by TheSpoom (715771) Uncaring Linux user here. I have nothing to add to this but please continue. *munches popcorn*
The Renaissance was characterized by lots of people learning and contributing to a wide variety of ideas, skills, sciences, and arts.
Perl is one language that does things on one kind of device.
Chromatic's Modern Perl book is also available as a free download. It's useful for Perl programmers who want to know what's new in the Perl world in the last several years.
Web development has changed so much that unfortunately you can't get started the way you could back in, say, 1999. I know because I tried it. Tried to go from PHP to Perl and kept running into 1) old Perl stuff with amazing documentation and tutorials and book and 2) new Perl stuff with a confusing mess of advice, opinions, and non-support from framework users. I was really looking forward to learning Perl, but for now I'm sort of stuck with PHP and CodeIgniter due to lots of current documentation and a very generous community.
/.er point me down the path toward modern Perl learning? Tried Mojolicious and Dancer and had to bow out; much too complex for me at this point. As I recall, the Dancer blog example was set up in such a way (using hashes, or something like that) that it was hard for a beginner to understand and extend.
Can some
I'm also currently using a bit of Python and C, but deploying Python web apps is a gigantic pain in the mess.
If my co-workers are anything to go by, absolutely anything starting with some equivalent of "#!/usr/bin/perl" or that contains the line "use strict;" is ultra-scary double-plus-ungood hate hate hate.
Which is why I'll be employed here as long as I want, since I'm one of the few people who'll do dirty parsing work, and my weapon of choice is Perl. Heh.
But, unfortunately, no, Perl won't pick back up soon. Shame. I sort of like the esoteric chaos of the language.
Perl never went anywhere. Sure, it may not be today's new hip fad language, but it's widely used and supported.
.. for prototyping and scripting. I'm a non-coder working for a software house with highly experienced coders. I taught myself Perl and C. But none of these guys will use Perl. For anything. All they will use for scripting and prototyping is *Python*. They make the usual cliche jokes about Perl being unreadable etc. I'm really beginning to think that I wasted my time learning Perl.
Everyone who switched from Perl to Ruby found out that Rubyist's (OK, Rails-ists really) are arseholes and are now returning to Perl.
Who said anything about dagos and cathedrals? That's a bazaar inference!
"Flyin' in just a sweet place,
Never been known to fail..."
We're seeing Perl as having moved because we have moved. Perl has kept doing what it has always done at a high level of excellence.
The market shifted. First, many Perl programmers shifted to PHP once the net decided security and economy of processing power were not goals on the table. Second, a lot of newer programmers are reliant on frameworks and other pre-built systems and learned the languages that go with those.
However, among those who've just kept making things work for the past 15 years, Perl remains alive and well. It is still the fastest way to get the widest range of tasks done. And if you don't code like an obscurantist maniac, it's easy to maintain.
It may look to us like Perl went away, but what really happened was an infusion of other people and trends. Now that the free money from a dot-com booming economy has gone away, Perl is shining through once again as the reliable and powerful option that it is.
Futurist Traditionalism
Boy, a sweet five-16th birthday! Happy congratulations, Perl!
So what to get a language for their 5.16th? A new Car-p? Or maybe an actual car from Dad's dealership?
Perl's strength is that it's expressive. It's not a language which is easy to learn or which generates heavily optimized code.
In the demo phase, you're not really worried about performance. The goal is to have something showing as quickly as possible, and not worry too much about how fast it runs, or how much memory it takes. Overspec your demo system for the time being (ie - make it really fast and install lots of memory), and once you have a reasonable interface go back and recode it in a simpler language which can be more easily optimized.
Languages which are simple to learn (c++, for example) are generally not very expressive. You end up wasting tons of time debugging issues of memory allocation, library interface details, and datatype conversion.
Languages which are expressive are a little harder to learn, but any individual line in the expressive language does a lot more. Since you are writing fewer lines, and since the fewer lines do more, you end up making programs more easily and in less time.
Yes, the programs will execute a little slower, but as mentioned, this is not important in the demo stage. Your productivity will be much higher.
And there are lots of places where performance simply doesn't matter. Scripts usually fall into this category.
Perl was written by a linguist, not an engineer. As such, it's harder to learn (it's got tons more keywords and context), but once you get the hang of it it's much more expressive. The following single line:
@Lines = sort { $a->{Name} cmp $b->{Name} } @Lines;
unfolds into several lines of C++, plus a subroutine definition with datatype definitions. The following line:
@Files = <c:/Windows/*.exe>;
can be implemented using one of over a dozen possible library calls in C++, but is builtin in perl. You don't have to look up the library call interface specific to your system.
I hope not. I have to maintain a large body of Perl code at work, and it's a nightmare.
"He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
I think you replied to the wrong story.
For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
Who said anything about dagos and cathedrals? That's a bazaar inference!
Well played Sir, well played indeed!
Apocalypse Cancelled, Sorry, No Ticket Refunds
Ultimate glue? That's why I'm interested in Perl 6. It's supposed to be able call C/C++ library functions directly. No more need for wrapper libraries, which is the majority of CPAN. No need for SWIG, which I find bloated.
Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
Sorry, Perl fanboys, but Perl is dead. Not only has it been eclipsed in the web domain by PHP, J2EE, ASP.Net, Ruby on Rails, and others, but in the scripting domain it has been overtaken by Python. Perl's mindshare has plummeted in the last 10 years or so, and it's only going to get worse as all the new CS grads are much more interested in functional languages, e.g. Haskell; to these people Perl seems like an example of terrible language design. Perl more and more appears to be used mostly by some old neckbeard diehards who haven't kept up with recent developments in programming.
So yeah, of course some people are still using Perl, just as some people are still using Tcl. But overall you can stick a fork in it; Perl's dead.
If they write their own code, its unreadable?
Fire them.
Its easy to write code in perl that looks like C and is readable, and still fast. (Often faster than java btw)
Yes, using shortcuts and lots of login in one line is cute, but its horrible to read, so DONT do it.
Liberty freedom are no1, not dicks in suits.
I love Perl. For quick tasks, utilities, parsers, code generators..etc have no idea what I would do without it. Actually I know I would be wasting much more of my employers time writing this shit in a different language and most likely would just choose to do a lot more shit work manually with increased chance of errors and less automation.
I get to get away with taking shortcuts that would not be advisable in a large project for pennies on the dollar. As much as I love Perl I'm not sure I would trust myself enough to use it in a huge project unless I forced myself not to use certain features.
Check out what lack of religion did to the Soviet Union, China, Vietnam, Cambodia, Cuba, and others.
No doubt totalitarian socialism had nothing to do with their outcomes, though.
(an all-powerful State can't tolerate any parallel power structures, such as a Church)
My God, it's Full of Source!
OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
I can think of over 106,000 reasons to use Perl (and by the way, CPAN is still seeing very large numbers of both contributions and contributors).
I used to hack a lot of perl4 then perl5. Then someone invented Ruby. RIP perl.
Perl6 looks similarly cool -- maybe my descendants can hack it someday.
Communism was their religion. State mandated.
Many of us like Perl. We all know how faddish the industry is about languages and tools. Remember the Rails hype. And how Python suddenly was "cool". Ok so nobody cares anymore if Perl6 surfaces or not and certainly no-one wants to learn a whole set of new Perl syntax (Perl5 is hard enough for most it seems, although I never found elementary Perl all that hard - there are so many snippet examples around).
What Perl needs is re-hyping so that all our pimply-faced younger brethren entering the industry, most of whom have probably never played with Perl, decide that Perl is uber cool, rock solid, add hyperbole here. Maybe big-bucks development competitions pitting a skilled Python team against a skilled Perl team for example? A PR campaign directed at coder websites, Slashdot etc. Something like that?
I've been using Perl on small and big projects [both my own and commercial] since about 1994 and am very aware of its defects, terse and sometimes confusing syntax, especially 'things that work but somewhat unexpectedly', weak typing unless you add module magic etc. etc.
However, it has always felt incredibly intuitive and efficient, because, I suspect, that a linguistics person rather than a hard-IT construct-elegance person is behind its design. That and the fact that you can find a library for anything you want on CPAN, a good thing and a bad thing means that it remains my language of choice.
Natural languages are messy but expressive, intuitive and efficient, with a downside of [for example] some ambiguity, there's no reason not to try this a programming language. As I said in another post, I'm not sure I'd use Perl for avionics though.
On y va, qui mal y pense!
10^-43 seconds after the Big Bang, today's universe's physical laws were in place and have never changed since. That means that God lost interest in his creation about 0.000,000,000,000,000,000,000,000,000,000,000,000,000,000,1 seconds after he started to create. Talk about ADS!
Or to put it mildly: One can talk about his moral flexibility, jealousy, short tempered manner, righteousness, self aggrandising and recklessness, but the real complaint is that he wasted so much of his talent.
(Shamelessly stolen from Vince Ebert.)
From the link:
From the link:
Sounds like a HUGE amount of development! I had no idea of the scale of the effort and love and use Perl myself.
Hard to imagine how anyone intelligent could ever say Perl is not timely with this kind of mass coordination going on. (Not to mention Slashdot being written in Perl IIRC...)
Personally I am excited about the Modern Perl book (I seem to have self-censored myself into using older versions).
I have used and liked Catalyst but have also imagined even easier ways to build systems with it and say Moose.
So I am going to have a lot of fun trying out Dancer and PSGI/Plack.
So how do Perl lovers (I'm one but an amateur) pitch using Perl to the unbelievers? How to defeat all the cliches about Perl and the Python dinky toy fanboys? How to convince management (who know less than an amateur anyway)?
I, for one, want Perl to fight back and win. I enjoy writing Perl and wouldn't mind turning it into an income stream sometime. I also think I don't need to be 13yo and have an IQ of 190 to write useful Perl, it works well for us older guys.
You think people who post stuff like
"Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
aren't actually behaving just like those religious freaks too?
You take away religion from people and they'll find another one. Whether it is a hockey team or State Atheism or Environmentalism or whatever, and then proceed to use it as an excuse to attack or even kill hated people.
Check out what lack of religion did to the Soviet Union, China, Vietnam, Cambodia, Cuba, and others.
No doubt totalitarian socialism had nothing to do with their outcomes, though.
(an all-powerful State can't tolerate any parallel power structures, such as a Church)
But Marxist Socialism is caused by the very same doctrine that today is advanced by Richard Dawkins.
The ideology if Richard Dawkins has at least two tenets:
1) Materialism - that is, reality (including the human mind) can be explained by the laws of Physics (see http://richarddawkins.net/articles/490048-the-blue-brain-blues-materialist-ethics-and-simulated-minds)
2) Anti-religious intolerance: religion is irrational, superstitious and must not be tolerated. It must be wiped out. While it still exists, it must be contained to the private sphere - that is, the political rights of people of faith must be curtailed.
And these two tenets are at the core of Marxism. Marx took the idea of materialism and developed it into his "materialistic conception of History", which is the root of Marxism. And he fully incorporated anti-religious hatred.
Therefore, the ideology of Dawkins (which of course existed centuries before Dawkins) is a clear cause of Marxism, and therefore 100,000,000 deaths, torture, general suffering, terror, repression, censorship, bigotry and societal decay.
In other words, Dawkins is the *last* person that can complain about the "evils" of religion.
There is a wise analysis about the ideal relationship between state and Church, which must be balanced to avoid oppression. See http://www.lewrockwell.com/orig6/ratzinger2.html (Why Church and State Must Be Separate, by Benedict XVI)
Please see http://slashdot.org/comments.pl?sid=2865083&cid=40075109
Flamebait?! I was responding to the signature of the grandparent! Do moderators know any impartiality?
TL;DR: Dawkins killed 100 million! (Hey, if you can misread posts, so can I!)
Very few of those deaths have to do with anti-religious intorlerance and none with materialism. Marxist socialism doesn't imply totalitarian socialism. But, hey, doesn't it feel great to be winning, even if you're just kicking down a strawman you built yourself?
TL;DR: Dawkins killed 100 million! (Hey, if you can misread posts, so can I!)
You deliberately misread what I said. This suggest you have no argument and decided to resort to fallacies.
Very few of those deaths have to do with anti-religious intorlerance and none with materialism. Marxist socialism doesn't imply totalitarian socialism.
What? Have you ever studied Marxism? Marxism explicitly advocates class hatred, violent revolutions and the dictatorship of the proletariat.
Please at least attempt to argue rationally.
You deliberately misread what I said. This suggest you have no argument and decided to resort to fallacies.
Exactly, exactly! That was my point. Could you please get a better mirror? You seem to not notice that log in your own eye.
Have you ever studied Marxism? Marxism explicitly advocates class hatred, violent revolutions and the dictatorship of the proletariat.
Have you? You still seem to be speaking about brand of socialism practised by USSR and other totalitarian states, not about marxism.
For a start, you seem to be misunderstanding what does "dictatorship of proletariat" mean.
Could you also provide some quotes from Marx about _violent_ revolution, class hatred, and how it necessitates oppresive totalitarian regime and 100,000,000 deaths?
And, lastly, what does it ever have to do with Dawkins?
Flamebait?! I was responding to the signature of the grandparent! Do moderators know any impartiality?
--
Claiming one will be modded down because "Slashdot" is biased against one's idea is often a cheap way to be modded up.
And now you seem to be responding to your own signature.
But Marxist Socialism is caused by the very same doctrine that today is advanced by Richard Dawkins.
Let's assume that's correct. Dawkins is an atheist and he promotes violence to achieve his social ends (socialism). I don't know if that's true, but it doesn't matter.
There are many non-theists who advocate and live by the non-aggression principle, Satyagraha, or Jesus's non-violent teachings. So you can make a 2x2 matrix of theists/atheists (x,y) and people who do/don't (m,n) support violence as their means.
You clearly have a problem with States in the (y,m) quadrant. That's great. Personally, I have a problem with States in the (m) half, but then again, all States are in the m half by definition. My rather non-simple conceptions about our Universe's purpose and creation aren't relevant to that judgment, but any follower of Jesus, for example, should be aligned in the (n) half and work to convince the (y) half, but far too many buy into later corruption of his teachings (designed to bolster State power) and support the (x,m) quadrants wholeheartedly.
If you have theists who actively work against their Gods' teachings, what matter is it that they are theists if it's not relevant as cause of their actions?
My God, it's Full of Source!
OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
Wrong; my signature criticizes posts with "now watch as I will be modded down by Apple fanboys", in which a pre-declaration of victimhood ends up having the opposite effect, even though the poster has no reason to feel victim.
But in my case, a moderator actually modded me "flamebait" with no possible justification.
First, I didn't mean that Dawkins explicitly advocates violence; I merely say that his ideology, if it spreads, will eventually lead to great violence.
I agree that people who believe in Jesus should live by His teachings. And regarding state-sponsored violence, please check out www.lewrockwell.com/orig6/ratzinger2.html (Why the Church and state must be separate, by Pope Benedict XVI).
And just so you know where I am coming from, i am half-conservative and half-libertarian. I am pro-life, anti-war, pro-immigration, pro-small government. I am even open to the idea of legalizing some recreational drugs (I think they are evil; but not every sin must be a crime).
My original point is simply that Dawkins is extremely partial and intellectually dishonest. He spreads the idea that religion is pure evil and that we must be hard-core materialists and be a huge intolerant impolite dick to anyone who believes in God. I am merely saying that this is wrong.
Regards
There was never lack of religion, you are talking of the attempt to deny religions which, while it lasted, did a lot of bad, but I'm not sure what exactly do you think it did... but I'm guessing that you are assuming too much as usually when I hear something like this it seems that the person is associating intolerance for religion with all things that did go bad + all things that they think went bad - and often also ignore that not all socialist / communist (so called...) countries even try to kill religion and even that most of those that did also eventually gave up and realized that it was a futile attempt anyway.
Yes, it was really bad and I have no respect for what evil has resulted of religious intolerance (inflicted by anyone, including hatred against other religions and hatred against atheism). And no, I don't even know what exactly are you suggesting, the above assumptions are just that and what I really ask is to explain yourself - I'm not blaming you for anything in my text above, I can't, from what little you wrote, have knowledge of your personal views and what exactly you meant.
In capitalist USA corporations control the government.
I explained myself in http://slashdot.org/comments.pl?sid=2865083&cid=40075109
...jokes about perl being unreadable are childish and I usually tell such people to learn perl or shut up, because basing your knowledge on perl 4, one-liners for CLI & obfuscated perl contests does not give very professional image of their programming knowledge.
In capitalist USA corporations control the government.
Troll!?
Mods, have some honesty please!
"Troll" is not a substitute for "I disagree".