29 points · by hendi_ · 15y ago · 83 comments
Extending Perl beyond what Perl is makes Perl something else. Perl 6 is barely Perl in any classical sense.
The "Swiss Army Chainsaw" was never intended to be Java or C#. Its weaknesses, a lack of formal typing, a small, simple set of core data structures, a terse and convoluted syntax, are actually its strengths.
Just as C++ is not really C, and Java is certainly not C++, Perl would be better suited by some kind of successor language that embodies the Perl spirit without having to carry forward on the same code-base or concern itself with legacy. I don't think Perl 6 is this thing.
But I tend to agree that to a large degree, it's done. Many new features that were mentioned would require major overhauls to the language. You can't just bolt "better parallelism" on to a language, for instance. And macros would make what is already a fairly large language even larger, along with the fact that it wouldn't really buy you that much vs. what you can already do.
They would for me.
I'm a sysadmin that does a decent amount of automation and scripting work. Almost all of that is done in Perl. Among the other guys on my team, everyone uses Perl, except for one person who uses Python.
We had one person who came into the team as a Ruby fan. Within 6 months of working with us, she'd become a Perl fan. She told me she'd passed on Perl and gone to Ruby because she'd heard bad things about Perl. After seeing it in use and checking it out a little closer, she realized that almost everything she'd heard "bad" was outdated, incorrect, or overstated.
Outside of my team, I know lots of people who use Perl, a decent number of people who use Python, and a very small number of people who actually use Ruby. Yeah, there's a few high-profile apps in it, and yeah, Ruby on Rails got it a lot of attention for quick and dirty web apps, but it has a long way to go before it'll reach anywhere near Perl (or even Python) is.
CloudFoundry seems to be written in Ruby and it looks like a bunch of sys-admin tools.
Chef, Puppet are both written in Ruby and utilized Ruby (or Ruby DSL?).
There's a strong push for Ruby lately and it might be because Ruby is kind of similar to Perl so some sys-admins are okay with that?
Edit: (Python on ubuntu, Powershell on windows, ruby on everything else. Python on ubuntu since it's there out of the box)
When I start writing something, I think about how big I expect it to be. If it's expected to be 50 lines or less, then it's bash for general scripts, and awk for text filtering. If it's expected to be more than 50 lines, I go with Perl. That goes regardless of platform (as it's already available on every *nix platform I use, and Strawberry or ActiveState makes Perl easy to add on Windows).
And from what i've seen and anecdotally this still seems to be the common case (Java & Perl are the main languages used by companies in the City of London).
The question of the value of technology is a very complicated one. And we'll never be able to work out the good and bad points of the specific dynamic languages, to cooperate and learn from each other, if all discussion gets reduced to trying to make the others look worse. A witty saying never proved anything. At least nothing valuable.
To me, in most cases the witty statements regarding languages (be it Perl 5/6, PHP, Java, or anything else) don't demonstrate insight or experience, but merely a lack of respect for other people's opinions. After all, "they" must recognize that every large enough PHP program is unmaintainable garbage, since "you" were able to recognize that. If they don't, they lack experience. If you can't even imagine that the other party might have a point, you're not trying to have a constructive discussion, but instead are in some kind of a fight for the prize of being right. The problem is, there is no prize. There is no right. Within this game, no-one wins.
To sum up: Less emotion, less absolutism, more technology.
To throw the question back: Do you think Lisp is useless because it's old, or do you think the Lisp of the 80s doesn't have that much to do with the Lisp of 2011, even if the syntax didn't change that much?
Ruby's tremendous surge of popularity was driven by a new generation of young, passionate developers. I don't see anybody advocating Perl that doesn't already have many years of sunk costs in the language.
If you make an absolute, quantitative statement, you kinda do. If you read what I said below, it's perfectly fine to feel that in your environment there is a shift happening, and I can't judge that. What I'm saying is that you can't extrapolate from that to everybody. And I'm also saying that my and many others opinions differ. All I'm asking for is the minimum respect to not basically call us liars or delusional by implying we just make this stuff up, or are too invested to see the truth.
In my (limited) experience, it is more the anti-crowd that is usually quite invested. Not monetary though, but emotionally invested. Some people in here find it very important that the world hates the things they hate at least as much.
However, I do agree with the notion that perl should just stay perl. Do we really need opaque objects? hygenic macros?
The backer issue is relevant though. I always wondered if Objective-C would have died off in a corner somewhere if not for the iPhone and Apple backing it. Perhaps strong backing from a powerful modern company would do the trick. I'd cast my vote for Amazon :)
I feel it's the same with the work towards a core MOP. It will be hard to convince regular users why the new thing is better, but for people writing extension, auto-documentation tools, or other introspective systems it'd be a huge relief (at least to me). The difference I see is that instead of extending OO in the sense of a framework on top (Object::Tiny, Class::Accessor), you compose in behavioral extensions.
Who, besides Larry, can't drag themselves away from hacking on Perl? I'm assuming those people are all employed. If not, we should get them a job!
Perl 5.14.0 represents one year of development since Perl 5.12.0 and contains nearly 550,000 lines of changes across nearly 3,000 files from 150 authors and committers.
ref: https://metacpan.org/module/perl5140delta
And since the 5.14.0 release on 14th May this year development has continued unabated:
Current release (5.14)
* 5.14.1 on 2011-06-17
* 5.14.2 on 2011-09-26
Patch old release (5.12)
* 5.12.4 on 2011-06-20
Development for next release (5.16)
* 5.15.0 on 2011-06-20
* 5.15.1 on 2011-07-20
* 5.15.2 on 2011-08-21
* 5.15.3 on 2011-09-21
* 5.15.4 on 2011-10-20
ref: Above dates from MetaCPAN and excludes release candidates versions.Community-wise I'd keep an eye on the IronMan aggregator[9] and blogs.perl.org[10].
[1] https://metacpan.org/release/App-perlbrew [2] https://metacpan.org/release/App-cpanminus [3] https://metacpan.org/ [4] http://cpan.uwinnipeg.ca/search?query=Task-&mode=dist [5] https://metacpan.org/release/Task-Kensho [6] https://metacpan.org/release/Plack [7] https://metacpan.org/release/PSGI [8] https://metacpan.org/release/Moose [9] http://ironman.enlightenedperl.org/ [10] http://blogs.perl.org/
He can either learn Python 2, in which case he'll have to adjust to Python 3 when it takes off... or he can learn Python 3 and not (yet) have widespread library support.
Learning 2 and then moving to 3 whenever it takes off isn't really that much work, but I can totally understand it having a chilling effect on prospective learners.
Perl is worth studying for any language afficionado but if a friend asked me today which language to begin with I'd strongly recommend Python over Perl.
Not seeing the big disaster here.
Is that level of funding sustainable?
Disregard him. He sucks candy.
EDIT: The downvotes are acting a ( ) for all the candy suckers. Checkout their useless profiles, and memorize their silly nick's.
ha ha !
Look out for the sun, I hear it might give you a grayish complexion... :-)
Isn't a good choice for _what_?