Slashdot Mirror


mod_perl 2.0.0 Released

JamesD_UK writes "mod_perl 2.0.0 has been officially released into CPAN. Enhancements over mod_perl 1 include threads support and a perl interface to the Apache Portable Runtime. More details on the release can be found on CPAN."

8 of 165 comments (clear)

  1. Perl a dead language? by Anonymous Coward · · Score: 5, Interesting

    I do not understand how anyone can suggest that PERL is a dead language. It is still one of the most powerful text processing languages out there, with the extensibility that allows it to do everything from performing network activities to CGI. Although CGI is in its decline, it is still used plenty.

    Theres that and the fact that PERL is just a really fun language, very easy, and extremely free-flowing, which I personally think is a good thing.

  2. Re:Perl still used? by Living+WTF · · Score: 5, Informative

    > Who still uses Perl for web stuff?

    What do you think that ".pl" in most slashdot URLs stands for? PHP Light? Phyton Lowspeed? Perhaps Lisp?

    --
    I don't suffer from insanity, I enjoy every minute of it.
  3. General note: what is it? by Anonymous Coward · · Score: 5, Informative

    For people who are wondering what mod_perl is exactly: it's a way of integrating perl into Apache's webserver. I think the main advantage is that you don't have the overhead of firing up perl for each cgi-type request. The main gotchas, for the developers point of view, involve a little perl enviornment staying alive, when a perl script starts, runs, and stops, it cleans up after itself, but when it 'stays alive' inside apache, you have to make sure it's not accumulating too much memory cruft, that you're closing handles, etc etc.

    This is what I know mostly by reputation, rather than direct experience, experts please feel free to correct me

    --

    #perl -e '$??s:;s:s;;$?::s;;=]=>%-{-|}&|`{;; y; -/:-@[-`{-};`-{/" -;;s;;$_;see'

    1. Re:General note: what is it? by ydnar · · Score: 5, Informative

      The main advantage is not the faster CGI execution environment.

      mod_perl lets you create Apache modules in Perl, that handle every stage of a request (or anything else), and are full peers of Apache modules written in C.

      ModPerl::Registry[Prefork] is just a bonus. The more interesting m_p modules are authn/authz/dispatch modules that can replace cumbersome C equivalents.

      y

  4. Re:Perl still used? by _defiant_ · · Score: 5, Informative

    Who still uses Perl for web stuff?

    Ohh, I don't know... how about Amazon and Salon? Kuro5hin and all the other Scoop based sites like DailyKos and MyDD. And now that I think about it, MovableType, TypePad, and LiveJournal are all writen in Perl.

  5. Is an elephant bigger or a girafe taller? by systems · · Score: 5, Insightful

    It's not that Perl is good or bad by itself, the question is more like, you still that Perl is still good/better in comparision to Ruby, Tcl, Python, Haskell, OCaml, Mozart/Oz and others more.

    I do realize, that sometimes comparing two languages is more like asking, is an elephant bigger or a girafe taller?

    But honestly, if you are still to start learning would you still have picked Perl.

    I picked Tcl and I have my reasons. (Tcl/Tk, Sqlite, event driven programming and OpenAcs). And my second choice would be ruby, I strongly like the OOP paradigm and as far as I know Ruby got better support for this paradigm, I'll probably learn ruby next, I believe one should learn a new language every now and then (it's a common advice, I didn't come up with it).

    Supporting old system is good enough reason to learn Perl, but beside taking advantage of availbe libraries (and this is a HUGE good reason) I dont see any other reason to get excited over Perl.

  6. What defines dying? by malverian · · Score: 5, Interesting

    Perl still has a very active community with some very incredible and dedicated hackers. The main thing that keeps me coming back to Perl for personal projects is the fact that it's such a FUN language to program in. I can think of many benefits to using Python and PHP in a work environment, but no matter how long I work with other languages, I always come running back to Perl when I'm in the mood for some highly caffeinated drinks and a late night of hacking. Say what you will about Python or PHP, but you probably can't say either is fun or enlightening to use. I've found that Larry Wall is a very unique individual, and a lot of that is pervayed through the style of his programming language. In Perl I can say (figuratively).. "Go fetch the paper!" or "Can you get the paper?" and both of them work. While that might be a readability nightmare, it lets you be very creative with your code. And to some people, being creative is a nice release after the regimented, controlled environment we deal with in the workplace.

    --
    You're just mad because the voices in your head talk to me.
  7. Some mod_perl info by programgeek · · Score: 5, Informative
    You people are saying alot of stuff without even bothering to google it.

    The following is taken from http://perl.apache.org/
    "mod_perl is more than CGI scripting on steroids. It is a whole new way to create dynamic content by utilizing the full power of the Apache web server to create stateful sessions, customized user authentication systems, smart proxies and much more. Yet, magically, your old CGI scripts will continue to work and work very fast indeed. With mod_perl you give up nothing and gain so much!"

    "mod_perl gives you a persistent Perl interpreter embedded in your web server. This lets you avoid the overhead of starting an external interpreter and avoids the penalty of Perl start-up time, giving you super-fast dynamic content.

    As you'd expect from the Perl community, there are hundreds of modules written for mod_perl, everything from persistent database connections, to templating sytems, to complete XML content delivery systems. Web sites like Slashdot and Wired Magazine use mod_perl."

    Yes, Slashdot does run on mod_perl.

    A friend of mine uses mod_perl and the performance increase he gets is insane.

    --
    Georgia