Slashdot Mirror


Perl 5.20 Released, and Mojolicious 5.0: the Very Modern Perl Web Framework

Kvorg writes: "Back in 2012 Slashdot noticed how at the time of Perl 5.16, the modern Perl projects, including Mojolicious, formed a new and expanding movement of a Perl Renaissance. With the release of Perl 5.20 and Mojolicious 5.0, the Modern Perl Renaissance is ever more striking. Faster, neater, sharper with its asynchronous APIs, Mojolicious is extremely flexible with its advanced request routing, plugin system, perl templating and hook API. Its adherence to the modern interfaces and standards and its implementation of advanced features in support tools, DOM and CSS selectors makes it easy to program with.

Mojolicious, with its philosophy of optimized code-generation (think metaprogramming), enabled-by-default support for encodings and UTF-8, zero dependency deployment with wide support for existing CPAN packages, zero downtime restarts and fully tested implementations, reminds us of how fun and flexible programming in scripting languages used to be. Of course, integrated documentation and a very supportive bundled development server don't hurt, either. The new Perl release with new postfix dereference syntax, subroutine signatures, new slice syntax and numerous optimizations makes it all even more fun."

126 comments

  1. Damn I'm old... by Penguinisto · · Score: 5, Funny

    I kept thinking "I am the very model of a modern Major Perl Framework..."

    --
    Quo usque tandem abutere, Nimbus, patientia nostra?
    1. Re:Damn I'm old... by gstoddart · · Score: 1

      LOL ...

      I'm very well acquainted, too, with matters mathematical,
      I understand equations, both the simple and quadratical,

      Somewhat apropos, really.

      --
      Lost at C:>. Found at C.
    2. Re:Damn I'm old... by just_another_sean · · Score: 2

      I think being old is a requirement for understanding TFS. :-)

      --
      Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
    3. Re:Damn I'm old... by Tackhead · · Score: 4, Funny

      I kept thinking "I am the very model of a modern Major Perl Framework..."

      I am the very model of a modern Major Perl Framework,
      But here I am on Slashdot, trying harder from my job to shirk,
      From HackerNews to 4chan there's no forum in which I won't lurk,
      I am the very model of a modern Major Perl Framework!

    4. Re:Damn I'm old... by Talderas · · Score: 1

      About binomial theorem I'm teeming with a lot of news
      With many cheerful facts about the square of the hypoteneus

      --
      "Lack of speed can be overcome. In the worst case by patience." --Znork
  2. People still use Perl? by Anonymous Coward · · Score: 1, Informative

    Color me surprised.

    1. Re: People still use Perl? by thetoadwarrior · · Score: 3, Funny

      People still trotting out that tired meme? Color me surprised.

    2. Re:People still use Perl? by Penguinisto · · Score: 2

      People still use BASH (and yes, it's still hella usable if the task is simple).

      If the tool fits and does the job, use it.

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
    3. Re: People still use Perl? by Bill_the_Engineer · · Score: 1, Insightful

      You shouldn't be surprised by the inexperienced having all their attention taken by the shiny and new.

      --
      These comments are my own and do not necessarily reflect the views or opinions of my employer or colleagues...
    4. Re:People still use Perl? by Anonymous Coward · · Score: 0

      Hey I remember programming in CHILL. For the curious I worked with the Germans not the Canadains. I think only two companies ever used CHILL for anything real.

    5. Re:People still use Perl? by TechyImmigrant · · Score: 1

      Perl is monochrome.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    6. Re: People still use Perl? by Anonymous Coward · · Score: 0

      Be honest. You're not really surprised that someone brought that up.

    7. Re:People still use Perl? by Anonymous Coward · · Score: 0

      Perl is monochrome.

      So are all my SSH sessions (and my two surviving VT-220's and a Televideo 910). Either I don't get the term or fail to see what color has to do with anything. Now get off my lawn!

    8. Re:People still use Perl? by TechyImmigrant · · Score: 1

      What PERL looks like to Python programmers..

      http://www.google.com/imgres?i...

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    9. Re:People still use Perl? by HeckRuler · · Score: 1

      I was going to comment how you skipped Malbolge and how that makes you a closed-minded noob that only works with popular languages, but then I noticed that you skipped over C. Or maybe you made a typo and lumped it with BuildProfessionalCC.

      So if you were wondering why you got skipped over a job, it might just be because HR's filter didn't think you knew how to program in C.

    10. Re:People still use Perl? by Molt · · Score: 1

      People still use C? Really?

      --
      404 Not Found: No such file or resource as '.sig'
    11. Re:People still use Perl? by HeckRuler · · Score: 1

      Yeah, it's pretty popular in the embedded world. Toasters, Arduinos, Avionics.

      When the hardware maker couldn't be bothered to make a high level compiler for the chip or when the thing absolutely positively can't be allowed to fail, C is a good choice.

      Oh, and that Linux thing and a large swath of open source software. You know, if you're into that sort of thing.

    12. Re:People still use Perl? by marcello_dl · · Score: 1

      > People still use C? Really?
      You just did_______^

      --
      ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
  3. Awesome! by just_another_sean · · Score: 5, Interesting

    I don't much care about what a lot of people think about it, I love Perl and still use it daily in my job. I've dabbled in PHP and the various frameworks it supports but I always find myself returning to Perl/CGI/DBI. But this sounds like something I have been waiting for. It's really nice to see some new stuff coming out for Perl 5 as I simply can't seem to wrap my head around Perl 6. This is great news for old dogs!

    --
    Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
    1. Re:Awesome! by walkeraj · · Score: 3, Interesting

      Perl 6, what's that? Seriously though, it's nice to see p5 undergoing productive changes as the grand wait for Perl 6 wears on and as it becomes more clear that the Perl 6 we're getting might not be the one we wanted. Having said that, I find it annoying that the focus on backwards compatibility hamstrings new features to the degree that everything is marked as unstable or experimental and we're left just writing the same damn old perl 5 we've been writing for years. We keep dancing around the issue, but what's really needed is a breaking fork of p5 to revamp the code base and remove a lot of the cruft and make a language that can be parsed by more than just the perl interpreter. Better packaging would be nice too. I'd love to see Perl offer proper bundled binaries a la Go.

      --
      Those days are dead and gone and the eulogy was delivered by Perl. --Rob Pike
    2. Re:Awesome! by preaction · · Score: 3, Informative

      The p5p (Perl 5 Porters, the main p5 dev group) are removing a bunch of cruft. Old OSes and EBCDIC are up on the chopping block next. They're also removing microperl, which unfortunately probably is the best chance of getting more than perl to parse Perl (microperl removes just about every OS-specific function of Perl, like the unix user/group/passwd file stuff).

      But honestly, there's so few people working in the core code, and I don't imagine any of the major forks I've heard about gaining any steam either.

    3. Re:Awesome! by nmr_andrew · · Score: 2

      More than likely, I don't expect Perl 6 to ever see light of day. The big problem with it is that it's not Perl.

      I don't have a huge problem with a new scripting language, but recognize that it's (for all useful purposes) something new and different and give the project a new name. Also, Perl 5 is AFAICT completely backwards compatible to at least Perl 3; Perl 6 either won't run prior code or requires a huge hack to do so.

    4. Re:Awesome! by walkeraj · · Score: 1

      Absolutely. I was a big proponent of a new name (and a better logo http://wirespeed.wordpress.com...), but I don't see that changing. Which is sad, because the lack of solid branding has always been one of its biggest problems. :(

      --
      Those days are dead and gone and the eulogy was delivered by Perl. --Rob Pike
    5. Re:Awesome! by walkeraj · · Score: 0

      Yeah, and what I'm talking about is ditching stuff like perlform, unless and statement modifiers, and incorporating a decent objective framework like MOP into core itself. A big job, and, like you say, probably not a lot of people willing to do it. Might as well reimplement.

      --
      Those days are dead and gone and the eulogy was delivered by Perl. --Rob Pike
    6. Re:Awesome! by Anonymous Coward · · Score: 1

      Yeah, and what I'm talking about is ditching stuff like [...] unless and statement modifiers

      FOAD

    7. Re: Awesome! by jd2112 · · Score: 2

      Perl 6 is the language of the future and always will be.

      --
      Any insufficiently advanced magic is indistinguishable from technology.
    8. Re:Awesome! by Anonymous Coward · · Score: 0

      IIRC, Perl 6 is both a back-end (byte-code engine that will run perl6 and (eventually) perl5) and a front-end (perl6 parser/compiler). And perl5 is certainly not "backwards-compatible to at least perl3", though it may be more backwards-compatible than perl6 will be, there have been changes in the past which have broken some code.

  4. asynchronious APIs! by Anonymous Coward · · Score: 0

    There is no "i" (nor "me") in asynchronous.

  5. Maybe one day by aliquis · · Score: 2

    Maybe one day even Slashdot will get UTF-8 support.

    One day.

    Any decade now.

    1. Re:Maybe one day by larry+bagina · · Score: 1

      Huh? Still no UTF-8 support? Damn. A couple years ago they hired a hotshot perl programmer with 30 years of UTF-8 experience to implement it. Hired him off Dice.com, in fact. Oh, hmmm. Well, ASCII is good enough.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    2. Re:Maybe one day by Anonymous Coward · · Score: 0

      It almost sounds as if Dice.com assisted in taking money from Slashdot without offering anything in return. But hey, at least they gave us Beta.

    3. Re:Maybe one day by Anonymous Coward · · Score: 0

      Maybe Beta have UTF-8 support?

      Of course we'll never know SINCE NOONE IS USING THAT SHIT.

      (Also I'm quite sure it doesn't. I actually recommended that as a better new Slashdot than Beta. Simply the same Slashdot but with UTF-8 support. Great. They may have made a new super ugly blog called Slashdot Beta and then forgot about UTF-8 support for another 20 years.)

    4. Re:Maybe one day by Anonymous Coward · · Score: 0

      Maybe Beta have UTF-8 support?

      Of course we'll never know SINCE NOONE IS USING THAT SHIT.

      (Also I'm quite sure it doesn't. I actually recommended that as a better new Slashdot than Beta. Simply the same Slashdot but with UTF-8 support. Great. They may have made a new super ugly blog called Slashdot Beta and then forgot about UTF-8 support for another 20 years.)

      I'm using Slahdot Beta, and:

      From the source code:

              Perl 5.20 Released, and Mojolicious 5.0: the Very Modern Perl Web Framework - Slashdot

      [snip]

           

    5. Re:Maybe one day by Anonymous Coward · · Score: 0

      Fixed:

      !DOCTYPE html
      html lang="en"
      head

              title Perl 5.20 Released, and Mojolicious 5.0: the Very Modern Perl Web Framework - Slashdot /title

      [snip]

              meta http-equiv="Content-Type" content="text/html; charset=utf-8"

  6. Bah by 93+Escort+Wagon · · Score: 1

    I was using perl before it was cool.

    (I figured a fanboi submission required a hipster response)

    --
    #DeleteChrome
    1. Re:Bah by Anonymous Coward · · Score: 0

      That's more of a curmudgeon response.

      A hipster response would tell us you're using something we've never heard of.
      You get bonus points if it's "organic", "hand made", or "limited release", and it's made by a bearded man in a Williamsburg loft.

    2. Re:Bah by CaptSlaq · · Score: 0

      I was using perl before it was cool.

      (I figured a fanboi submission required a hipster response)

      Perl was cool? Seems that it's never been since I started using it in 2000.

  7. A language that lets you do whatever by duckgod · · Score: 4, Insightful

    The thing that I have always loved about perl is the "there's more than one way to do it" philosophy. Perl lets me do whatever the fuck I want. If I am doing a project for my own enjoyment then I will do whatever I want that gets the job done the fastest. Yes maybe this makes it a bad language for large groups and production applications where programmers need to have restraints in order for the group to work harmoniously. But I am an adult and I don't want to be told what is right or wrong way to do something in my home.

    1. Re:A language that lets you do whatever by Anonymous Coward · · Score: 4, Interesting

      That's one side of perl: The fastest development time imaginable for small programs. The other side, that no one has mentioned, is that perl conforms to the OO paradigm more closely than any other language (including Objective-C.) I have written very large programs in perl and contrary to popular opinion these programs are much easier to read and understand than if they were written in C++ for example.

    2. Re:A language that lets you do whatever by guacamole · · Score: 0, Flamebait

      This is why Python has become an industry standard language while Perl remains a tool for one-off hacks.

    3. Re:A language that lets you do whatever by preaction · · Score: 1

      Which industry? Finance seems to like Java, C++, and then Python. Web seems to like JavaScript, Ruby, PHP, and then Python. Those are the only industries I have first-hand experience with.

      (Though I do recognize the fact that Perl is on none of those lists, even though I'm hired as a Perl programmer in both those industries, I've found it to be one of those things that, like an infection, spreads to every task that needs doing in a unix network)

    4. Re:A language that lets you do whatever by mooingyak · · Score: 0

      The other side, that no one has mentioned, is that perl conforms to the OO paradigm more closely than any other language

      Except for nearly all of the other ones? Especially other scripting languages?

      Pick a bunch of languages at random. Stick them on a dartboard. Throw something gigantic at the dartboard. Chances are every language you hit conforms to the OO paradigm more closely than perl.

      I can write object-oriented assembly. That doesn't make it a particularly OOPy language. Perl objects are hacked on, somewhat painfully at that.

      --
      William of Ockham had no beard. The most likely explanation is that it was chewed off by squirrels every morning.
    5. Re:A language that lets you do whatever by Anonymous Coward · · Score: 0

      I think the main misunderstanding about Perl OOP is that the true OOP objects are built in's. Hashes are C structs, programming with a blessed reference to a hash is actually object composition or aggregation, a blessed array is a Perl wrapper of a container object, etc.

    6. Re:A language that lets you do whatever by Anonymous Coward · · Score: 0

      Perl objects are hacked on, somewhat painfully at that.

      Sure, if you're writing them the way they were built in 1994 or cobbling terrible examples from Matt's Script Archive. Anyone that actually takes Perl even remotely seriously stopped doing that ages ago. We've all moved on to using Moose or something like it.

  8. I think it would be funny as heck if.... by LF11 · · Score: 2

    ...the Next Great Web Language ends up being PERL? Yes, please.

    It has a lot going for it, especially if a project like this makes it as approachable as PHP for web application development.

    Serious question, though: other than it being old, are there any problems that keep it from being viable as a modern web application platform?

    1. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      ..the Next Great Web Language ends up being PERL? Yes, please.

      I'd just be happy if it's not Java (and it's 100's of associated frameworks and XML). Then again I've been doing my web development in C++ with Seminole. Then again that's the great thing about web development: different technologies can be easily combined.

    2. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 1

      Serious question, though: other than it being old, are there any problems that keep it from being viable as a modern web application platform?

      Yes. Not technical ones, though. Everyone has been flaming it for so long that it's no longer hip. (Sigh.)

    3. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 3, Interesting

      Yes. Not technical ones, though. Everyone has been flaming it for so long that it's no longer hip. (Sigh.)

      The problem is that Perl (like C) requires discipline. It is possible to write well written and architected code in any language. But some languages make it harder than others. But some languages (Java, I'm looking at you) are designed to coddle programmers from doing things they shouldn't. It's silly because engineers should know their craft and not require a nanny in the form of a purposely limited language.

    4. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      1. Perl is hard to read when programs get above a certain level of complexity. It takes an extraordinary amount of self-control to produce readable Perl, and most programmers simply don't have it.

      2. Perl's type model is completely and irrevocably borked:

      The string "0" tests to false. However, programmers test strings branches where they're really looking for empty strings or undefined values in their scalar variables. This is a thing that cannot be fixed, and problems involving that error are pervasive.

      3. Perl semantics are inscrutable. To find out what actually happens for certain obscure corner cases, one must read the Perl source. Have you ever tried reading the Perl source? It's not easy.

    5. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      The ad hoc, implementation-defined syntax and semantics doesn't just make it hard for beginners to read, but it also prevents reimplementations on other architectures.

      Languages like Ruby and Python benefit from being available on the JVM or CLR if that's where the rest of your code lives.

    6. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 1

      Languages like Ruby and Python benefit from being available on the JVM or CLR if that's where the rest of your code lives.

      Garbage collection is still a huge performance problem. Even with all the modern algorithms the fact that reachable objects must be traced causes real problems with locality of reference. While Perl does have a disgusting syntax the nice thing is it precludes the use of the JVM or CLR. That's probably a good thing.

    7. Re:I think it would be funny as heck if.... by larry+bagina · · Score: 2
      ehh, I tried using perl for a small "modern" (REST) backend, gave up and used ruby/sinatra/mod_passenger because it worked. Perl? Dancer looked nice but there are too many dependencies. CGI is hopelessly obselete (does /. still run on it?). I implemented my own microwebframework on top of CGI (a hundred lines or so to do routing) before I discovered passenger and switched to that.

      I'd take perl over node anytime but I'm not impressed by CPAN (it's better than npm, if you want some faint praise) and a lot of the code and culture is stuck in the 80s/90s.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    8. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      CGI is hopelessly obselete (does /. still run on it?).

      fastCGI works pretty good and quite a few legacy sites are still running on it. Architecturally it's not all that dissimilar from Apache's mod_jk. I think IMDB is still using Perl and fastCGI. I have a feeling they get a pretty significant amount of traffic.

    9. Re:I think it would be funny as heck if.... by preaction · · Score: 2

      1) s/Perl/Code/g

      2) This is one of those things that causes frustration the first 3-5 times it happens, and then you find the right habits. I can't remember the last time that actually bit me. Every language has its own definition of falsey.

      3) I've never had to read the Perl source to actually solve a problem in my Perl code (except that one time there was an actual bug in Perl, back in 5.10.0). The documentation explains everything, including all the obscure edge and corner cases.

    10. Re:I think it would be funny as heck if.... by preaction · · Score: 2

      Dancer was inspired by Sinatra, but if you wanted something close to the metal, you wanted Plack (like Rack or WSGI). But really, you wanted Mojolicious.

      Dependencies are not a bad thing. CPANTS makes sure they work. But if you don't like dependencies, you wanted Mojolicious.

    11. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      Then again I've been doing my web development in C++

      Though not common anymore many great websites were C++ powered. Amazon and OkCupid are two that come to mind.

    12. Re:I think it would be funny as heck if.... by digsbo · · Score: 1

      Obsolete operationally or for development? I bet I could write a fast website in Assembly, but I couldn't write it quickly. I would not want to do that work I do on a web application today in Perl/CGI. In that sense, it is obsolete.

    13. Re:I think it would be funny as heck if.... by Camel+Pilot · · Score: 1

      This is best you can do to flame Perl?

      1. It must be me but I do not find Perl any more problematic in this respect than say C or Javascript. In fact facilities like variable string interpolation and symbolic references in my view makes Perl more readable and understandable.

      2. So... use if ( defined $str ) what's so irrevocable borked.

      3. Care to give an example. I have never read Perl source and have programmed 100k's line of code in Perl and maintain several CPAN modules.

    14. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      1. Perl is particularly bad thanks to the extensive use of magical global variables, implicit variables, dynamic scoping, etc. Those things that let people write more succinct code to their own understanding are not conducive to other's understanding, in particular when reading a bit of code in isolation from it's context.

      2. It shows up in production code all the time. The very first page that I find when I Google "perl false" has wrong information on it. If it were at least consistent with the way it coerces strings to numbers, then I could understand. However, strings like "00", "0.0", etc. are not false. Just "0". It makes no fucking sense. Perl's warnings should include something to tell people when they use a scalar variable by itself in a branch.

      3. Your anecdotal experience does not constitute proof, and documentation does not constitute formal semantics.

      I use the shit out of Perl for small projects, analyzing experimental outputs, etc.. However, it is wholly inadequate for larger projects or projects that I intend other people to see.

    15. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      Is this the best you can do to defend Perl? I will repeat for you what I said to the other poster. It's funny, since your criticisms are identical -- Perl development must be a real echo chamber:

      1. Perl is particularly bad thanks to the extensive use of magical global variables, implicit variables, dynamic scoping, etc. Those things that let people write more succinct code to their own understanding are not conducive to other's understanding, in particular when reading a bit of code in isolation from it's context.

      2. It shows up in production code all the time. The very first page that I find when I Google "perl false" has wrong information on it. If it were at least consistent with the way it coerces strings to numbers, then I could understand. However, strings like "00", "0.0", etc. are not false. Just "0". It makes no fucking sense. Perl's warnings should include something to tell people when they use a scalar variable by itself in a branch. If your answer isn't to do the intuitive thing, then there is a serious problem. Somehow you just can't make that connection, though.

      3. Your anecdotal experience does not constitute proof, and documentation does not constitute formal semantics. And no, I can't be bothered to give an example because it's been almost a decade since I had to do that last and I can't remember what it was for.

      I use the shit out of Perl for small projects, analyzing experimental outputs, etc.. However, it is wholly inadequate for larger projects or projects that I intend other people to see.

    16. Re:I think it would be funny as heck if.... by preaction · · Score: 2

      1) I agree that extensive use of magic vars (the topic var, $_, especially) can create a major problem for readability. But the magic vars, $_ especially, allow concise constructions that would otherwise take a lot of my time to type and longer to verify I typed correctly. The onus is on me, the programmer, to ensure my code is readable, no matter how much the language assists me in that, and I find I can write readable Perl faster than I can write readable JavaScript (choosing two languages I feel I am equally competent in).

      2) The rules is the rules, every language has them. "00" isn't false because the rules say only "0" is false. There's even a special case "0 but true" that explicitly does not warn when used in arithmetic operators. This is a necessity due to some of the fundamentals (much like other languages have some crazy constructs due to the interaction/conflict between fundamental concepts). But here, as in 3, you're right: The plural of anecdote (my claim that this does not bite me anymore) is not data.

      3) You're right, though you're arguing a technicality. Your next paragraph is also anecdotal: "I find it inadequate" would be accurate, and fully supportable. It is not intrinsically inadequate for large projects, no more than any language is.

    17. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      "00". "0.0" are strings, not booleans.

      I really wish Perl had a true boolean so that this notion from C that 0 and 1 represent false and true could be ignored.

    18. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 1

      I would not want to do that work I do on a web application today in Perl/CGI. In that sense, it is obsolete.

      Everything becomes obsolete. This attitude to me is core to some of the major problems facing technology today: The lack of maintenance. Everything is made with the expectation that it will be in a landfill in two years. But the world can't run that way. Think of how much COBOL code runs your daily life. Rewriting it in a different language would be expensive and provide little value.

      So I'm guessing once you complete a project you never have to maintain it? Luck you! I've had customers ask me to change embedded products I've designed 20 years ago. Sometimes the components aren't even available let alone the design tools and technologies. But telling them "no" isn't an option when these things are running city infrastructure.

    19. Re:I think it would be funny as heck if.... by hondo77 · · Score: 1

      But really, you wanted Mojolicious.

      This.

      --
      I live ze unknown. I love ze unknown. I am ze unknown.
    20. Re:I think it would be funny as heck if.... by hondo77 · · Score: 1

      NEWS FLASH: Dumbass programmers make dumbass mistakes and produce dumbass code.

      Those of us at the adults' table get to use real forks and steak knives and we don't hurt ourselves at all.

      --
      I live ze unknown. I love ze unknown. I am ze unknown.
    21. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      I'd just be happy if it's not Java (and it's 100's of associated frameworks and XML).

      Don't worry. All of the Perl hate on here will be Java hate in the next 5 years. Things go as quickly as they come in the tech industry. Todays hot technology very quickly becomes tomorrows hated garbage.

    22. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      Doesn't Java already get a lot of hate? If not, it deserves to. What a piece of shit language.

    23. Re:I think it would be funny as heck if.... by draven · · Score: 1

      I think it's interesting that you didn't mention Mojolicious, which has your dependency problem from Dancer sorted, and is also a quite modern rethinking of HTTP on Perl. None of the old cruft from the 90s.

      --
      -- Marcus Ramberg
    24. Re:I think it would be funny as heck if.... by digsbo · · Score: 1

      In some ways, quite the opposite. I'm a C/Perl/Unix guy originally and now work in C#/.Net. I use my older skills to maintain older systems, yes, and probably could write a simple server in straight C without more than a Linux terminal and "man". But why would I use an inferior tool to build a new system?

    25. Re:I think it would be funny as heck if.... by Anonymous Coward · · Score: 0

      [I] now work in C#/.Net

      But why would I use an inferior tool to build a new system?

      You tell us.

  9. Re:Pearl and Modern in the Same sentence? by Anonymous Coward · · Score: 0

    Objective-C is older and it's usually considered as fairly modern.

  10. Oxymoron by canadiannomad · · Score: 1, Insightful

    Ok, I know I'll get modded down to oblivion for this, but my first thought on reading the headline was "Modern Perl Web Framework, isn't that an oxymoron?" Any others think that as a reflex at first too? Even if you don't really believe it?

    I know I used to love Perl, but that was a long time ago...

    --
    Hmm, the humour and sarcasm seem to have been be lost on you.
    1. Re:Oxymoron by jjn1056 · · Score: 5, Interesting

      Given I'll make more that $200K programming Perl this year, no that was not my first reflex...

      My first reflex on seeing this on Slashdot was, "I probably shouldn't read the article because its going to be filled with the same tired, ignorant Perl hate. And then I'm going to waste time trying to respond to it."

      You don't have to use Perl if you don't want to. Why isn't that enough? Why do you feel entitled to dump your FUD on my community? Perl isn't the most popular choice but there's a lot of us making a decent living at it, so please if you don't get it, or you don't like it, unless you have a grudge with Perl that hasn't already been mentioned 100K times what's the point of saying anything at all?

      --
      Peace, or Not?
    2. Re:Oxymoron by canadiannomad · · Score: 1

      Why do you feel entitled to dump your FUD on my community?

      This wasn't meant as FUD, just good natured jibing. Relax :D

      Perl isn't the most popular choice but there's a lot of us making a decent living at it, so please if you don't get it, or you don't like it, unless you have a grudge with Perl that hasn't already been mentioned 100K times what's the point of saying anything at all?

      I don't doubt it. I have no hate for Perl, I was joking. Notice how many qualifies I put on my statements? It was just the first thing that popped into my head when I read a slashdot headline, no biggie.

      --
      Hmm, the humour and sarcasm seem to have been be lost on you.
    3. Re:Oxymoron by jjn1056 · · Score: 1

      No doubt, I have a few friends that cashed in old Cobol skills back when we were partying like it was 1999 (for the second time). However in my nearly 20 years of writing Perl for web sites I've never worked on an application that was more than 6 years old when I was hired (and about half of them where new applications, the last 3 were startups using Perl).

      I realize the Perl community doesn't spend a lot of time adverting all the companies that do choose Perl for new startups, since we are all busy working :)

      I do know a lot of people making good money keeping some old financing systems running, down on Wall Street, but I never wanted to work in Finance so I don't know about them. My guess is they fall under what you called legacy, although its likely that stuff is running multi billion dollar a year apps for rich brokers.

      --
      Peace, or Not?
  11. What Python looks like to Perl programmers by raymorris · · Score: 3, Funny

    http://handsonaswegrow.com/wp-...

    Not exactly, but I like the picture.

    1. Re:What Python looks like to Perl programmers by TechyImmigrant · · Score: 1

      His indentation is wrong. Whitespace matters.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  12. That's not it. by fyngyrz · · Score: 1

    The problem isn't that perl is old. The problem is that perl reads (and writes) like encrypted sanskrit and is just generally weird in its approach to everything.

    Once you've invested a great deal of time learning it, and its APIs, it's a big deal to change, because you're effective in it... but, speaking from personal experience, after years of perl-ing, I tried something else, and what a revelation it was. Not everyone is willing to put in the kind of effort it takes, and familiarity itself can make nice seem wrongish after years of coding otherwise.

    For new entries to the scripting language world, the only really good reason to learn perl is to maintain legacy code. Updates can't fix it -- the very language is a mess. And the fact is, there are some really terrific scripting languages out there now. There's little -- or no -- need to subject one's self to perl.

    --
    I've fallen off your lawn, and I can't get up.
    1. Re:That's not it. by preaction · · Score: 2

      I disagree, but perhaps that is because I learned how to program by learning Perl. I've written huge projects in Python, C++, Java, and JavaScript, and I still prefer Perl for my daily problems (but then, I also actually like C++, so it is possible that I am irreparably damaged). I have had no problem moving to other languages, I even like what they offer (even Java).

      Python's idea of the ternary operator, now that's weird. STRING.join( ITERABLE ), that's weird (though the only obvious solution because of how Python is). `string + number = string concatenation`, that's weird. There's weirdness all around!

    2. Re:That's not it. by guacamole · · Score: 1

      Perl was designed by people and for people who were fond of the Unix shell scripting syntax, all the unix tools, and the C language, which were the primary tools of coding unix in the old days. Unfortunately, Perl looks cryptic to anyone without a background in that sort of Unix environment. Most people don't learn unix shell scripting and C, before jumping into a scripting programming language. They jump straight into scripting language. As a result, Python has a huge advantage with this crowd. Then there is the issue of TMTOWTDI, which a lot of companies and programmers want to avoid these days.

    3. Re:That's not it. by preaction · · Score: 1

      To this day I'm surprised at how much the shell can do for me, and I spend most of my time there. I find myself writing fewer Perl scripts and more shell scripts to Get Stuff Done.

      I've kept saying "Perl is the UNIX philosophy taken beyond its logical conclusion."

    4. Re:That's not it. by nmr_andrew · · Score: 5, Insightful

      The problem isn't that perl is old. The problem is that perl reads (and writes) like encrypted sanskrit...

      I really wish people would stop saying this. It's certainly possible to write horribly obfuscated Perl, deliberately or otherwise, just as it's possible to write C, or Python, or anything else in a nearly unreadable way. I'll grant that Perl maybe allows you to get away with a bit more.

      However, it's just about as easy to write clean, maintainable Perl as it is in any other language. Follow good coding practices and you'll have clean code, code badly and it'll be a train wreck regardless of language.

    5. Re:That's not it. by kthreadd · · Score: 1

      Shell scripting usually works fine until you want to 1. be portable or 2. work with strings. You can do both with shell but I usually go with something like Perl when it happens.

    6. Re:That's not it. by Anonymous Coward · · Score: 0

      You can't write bad code in Python because Python forces you to use consistent indentation.

    7. Re:That's not it. by preaction · · Score: 2

      Shell has marginally better whipituptitude, until you want

      1) Arrays
      2) Deep string operations
      3) Documents

      (though, side note, I'm working on a project to make (3) easier to handle because it comes up so often, and there's jq already)

    8. Re:That's not it. by Anonymous Coward · · Score: 5, Interesting

      To expound on this point a bit deeper:

      While one can write horrible code (without trying too hard) in any language (even python!), there *is* a rational reason that Perl tends to fare worse in this regard on average.

      The reason is that, as compared to almost every other programming language out there, Perl was designed by a Linguist (as in, human languages) with an explicit goal of being very expressive. In many other languages, there's one canonical way to do a given thing, and then perhaps a few other ugly, horrible, slow, round-about ways to accomplish the same thing different, but most of the time everyone hones in on the same approximate language patterns.

      Perl, on the other hand, was explicitly designed such that there are often many wildly varying different ways to accomplish the same goal, allowing for a great freedom of expression and stylistic choice. Over the years this theme has extended throughout the Perl ecosphere, well beyond the syntactic features of the core language itself, to the point that just about any programming style or paradigm can be wrought within Perl easily. Do you like C++-style multiple inheritance? Or maybe something more like Traits/Roles and object method invocation via message passing? How about functional style lamba stuff? Meta-object programming? Threads (of a few kinds), Processes, eventloops (of many kinds)? Declarative programming (with or without OO)? DSLs? How many flavors of templating do you want? Just about any real or academic-toy knob you can think of to twist which would affect how programming languages work probably already exists within Perl at this point. In this way it's almost like a modern LISP, but with a much larger standard library of language tools built on top, and fewer parentheses.

      So you throw 50 "professional" programmers in a room with a Perl interpreter and ask them to solve the same high-level problem and you'll probably get 45 completely shitty implementations, 3 decent ones, and two brilliant ones. But not a single one of those 50 implementations will resemble the others much.

      In the hands of a real artist, Perl is a very powerful tool for writing beautiful software, and it gives said artist the freedom to solve problems using the paradigms and syntactic styles that best match the problem domain without ever leaving the world of Perl. In the hands of a novice, however, it's way too much expressive freedom, and leads to basically-trashy, horrible code. Perl is programming without lane markers, seat belts, or brakes. There's nothing standing in the way of greatness, and nothing standing in the way of being a complete idiot, either.

      Unfortunately, most programmers in the world aren't artists. They lack the innate skill, the drive and determination, or even the desire to become an artist. They're just doing a job and collecting a paycheck. Python is a great tool for these people, and Perl is not.

    9. Re:That's not it. by Raenex · · Score: 1

      I really wish people would stop saying this. It's certainly possible to write horribly obfuscated Perl, deliberately or otherwise, just as it's possible to write C, or Python, or anything else in a nearly unreadable way. I'll grant that Perl maybe allows you to get away with a bit more.

      I really wish people would stop defending Perl in the manner. Perl's sigil madness is endemic to the language. Yes, you can avoid some of the craziness (such as "use English"), but good luck to you once you start using references.

    10. Re:That's not it. by Andrew+Cady · · Score: 1

      Perl uses sigils, like shell script. It's not a big deal.

    11. Re:That's not it. by Raenex · · Score: 1

      It is when you get lost in a maze of them. I mentioned references for a reason, because anybody who's experienced ${ hell knows what I'm talking about.

    12. Re:That's not it. by Anonymous Coward · · Score: 0

      Perl is my bread and butter.

      However, I would disagree with the notion that it is easy to write clean, maintainable Perl as it is in any other language.

      Perl requires considerable more sustained effort to write cleanly because it lets you get away with pretty much anything. For instance, I still come across scripts without stricture and warnings. Good Perl devs know to use those pragmas, but Perl complains nothing when you don't use them. This permissive behavior sends a wrong message that Perl isn't really serious about best coding practices in 2014. It might have been OK during the dot-com bubble; it is not OK today when maintainability of software is critical.

    13. Re:That's not it. by Anonymous Coward · · Score: 0

      Yes. This!

    14. Re:That's not it. by Anonymous Coward · · Score: 0

      Sure, if you can't do references you are going to have a hard time in Perl. If you can't do pointers you are going to have a hard time in C. Just because you can't doesn't mean I can't. Now can you please stop griping about Perl (which you don't even use) and go gripe about something ugly like Javascript.

    15. Re:That's not it. by Anonymous Coward · · Score: 0

      Good Perl devs know to use those pragmas, but Perl complains nothing when you don't use them. This permissive behavior sends a wrong message that Perl isn't really serious about best coding practices in 2014.

      The WHOLE FUCKING POINT of not using those pragmas is that you want it to be permissive, so that you can run your quick one-off hack and move on.

      It might have been OK during the dot-com bubble; it is not OK today when maintainability of software is critical.

      So if "good Perl devs know to use those pragmas", hire some good Perl devs. Problem solved!

    16. Re:That's not it. by Raenex · · Score: 1

      Piss off. There's a difference between "can" and "want to".

    17. Re:That's not it. by Anonymous Coward · · Score: 0

      If that's the worst criticism you have of Perl, then it's doing pretty well for itself.

      I remain amazed at how many people bash Perl for its syntax and then proceed to praise PHP as some sort of bastion of web language design sanity.

    18. Re:That's not it. by Raenex · · Score: 1

      If that's the worst criticism you have of Perl, then it's doing pretty well for itself.

      It's the worst example of many. Too many sigils and too much magic in Perl.

      I remain amazed at how many people bash Perl for its syntax and then proceed to praise PHP as some sort of bastion of web language design sanity.

      Like who? PHP is well-known for being a hacked together language, and it clearly shows its Perl inspiration. PHP is a prime example of "worse is better". Python is the language that gets all the praise for good, clean design. And while I could nitpick Python, compared to Perl it is a bastion of sanity.

  13. Re:We banned Perl by preaction · · Score: 1

    Was this during Perl's heyday, when it was ... shudder... popular? The popular language of the day always suffers from very poor programmers making very bad decisions.

  14. Re:We banned Perl by walkeraj · · Score: 1

    I dunno, the authors of Go seem to be making some pretty good decisions so far.

    --
    Those days are dead and gone and the eulogy was delivered by Perl. --Rob Pike
  15. Perl. by vikingpower · · Score: 1

    Welcome back into the Middle Age.

    --
    Religous speak to God. Insane are spoken to by God. When all shut up, one can finally hear Shostakovich in peace
  16. Re:We banned Perl by hondo77 · · Score: 1

    Good choice because, goodness knows, you can only copy/paste Perl...

    --
    I live ze unknown. I love ze unknown. I am ze unknown.
  17. Re:We banned Perl by Anonymous Coward · · Score: 0

    If you are too stupid and unskilled to sanitize your input, you shouldn't be coding in ANY language.

  18. Re:We banned Perl by Tanktalus · · Score: 1

    Gee, if that was the criteria, I'd be banning Java at work. Because I've seen first-hand a number of Java devs writing absolutely stupid things resulting in a heap of vulnerabilities.

    The reality is that you get a bunch of stupid developers, and it doesn't matter what language you put in front of them, they're going to write stupid code. The people who've worked under me in perl don't get the opportunity to write code that dumb because a) I provide a saner framework work in where those gotchas are centralised into common functions and objects, and b) I code review everything that goes in until they acquire a better knowledge base to work from and then I do spot reviews and review anything they feel, with their now better experience, might be tricky and should get extra eyes.

    I don't care what language you're working in. If you don't realise that calling the shell with special characters that you didn't know you had will cause problems, it's the developer at fault, not the language. I don't care if it's cmd = "do-stuff " + tainted_value; Process p = java.lang.Runtime.exec(cmd); or my $cmd = "do-stuff $tainted_value"; my $rc = system($cmd);, that's going to result in broken code. If you don't realise that doing the same thing with SQL is going to cause problems, you shouldn't be doing SQL. Or running a subprocess, waiting for it to exit, and THEN reading its stdout. These are all common things, in my experience, and most of them I've seen in Java code, though I do get to work with some nimwits in a different reporting chain using perl stupidly as well. I don't ascribe the bad code to the language, but to the bad developers. Maybe you should look, too, and you'd find it's your developers that are the problem, not the language.

  19. Re:We banned Perl by Anonymous Coward · · Score: 0

    The bad Java programmers don't wind up publiching to CPAN. The problem is not Perl itself, it's the astonishing array of complete crapware that lives at CPAN is is used without code review by every *new* Perl author. The sort of abuse of sense that occurred in the switchiover from mod_perl version 1 to mod_perl version 2 is happening every day, in dozens of projects, and it's death to stability.

    A "new framework" won't fix this taking the "sudo cpan Module::Name" habit of building and installing the latest, unstable, incmpatible crap on the fly is the problem. And a "new framework" won't fix this unless it puts a bullet through the idea of "let's just grab and install the latest!!!" approach to software.

  20. Re:We banned Perl by Tanktalus · · Score: 1

    I've put that bullet through that approach.

    I've grabbed the precise versions of everything that we're going to use, checked into our version control system, complete with a full build-from-scratch setup that will build perl from source, with the exact options we need (or at least the exact same options every time, not sure if we need threading, for example), and the precise list of CPAN modules that we are using, along with standard patches to said modules where required (some of them don't support AIX as well as we need). Upgrading a module will require a degree of regression testing, etc.. And all developers will use exactly the right levels of everything as the level that is going into production.

    I'm a huge fan of CPAN. It has issues, such as some crap code, but yet it remains one of Perl's greatest strengths. Like anything else worth having, it provides sufficient rope to hang yourself with, so you do have to be careful, putting the onus back on the developer to find a mode that works for them. And yet, to fulfill corporate requirements, I'm using precise levels of code. There's no reason why you can't have the best of both worlds.

  21. That's not it by Anonymous Coward · · Score: 0

    No I don't see any character.

  22. Re:We banned Perl by Anonymous Coward · · Score: 0

    a) No they're not.
    b) (S)he meant programmers using the language, not the language designers.

  23. Mod parent up by rduke15 · · Score: 1

    Someone please mod parent up...

  24. Perl Festivity Levels by TheRealHocusLocus · · Score: 4, Funny

    Perl Festivity Level 1: Developers and users have gathered to nibble hors d'oeuvres and chat amiably with each other about the Modern Perl Renaissance. With every sip of their drinks Perl seems ever more striking. Some are gathered around the upright piano improvising songs that proclaim how it is faster, neater, and sharper than ever before with its asynchronous APIs.

    Perl Festivity Level 2: Everyone is talking loudly -- sometimes to each other, and sometimes to nobody at all. Perl seems even better. Perl Monks are patiently explaining syntax and style to potted plants and other nearby objects. Around the piano people are feeling fun and flexible, just as programming in scripting languages used to be. Someone is crooning a bawdy ballad where a couple of inexperienced DOM and CSS selectors encounter a very supportive bundled development server.

    Perl Festivity Level 3: Monks are arguing violently and defrocking one another over nested do...until loops that bail on exceptions. People are gulping down other peoples' drinks, placing hors d'oeuvres in the upright piano to see what happens when the little hammers strike as everyone bawls "Got my Mojolicious workin' ... but it don't work on Python!" They have lost count of their drinks, and the world is harmonious with blissful adherence to modern interfaces and standards.

    Perl Festivity Level 4: All the guests, hors d'oeuvres smeared all over their naked bodies are performing a ritual dance around a burning heap of tables and chairs in celebration of postfix dereference syntax, subroutine signatures, new slice syntax and numerous optimizations. The piano is missing.

    ~~ with apology and deference to Dave Barry

    --
    <blink>down the rabbit hole</blink>
    1. Re:Perl Festivity Levels by Anonymous Coward · · Score: 0

      A decade too late for the funny points on this shithole, but I laughed.

  25. Re:We banned Perl by Anonymous Coward · · Score: 0

    Cool, but meanwhile nearly everyone else has solved this problem with some sort of standardized dependency framework, while you are using homebrew glue.

  26. Post Fix dereferencing about time. by upuv · · Score: 1

    I was very active back in the early days of 5.0 development. I fought for this and lost.

    I always struggled with the non-nonsensical @{} ${} ..... style. It was difficult to mentally process. Long chains of dereferencing would be especially complicated.

    I'm very pleased to see this finally make it in.

  27. LATEST NEWS I INDIA by Yarn+export+from+Ind · · Score: 0

    chennai local news Karan Johar buys rights of a hit Pakistani number and gets Arijit Singh to rework it.The music of their last outing together made it to the list of chartbusters (Remember tamil cinema news

  28. BEST NEWS by Yarn+export+from+Ind · · Score: 0

    tamilnadu political news The next schedule of Mahesh Babu-Tamannaah starrer Aagadu will commence its shooting at Ramoji Film City, Hyderabad. Director Sreenu Vaitla is currently filming scenes on the lead pair and support

  29. Re:We banned Perl by redlemming · · Score: 1

    I don't ascribe the bad code to the language, but to the bad developers.

    Unfortunately, Perl limits even good developers.

    The major problem I have with Perl is not its sometimes ugly syntax, but rather its limited mechanisms for enforcing code correctness at compile time. This means that many types of error can't be found until one runs a program. This in turn means one runs up against the classic combinatoric explosion problem associated with run time testing. Given that even the best developers have bad days, this can be a big problem.

    Perl is a lot like Visual Basic, or spreadsheet languages, in this sense.

    Languages such as Java, C#, C++, Ada, VHDL, SystemVerilog, and many others all provide a much stronger level of support for checking things at compile time. This can even be done to some extent in a really old language like C, with tools such as the mainstream lint tool, and the many lint extensions that are available or which can be readily written.

    As a bonus, many of these mechanisms to exist to support compile time checking of code make reading other people's code easier (and with modern development tools, they also make modifying that code to help understand it easier).

    With Perl, "use strict" gives you a little bit of this, but it really doesn't compare to what is possible in other languages. Even modern Perl extensions such as Moose are pretty limited in comparison to what can be done in other languages. In the final analysis making smart compilers and other tools for code checking depends on the type system the language implements, and Perl falls short.

    I don't think Larry Wall understood this (if he had done his research, he would have, since Ada had been around for several years when Perl was created, and even then -- 1987 -- these issues were well understood), and I don't think most Perl programmers understand it either to this day.

    Perl also has the problem that it's difficult to parse, so a coding team has to have pretty strict standards regarding language use if it's going to be developing code checking tools. Hence, the "there's more than one way to do it" concept in the design of the language actually creates a serious problem for users of the language, because it complicates the problem of parsing the language (and there's no built-in parser that can readily be customized for use in writing a code checking tool).

    It would have been better to have strong type checking be the default, with a more limited syntax, then let the user relax the strictness when desired (sort of like using Java and Groovy together, getting the benefits of a scripting language when appropriate, but also getting the benefits of a well thought out language).

    As a result of this issue, I prefer not to use Perl for anything more than 5-10 pages in length. In such a short program, it's not that bad to review the code, fully understand it, and test it. Within those limits, it's a useful tool.

  30. Re:We banned Perl by Tanktalus · · Score: 1

    I used to be a huge fan of C++.

    All those negatives you cite seem to me to be advantages. Because when you know how to use them, they become powerful forces for good. Sure, there's plenty of room to shoot your foot off, but there are some things you can do in Perl that a stricter language wouldn't let you do.

  31. Re:We banned Perl by Anonymous Coward · · Score: 0

    I don't think Larry Wall understood this (if he had done his research, he would have, since Ada had been around for several years when Perl was created, and even then -- 1987 -- these issues were well understood), and I don't think most Perl programmers understand it either to this day.

    Some people like static languages, and some people like dynamic languages. Dismissing people who don't share your preference with "I don't think they understand" is the height of arrogance.

  32. Re:That's not it. (mostly) by riondluz · · Score: 1

    I mostly lurk and seldom reply to anon.
    But I'm compelled to say
    Well Spoke, and thanks for the forethought.

    Perl was the reason I started wrapping my brain around regular expressions. Later in the 90's I build complex backends using cgilib. Tried a few frameworks like mason..... I became a perlOphite for all the sentiments you expressed so well.

    The ease of cpan, of quickly manipulating DBI tables, so many reasons why it, and its attitude,
    always works for me. Off a CLI, wrapped up in a shell script, part of a larger pipe; I just cannot imagine using another interpreter as painlessly.

    Specially for admin stuff and my personal libs of
    files/data which require maintaining.

    That said, were I a manager today I'd see the
    sense in concluding that python, ruby, a compiled
    lang, .... would have a better outcome from the
    devs; despite my personal aversion for each of them. Enforcing Delimiters does not good code guarantee and makes editing others' code in vi more tedious (or macro'd). Maybe if I were an IDE
    type of guy.

    I found my time spent adopting/trying/using rails/passenger/gems/mongrel less warm-n-fuzzy
    than squating in the cpan/perlmonkworld camp

    I feel Perl epotimizes the LAMP stack, the finishing touch of what, for me, was a process
    (mentioned earlier) of learning OS as much as CS
    and appreciating the many ways to do one thing.

    But not all programmers feel drawn to broader systems and from that narrower perspective more structure makes infinitely more sense.

    For those who might say perl is a hackers language
    I would heartily agree. Its where it's genius lies.

    --
    resist propaganda