Slashdot Mirror


Where's the "IronPerl" Project?

pondlife writes "A friend asked me today about using some Microsoft server components from Perl. Over the years he's built up a large collection of Perl/COM code using Win32::OLE and he had planned on doing the same thing here. The big problem is that as with many current MS APIs, they're available for .NET only because COM is effectively deprecated at this point. I did some Googling, expecting to find quickly the Perl equivalent of IronPython or IronRuby. But to my surprise I found almost nothing. ActiveState has PerlNET, but there's almost no information about it, and the mailing list 'activity' suggests it's dead or dying anyway. So, what are Perl/Windows shops doing now that more and more Microsoft components are .NET? Are people moving to other languages for Windows administration? Are they writing wrappers using COM interop? Or have I completely missed something out there that solves this problem?"

390 comments

  1. What? by martinw89 · · Score: 5, Funny

    Perl/Windows shops? WTF?

    That's like buying an extremely overpowered, difficult to setup and impossible to maintain turbo for your Yugo.

    1. Re:What? by Anonymous Coward · · Score: 5, Informative

      Microsoft was shipping Perl interpreters for Windows at least as far back as the Windows NT 4 Resource Kits (like 1998?). There is a long history of Perl on Windows.

    2. Re:What? by stas2k · · Score: 3, Interesting

      Actually, I remember reading somewhere that Microsoft uses build system written in Perl to compile Windows. Ironic, isn't it?

    3. Re:What? by Anonymous Coward · · Score: 0

      Your information is outdated...That may have been true ages ago, but everything is moving to MSBuild (.NET, C#).

    4. Re:What? by Anonymous Coward · · Score: 0

      And where did you get your information? Why would Windows, which is 20 years old, move to MSBuild in just a few years? Why would Microsoft do a gratuitous rewrite more than anyone else?

    5. Re:What? by Anonymous Coward · · Score: 0

      The original Windows is 23 years old and hasn't been updated since Windows ME. NT based versions of windows are only 15 years old so it is more likely that they upgraded. As to weather they really have or not I have no clue.

    6. Re:What? by DiegoBravo · · Score: 1

      Hope it actually worked, not like like its unusable "POSIX" add-on environment, NFS client, etc...

    7. Re:What? by noidentity · · Score: 5, Funny
      Can't believe nobody's said it yet:

      Don't cast perl(s) before swine(dows).

    8. Re:What? by Anonymous Coward · · Score: 0

      There's still a lot of Perl and Javascript in there last I checked.

    9. Re:What? by clodney · · Score: 1

      Ever hear of "dogfooding", or "eating your own dog food"?

      The products MS offers for sale almost always predate the developer tools they create, but from reading some of the developer blogs there is always pressure to move their own products onto their own developer tools.

      MSBuild is integrated into TFS, which is their enterprise level source control/work tracking/build environment. It is easier to sell TFS to large businesses if MS uses it internally, so there is pressure to make the switch.

    10. Re:What? by Anonymous Coward · · Score: 0

      The Yugo reference killed me.

    11. Re:What? by njahnke · · Score: 1

      Perl/Windows shops? WTF?

      That's like buying an extremely overpowered, difficult to setup and impossible to maintain turbo for your Yugo.

      So is Windows the turbo or the Yugo? :) I've thought about it for a while now and I'm still not quite sure. "impossible to maintain" makes me think the turbo is Perl, but "overpriced"? Maybe it's Windows after all...

    12. Re:What? by Anonymous Coward · · Score: 1, Funny

      Perl + Windows -- There's more than one way NOT to do it.

    13. Re:What? by Ricardo+Lima · · Score: 1

      I'd say it explains a lot!

      --
      Ricardo da Silva Lima
    14. Re:What? by jonadab · · Score: 1

      Actually, I think the majority of Perl programmers write Windows-only code. (They're not the *better* Perl programmers, but hey.)

      > That's like buying an extremely overpowered, difficult to setup
      > and impossible to maintain turbo for your Yugo.

      Perl is only difficult to set up or maintain if you insist on compiling it yourself, which would be extremely unusual position for a Windows user to take. Most Windows users who want Perl just get it from ActiveState. (There are other options, e.g., Strawberry Perl, or Cygwin, but those tend to be used more by people who were already familiar with Perl first and then found themselves having to support Windows for one reason or another.)

      Personally I think Microsoft should work out a deal with ActiveState or somebody and actually ship Perl out of the box like every other operating system. But I might be biased, since having Perl (and Emacs) is way more important to me than what OS I am running. I happen not to prefer Windows, and mostly use other systems (currently, Debian). But I'd be much more willing to use Windows with Perl than Linux without Perl. So, as I said, I'm biased.

      Having said that, I'm a little hazy on exactly what IronPerl would be, if it existed, and what actual problem it would solve that standard Perl doesn't, other than filling out one more space on somebody's Buzzword Bingo card. Maybe someone who knows more about .NET could elaborate on this?

      --
      Cut that out, or I will ship you to Norilsk in a box.
    15. Re:What? by Anonymous Coward · · Score: 0

      I'm sorry, but the whole reason we moved to using Perl is BECAUSE it would run on both Windows & Unix. And do you like coding in DOS script? Now there's a masochist for you. Plus, ActiveState Perl is perfectly easy to install and use on Windows.

    16. Re:What? by LizardKing · · Score: 1

      It was the ActiveState port, which was funded at least in part by MicroSoft. It included a number of modules for accessing Windows specific features, bu the problem was that they were poorly documented and the API changed between releases. The reason I know is because I had to write a few scripts for NT 4.0 when the company I worked at was transitioning from SunOS. It was this experience that made me decide to stick with Unix, even if it seemed to be a declining technology (circa 1997 IIRC). Thankfully Linux took off in a big way, and NT never really lived up to MicroSoft's hype.

    17. Re:What? by martinw89 · · Score: 1

      Not overpriced. Overpowered, something that Windows definitely is not ;)

      Perl is the turbo

    18. Re:What? by Allador · · Score: 1

      Having said that, I'm a little hazy on exactly what IronPerl would be, if it existed, and what actual problem it would solve that standard Perl doesn't, other than filling out one more space on somebody's Buzzword Bingo card. Maybe someone who knows more about .NET could elaborate on this?

      Access to the .NET libraries and components built in .NET that are not COM-enabled.

      Basically the same reason you'd want IronPython or IronRuby.

    19. Re:What? by Capsaicin · · Score: 1

      Perl/Windows shops? WTF?

      You want to use Windows without Perl, Python or some similar language?!

      --
      Better to be despised for too anxious apprehensions, than ruined by too confident a security. --Edmund Burke
    20. Re:What? by Schraegstrichpunkt · · Score: 1

      Ever hear of "dogfooding", or "eating your own dog food"?

      Yes, and it's something that I would say Microsoft does too much. MS, if anyone, seems totally clueless about how much their user experience SUCKS compared to pretty much every other system. Even Mac OS X beats them out, and it's not exactly the epitome of robustness or ease-of-use. (Try working outside their "drag and drop an application to install/remove it" metaphor. They have an "installer" that can't uninstall anything. I nearly hosed my girlfriend's 10.3.9 Mac just trying to install the compiler.)

    21. Re:What? by Anonymous Coward · · Score: 0

      There will be no IronPerl nor Jerl, just like there won't be IronCOBOL nor JOBOL.

    22. Re:What? by Lodragandraoidh · · Score: 1

      Perl can read and write files using posix comliant I/O -- what else do you need?

      --

      Lodragan Draoidh
      The more you explain it, the more I don't understand it. - Mark Twain
    23. Re:What? by jonadab · · Score: 1

      > Access to the .NET libraries

      On the one hand, I'd be fairly astonished if there isn't a way to call .NET libraries from Perl code. I think I said this before, but Perl is a major glue language. People call C and C++ libraries from Perl code all the time. You can call Java libraries from Perl code. You can call Python libraries, or Ruby libraries, from Perl code. You can call PHP libraries (not sure why you'd want to, but hey, you *can*) from Perl code. Heck, you can write functions in those languages and embed them Inline right *in* your Perl code, if you want.

      > Basically the same reason you'd want IronPython or IronRuby.

      That's no kind of answer, or, rather, equates in my mind to the same reason I gave before, namely, marking a couple more squares in a Buzzword Bingo card.

      Where's the *practical* benefit? What actual, *useful* libraries would you be able to access that you otherwise can't (or can't easily)? Does .NET provide anything particular that Perl programmers don't take for granted?

      Really, to get a meaningful answer (either positive or negative) to this question, someone would have to jump in who is significantly familiar with both .NET and Perl. There are such people, but slashdot isn't exactly teeming with them.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    24. Re:What? by Corwn+of+Amber · · Score: 1

      I/O that actually complies to POSIX?

      --
      Making laws based on opinions that stem up from false informations leads to witch hunts.
  2. A bit O/T, but by Big+Nothing · · Score: 5, Funny

    I _love_ perl. It's so simple, anyone can use it. In fact, the other day I found my 1½ yYO in front of the computer, and she had written a fully working email reader in perl. Truely amazing.

    --
    SIG: TAKE OFF EVERY 'CAPTAIN'!!
    1. Re:A bit O/T, but by Anonymous Coward · · Score: 5, Funny

      Unfortunately, this being Perl, she had been trying to write a word processor :)

    2. Re:A bit O/T, but by PrinceOfStorms · · Score: 5, Funny

      Not to be competitive or anything, but the email reader my cat wrote in perl this morning included a Bayesian spam filter. Did your child think of including that, huh?

    3. Re:A bit O/T, but by Big+Nothing · · Score: 3, Funny

      To be honest, no. Seriously, though, she's not that smart - I think she was actually trying to write a FPS game.

      --
      SIG: TAKE OFF EVERY 'CAPTAIN'!!
    4. Re:A bit O/T, but by syousef · · Score: 2, Funny

      I _love_ perl. It's so simple, anyone can use it. In fact, the other day I found my 1½ yYO in front of the computer, and she had written a fully working email reader in perl. Truely amazing.

      Smalltalk would have been much more suited to the job.

      --
      These posts express my own personal views, not those of my employer
    5. Re:A bit O/T, but by daeley · · Score: 5, Funny

      I'm pretty sure that qualifies as an UUOC.

      http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat

      --
      I watched C-beams glitter in the dark near the Tannhauser gate.
    6. Re:A bit O/T, but by RuBLed · · Score: 1

      Heck yeah! You could even use it to build a site that could DDOS server farms. How could you top that!?

    7. Re:A bit O/T, but by Anonymous Coward · · Score: 1, Funny

      Shit,

      I dropped a coffee mug on my keyboard this morning and it implemented the entire Porter stemming algorithm in 5 lines.

    8. Re:A bit O/T, but by Antique+Geekmeister · · Score: 1

      And I've already got someone at work who downloaded it from CPAN, expecting it to just work on their desktop. Do you think we could get your 1 1/2 year old to actually write an installer for it?

    9. Re:A bit O/T, but by bratwiz · · Score: 1

      Apparently there are quite a number of folks here who are not smarter than a 1-1/2 year old...

    10. Re:A bit O/T, but by shaka · · Score: 0

      Smalltalk would have been much more suited to the job.

      Whooooosh

      --
      :wq!
    11. Re:A bit O/T, but by dreamchaser · · Score: 1

      Don't feel bad. At least she didn't write Daikatana.

    12. Re:A bit O/T, but by ijakings · · Score: 5, Funny

      I wish she'd writtedn DNF, at least wed be out of a long wait.

    13. Re:A bit O/T, but by adamkennedy · · Score: 1

      I'm working on it...

    14. Re:A bit O/T, but by sqldr · · Score: 2, Funny

      My dad taught me brainfuck :(

      --
      I wrote my first program at the age of six, and I still can't work out how this website works.
    15. Re:A bit O/T, but by Ngarrang · · Score: 1

      Apparently there are quite a number of folks here who are not smarter than a 1-1/2 year old...

      You must be new here.

      --
      Bearded Dragon
    16. Re:A bit O/T, but by bratwiz · · Score: 1

      No, not new, but let's say the veil just lifted... :)

    17. Re:A bit O/T, but by Arthur+Grumbine · · Score: 1

      Whooooosh

      Recursive commenting, eh? Very meta.

      --
      Now that I think about it, I'm pretty sure everything I just said is completely wrong.
    18. Re:A bit O/T, but by AceofSpades19 · · Score: 1

      Except it takes 1 year per line to read the source

    19. Re:A bit O/T, but by mr_mischief · · Score: 1

      ...but in the great tradition of Emacs, it can do both, and browse the web, too.

    20. Re:A bit O/T, but by PaneerParantha · · Score: 1

      I used COBOL. I said "Let there be light."

    21. Re:A bit O/T, but by jrockway · · Score: 2, Funny

      Perl is the Perfect Emacs Rewriting Language, after all.

      --
      My other car is first.
    22. Re:A bit O/T, but by jrockway · · Score: 1

      FWIW, Adam (the other commenter in this thread) has written an excellent distribution called Strawberry Perl:

      http://strawberryperl.com/

      You should try it out if you are on Windows. If you're on some other OS, apt-get install perl or equivalent should do the trick.

      --
      My other car is first.
    23. Re:A bit O/T, but by GeekWade · · Score: 1, Funny

      Five lines! You must be a stickler for whitespace and comments.

    24. Re:A bit O/T, but by sumdumass · · Score: 1

      Are we talking about pearl or emacs now?

    25. Re:A bit O/T, but by Toad-san · · Score: 1

      She probably did. You're just feeding it the wrong command line data.

    26. Re:A bit O/T, but by LizardKing · · Score: 1

      Talk about touching you in that "special place" ...

    27. Re:A bit O/T, but by chris_mahan · · Score: 1

      Shit don't do that. My boss will come around asking what's so funny when he hears me laugh out loud in my cube...

      --

      "Piter, too, is dead."

    28. Re:A bit O/T, but by Anonymous Coward · · Score: 0

      You love perl and expect us to believe that you've successfully reproduced with a member of the opposite sex? lies!!

    29. Re:A bit O/T, but by Big+Nothing · · Score: 1

      "You love perl and expect us to believe that you've successfully reproduced with a member of the opposite sex? lies!!"

      Yes, I've heard that reproducing with a member of the same sex can prove somewhat impossible.

      --
      SIG: TAKE OFF EVERY 'CAPTAIN'!!
  3. Don't if this would help but.... by prayag · · Score: 5, Informative

    here goes nothing Programming Perl in Dot Net

    1. Re:Don't if this would help but.... by dvh.tosomja · · Score: 5, Funny

      oh god, At first I read the "Programming Perl in Dot Net" as "Programing in Perl is Not Death"

    2. Re:Don't if this would help but.... by Anonymous Coward · · Score: 0

      The god thing abort dyslexia is hat if it doesn't make cents then you kane juice reread it.

  4. Re:Python is available by Zsub · · Score: 1

    Complete rewrite! FTW! Get real man. Although some quick research does reveal that even though it still is somewhat of a personal taste matter, Python does seem to have certain advantages. Of course, you could always try Java...

  5. As the NRA says.... by Anonymous Coward · · Score: 5, Funny

    From my cold, dead hands!

  6. Re:No one made it cause no one cares by Anonymous Coward · · Score: 3, Insightful

    No... people are just moving away from Windows for ANY administration, or anything of real value.

    The figures on this simply don't support that claim. Your anecdotal evidence of two places you worked it meaningless.

    If anything I'd say this is because many people consider Perl's time to have passed and no longer see a reason to use it in any significant project. Perl is a typical example of a jack of all trades, master of none. These days with so many well-designed languages to choose from it's a great deal easier and more productive to learn several languages that each do one paradigm well and use them as applicable instead of trying to get by using just Perl.

  7. Masochism is rife within IT by Colin+Smith · · Score: 5, Funny

    Some people aren't happy until they have the worst of all worlds.

    "Because I can".

     

    --
    Deleted
    1. Re:Masochism is rife within IT by jgrahn · · Score: 2, Insightful

      Some people aren't happy until they have the worst of all worlds.

      Oh, do all the usual Slashdot Perl-bashing moves if you want ... Perl is a big chunk of Unix sanity which you can bring with you to Windows, and use for Unix-y tasks. Same reasons as for installing Cygwin. I often use perl as a normal command-line tool, when grep and awk aren't good enough.

      But I admit that a Perl/Windows shop sounds odd.

    2. Re:Masochism is rife within IT by Corwn+of+Amber · · Score: 1

      Cygwin, yeah, just like Perl on windows.

      Oh I LOVE that comparison.

      --
      Making laws based on opinions that stem up from false informations leads to witch hunts.
  8. Re:No one made it cause no one cares by timmarhy · · Score: 0, Redundant
    nonsense. windows is very very firmly entrenched in corporate IT. a more likely explanation is that it's an odd combination that no one cares about. perl really isn't all that great anymore, it's syntax is more complex and it's got no speed or other advantages over the other 10+ languages that can fill the gap.

    and before you start ranting about windows is a poor web platform http://uptime.netcraft.com/up/today/top.avg.html.

    --
    If you mod me down, I will become more powerful than you can imagine....
  9. Re:No one made it cause no one cares by martinw89 · · Score: 2, Insightful

    I wouldn't say everyone is moving away from Windows, my last job was very Microsoft centered. Windows workstations everywhere, Exchange server, IIS servers, Microsoft SQL, Active Directory, all that bullshit.

    But, I do think anyone using Windows is very unlikely to use Perl; they just seem diametrically opposed. One being used for Unix administration since large systems were in their infancy, and the other one being a the-suits-picked-it decision. At least in my (very biased) opinion.

  10. I hope... by hotfireball · · Score: 1

    But I hope, no JPerl for upcoming 0xff years ever. Otherwise I will not just "Write once and debug everywhere", but also "Write once and never look at it again".

  11. Perl in decline, at least here by Asmodai · · Score: 4, Insightful

    Based on what I gather in my country the use of Perl is actually in decline, while Python's is growing. Then there's Ruby that's also popular (not sure if it proves to be stable as Python's growth though).

    This does confirm, at least for me, why IronPython and IronRuby happened, but why IronPerl is nowhere in sight. Of course, YMMV in your country, but I think it is a global trend to be honest.

    --
    Jeroen Ruigrok/Asmodai
    1. Re:Perl in decline, at least here by pthisis · · Score: 4, Insightful

      I think it's more that IronPython is basically a vanity/research project, akin to JPython/Jython a few years ago; very few people use it in practice, since the standard Python interpreter runs just fine on Windows and lets you avoid significant compatibility problems (and use all the packages that the rest of the Python world uses, seamlessly).

      These "other language on my interpreter" projects _seem_ really cool, but in practice it's usually simpler and faster (both development and performance wise) to use the languages in their own interpreters and use some IPC/RPC/web services/etc to communicate with .NET (or Java, or whatever) rather than trying to shoehorn your language onto the CLI or JVM.

      --
      rage, rage against the dying of the light
    2. Re:Perl in decline, at least here by Ed+Avis · · Score: 4, Insightful

      The biggest reason is that Python is a fairly small language with a well-defined spec. It already had at least two independent implementations (in C and Java) and between them they had ironed out areas of ambiguity in the language. If you write a Python program you are programming for the defined language and usually not for the quirks of any one implementation.

      Perl 5, on the other hand, is very much defined by its single implementation, full of odd quirks and things that don't really make any sense but have to be kept for compatibility. To implement a fully compatible Perl 5 you would essentially need to reproduce the guts of the existing perl source code, which is why nobody has really bothered.

      --
      -- Ed Avis ed@membled.com
    3. Re:Perl in decline, at least here by ozphx · · Score: 3, Informative

      Yeah Python developers tend to like Boo, which is very Python-inspired.

      The CIL part of the CLI is stack-based, and is more of a "theoretically generic" intermediary language, and works for almost any purpose.

      The CTS (Common Type System) does have some limits (no multiple inheritance except multiple interface inheritance). Your language implementation only has to play nice with the CTS if you want it to interoperate with other languages on the CLI. (Normally you can write an app in a whole bunch of languages and the metadata is exposed to the others - so you might choose to use C# for your core services, C++/CLI for interop work, and something like Python/Boo for your business layer).

      I think the Eiffel implementation ditches the CTS, or extends it. That has its ups and downsides (mainly down imo).

      --
      3laws: No freebies, no backsies, GTFO.
    4. Re:Perl in decline, at least here by init100 · · Score: 1

      This does confirm, at least for me, why IronPython and IronRuby happened, but why IronPerl is nowhere in sight.

      What is it with the Iron prefix and .NET-connected language implementations?

    5. Re:Perl in decline, at least here by somersault · · Score: 1, Informative

      You seem to be the only other person to notice my first thought - does it really matter if the language is interpreted anyway and has a version for your platform?

      I like Perl, I started using it last year and have been using it to write web apps, but when it comes to writing Windows applications I wouldn't start out using Perl. I haven't even looked much into .NET either. I've just been writing any Windows applications in Delphi - which possibly ends up compiling its code in such a way to use .NET APIs where possible, but again I haven't really looked into it :) The apps I've written with Delphi 2007 seem to work fine in Vista anyway (our MD bought a Vista machine just for the "ooh, shiny!" factor :/ ).

      --
      which is totally what she said
    6. Re:Perl in decline, at least here by johannesg · · Score: 2, Funny

      Based on what I gather in my country the use of Perl is actually in decline, while Python's is growing.

      It should be noted here that Asmodai is in fact a demon, and therefore lives in hell. So keep that in mind before you adjust your strategies based on what languages he is using...

    7. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      What makes you think very few people use IronPython... You're wrong. :-)

    8. Re:Perl in decline, at least here by shutdown+-p+now · · Score: 1

      This does confirm, at least for me, why IronPython and IronRuby happened, but why IronPerl is nowhere in sight. Of course, YMMV in your country, but I think it is a global trend to be honest.

      It's not just Microsoft's Iron* stuff. Did you notice that there's also Jython and JRuby - the latter being a Sun project, not sure about the former - but no "JPerl"?

    9. Re:Perl in decline, at least here by RDW · · Score: 2, Funny

      I think they're just being Ironic.

    10. Re:Perl in decline, at least here by LarsWestergren · · Score: 1

      These "other language on my interpreter" projects _seem_ really cool, but in practice it's usually simpler and faster (both development and performance wise) to use the languages in their own interpreters and use some IPC/RPC/web services/etc to communicate with .NET (or Java, or whatever) rather than trying to shoehorn your language onto the CLI or JVM.

      In some cases JRuby is faster than the standard Ruby implementation. You also get access to all the services, tools, and existing libs of the JVM. It may also be easier to get it through the corporate iron wall - maintenance don't have to learn how to set up, deploy, tune and monitor a new environment, they just drop in a new jar file.

      Don't know about Iron* since I try to stay away from the MS sphere, but there are quite a lot of successful JRuby apps up and running around the world, and Thoughtworks even developed an app for sale specifically based on JRuby:
      http://studios.thoughtworks.com/mingle-project-intelligence

      --

      Being bitter is drinking poison and hoping someone else will die

    11. Re:Perl in decline, at least here by PeKbM0 · · Score: 1

      To be fair, Ruby is different to most of the other "normal" scripting languages. The original interpreter written by Matz doesn't run on a VM -- instead it builds an abstract syntax tree, which is somewhat slower.

    12. Re:Perl in decline, at least here by LarsWestergren · · Score: 2, Informative

      Oh, and I forgot:

      I think it's more that IronPython is basically a vanity/research project, akin to JPython/Jython a few years ago

      Jython has had a resurgence last year. Sun even hired Ted Leung towork on it full time.
      http://www.sauria.com/blog/2008/03/03/the-sun-is-going-to-shine-on-python/

      --

      Being bitter is drinking poison and hoping someone else will die

    13. Re:Perl in decline, at least here by Coryoth · · Score: 2, Insightful

      Based on what I gather in my country the use of Perl is actually in decline, while Python's is growing. Then there's Ruby that's also popular (not sure if it proves to be stable as Python's growth though).

      Perl has the potential to end up being the next COBOL -- a language with vast amounts of hard to understand code, and few people that can make any sense of it. I think fewer and fewer newcomers are bothering to learn perl. It used to be the case that perl was the do all language: from web scripting, to data processing, to UNIX glue and general purpose scripting. Many different scripting languages have encroached on those different niches now, from PHP at the web end, through Ruby and Python, and even Javascript. Perl is no longer the obvious first port of call. Worse, Perl 6, the behemoth on the perpetual horizon, is threatening to change almost everything but never actually arriving. None of that is to say that perl is bad a choice, just that it is no longer the obvious first choice for beginners to scripting to learn. If the trend continues that's going to leave an awful lot of perl code out there to be maintained, and a limited supply of older geeks who are still fluent enough in perl to do it.

    14. Re:Perl in decline, at least here by ricegf · · Score: 2, Insightful

      Sun supports Jython as well.

      We've embedded Jython into a couple of Java apps to provide end-user scripting capabilities with very good success. End users have been very clever in automating their own work, and even the tool development teams have adopted it for quickly writing report front ends and such.

      We've distributed and evangelized both native Perl and Python. Perl tends to be used when manipulating text files, while Python is most popular when controlling processes, though the correlation is hardly perfect. Either works just fine. I'm confident Ruby / JRuby does, too, it just arrived a little late to our party. :-)

    15. Re:Perl in decline, at least here by hey! · · Score: 1

      Perl was not conceived as a systems programming language. It was conceived as a language in which a number of very common problems were very convenient to solve. As such, it probably overshot its natural niche, but that's a good thing within limits, because problems are often NOT neatly contained in some kind of application niche.

      For example there are a number of nice GIS libraries in Perl. You wouldn't write a full fledged GIS application in Perl, but say you have a simple but successful web site, then decide to repackage it to provide location based services through some mobile carrier. Well, you'll find the GIS and web services libraries there. That's why IronPerl would be really valuable. It would make the vast base of useful Perl code more widely available.

      Perl is a contrarian language. I personally don't like it very much, and a lot of people agree with me, but I don't think dislike counts for much. What is interesting is that it shows how much conventional wisdom is a convention. People have been doing surprising things with Perl as long as it has been around. I'm pretty happy with J2EE these days, but a few years ago project after project foundered as they struggled to fit themselves into the J2EE model, even resurrecting discredited practices like fat interfaces to get around problems with J2EE. In the meantime, as J2EE became more popular at Perl's expense, Perl based projects had none of these problems.

      It doesn't mean that J2EE isn't the right choice for projects, particularly today. It just means that, to coin a phrase, "there's m ore than one way to do it."

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    16. Re:Perl in decline, at least here by wisty · · Score: 3, Informative

      *sigh*, Python is a lot of things, but it is NOT well defined. Maybe Python is OK compared to the other open source source scripting languages like Perl and Ruby. C is a well defined language (except for the bits that are explicitly left undefined), Pascal is really well defined, and Lua is pretty damn good.

      I expect that Perl is left out because a lot of its strengths are in Unix scripting, database libraries, bioinformatics applications and other goodies, which rely on C code and a Unix platform. Ruby Gems and *cough* easy_install just aren't the treasure troves of CPAN, and CPAN can't be easily ported to .net.

    17. Re:Perl in decline, at least here by shutdown+-p+now · · Score: 1

      Ah, great. I prefer Ruby myself, but either way, it's good to see the attention of language behemoths - which both Sun and Microsoft are - to both Python and Ruby. So long as they don't "embrace and extend" the language (and both Sun and MS teams have been very careful about not doing it so far, if you care to read the blogs), it can only help enterprise adoption of both - which is cool. MS also seems to be pushing for Python & Ruby as the way to write Silverlight code-behind - which is also good.

    18. Re:Perl in decline, at least here by Khelder · · Score: 1

      I'm not familiar with IronPython or any Perl+Windows combo, but I strongly disagree with your assertion that JPython/Jython is a vanity/research project. Like everything else, it's not the perfect tool for all jobs, but it can be extremely handy, for example: experimenting with new Java APIs, writing Java tests that don't fit well into existing frameworks (e.g., JUnit), rapid prototyping, and building real apps (although IMNSHO, like Python, it's best suited to small-to-medium-sized ones).

    19. Re:Perl in decline, at least here by mmkkbb · · Score: 0

      I feel completely justified in moderating people down as 'Overrated' when I feel they don't deserve their karma bonus.

      --
      -mkb
    20. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      Actually, the Python spec is the CPython implementation. It shows in the way internals are exposed such as __dict__, __slots__, etc. Python would be more reimplementation-friendly, if such internals were hidden, because it'd allow independent interpreters to be better optimized.

    21. Re:Perl in decline, at least here by jhol13 · · Score: 2, Insightful

      Python interpreter runs just fine on Windows

      I've yet to see non-trivial Python program which works in WIndows. Offhand I remember Meld (uses gtk -> won't start) and Mercurial (DNS lookup does not work -> must use IP addresses).

      So the question is: is my very limited sample representative of Python-in-windows or not.

      I'd rather use Groovy, although it does have some problems (isn't stable as has too many incompatibilities with previous revision). Java is unbeatable portability-wise.

    22. Re:Perl in decline, at least here by Coryoth · · Score: 1

      I think the Eiffel implementation ditches the CTS, or extends it. That has its ups and downsides (mainly down imo).

      It would have to do something: no multiple inheritance in Eiffel would be very bad indeed -- almost unworkable really. There's also the issue of the (relatively recent) of non-conforming inheritance (i.e. you inherit the implementation, but don't consider yourself a subclass; it essentially allows composition of classes), which is very handy, but obviously isn't going to play nice with CTS.

      I'm a little disappointed Eiffel hitched itself to the .NET bandwagon; it's a nice language that's getting hammered into a badly shaped hole to make it work on .NET.

    23. Re:Perl in decline, at least here by somersault · · Score: 0, Offtopic

      That's nice.

      You could, however, moderate them according to the content of their current post regardless of how you feel about them as a person. I even modded up one of my 'freaks' last week. I don't give a shit about personal vendettas.

      If you mean you mod posts down as overrated when you feel the content doesn't deserve the karma bonus, I wouldn't have so much problem with that.

      People can be ignorant on certain topics while knowledgeable in others. I know I have plenty of gaps in my knowledge of the world, but I like to learn which is why I am here in the first place.

      People can also have bad days when they end up losing their rag and end up posting flamebait or trolling a group of people they see as morons. There may be no real justification for such childish behaviour, but downmodding a person's posts just because you don't like that person is even more childish IMO.

      --
      which is totally what she said
    24. Re:Perl in decline, at least here by Ed+Avis · · Score: 1

      What parts of Python's semantics are undefined or just defined by its implementation? I agree, Python is not a standardized language like C, C++, Java or C#, but stood side-by-side with Perl it looks like a model of academic rigour.

      --
      -- Ed Avis ed@membled.com
    25. Re:Perl in decline, at least here by mr_mischief · · Score: 1

      Perl hasn't gone anywhere. It's just that newer shops tend to start with the buzzword languages of the time. In the 1980's there were thousands of Lisp shops developing software. Now many of them are gone, but plenty of people still use Lisp even for new projects.

      In the 1990's there were lots of start-ups using Perl, and now many of them are gone. There are still plenty of people using Perl, even for new projects.

      In ten years, there will probably be a new king of the hill, like Erlang some kind of implicitly concurrent extension to Ruby. Yet Python will not magically die out over night any more than Perl or Lisp.

    26. Re:Perl in decline, at least here by ozphx · · Score: 1

      Ah don't worry too much, the Eiffel implementation on the CLR won't become the "mainstream" Eiffel environment.

      Theres a lot of interesting things happening in the CLR regarding Mixins, etc. Take a look at some of the duck typing implementations in Boo.

      --
      3laws: No freebies, no backsies, GTFO.
    27. Re:Perl in decline, at least here by codepunk · · Score: 1

      So the question is: is my very limited sample representative of Python-in-windows or not.

      I've yet to see non-trivial Python program which works in WIndows.

      What? I could of course compile a list a mile long but here is but one example and it is a much larger application than
      either of the two you listed.

      Chandler which just reached 1.0 from OSAF

      --


      Got Code?
    28. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      Mercurial works fine here with DNS (Mozilla, at least, is using it; it's in their MozillaBuild package of MSYS-and-other-things-you-need.)

      Buildbot also works for me, though it's too dumb to correctly kill processes.

    29. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      > The CTS (Common Type System) does have some limits (no multiple inheritance except multiple interface inheritance).

      That's like saying a kid is limited because s/he can only have one father. Removing the limit does not make it better. :)

    30. Re:Perl in decline, at least here by ianare · · Score: 1

      I developed python GUI apps for windows workstations during my last job, using wxPython. While many were trivial, basically simple scripts with a GUI, some were rather complicated and took months to develop and debug.

      Concerning portability, python is just as good (if not better) than java. All my python apps, save for those that did win32 specific stuff, run equally well on Linux, Mac, and BSD.
      Where java is superior to python is in execution speed.

      *shameless plug follows*
      You can download a non-trivial python GUI app that I've been working on here. Version 2 (in beta) has more features.

    31. Re:Perl in decline, at least here by dedazo · · Score: 2, Informative

      You're right, there's no formal Python specification. However, CPython is for all practical purposes the spec, with a separate stable and successful implementation (Jython).

      Perl on the other hand, has no spec other than Perl5, and no separate independent implementation.

      And quite frankly, saying that Perl5 is the spec is a little bit like saying that the blueprints for that building over there are available only as crayon scribblings scattered in random walls of odd-numbered floors.

      On the other hand, and I say this as a Python proponent, nothing comes close to CPAN. And let's not forget that Perl5 (on *nix at least) is about as stable and proven as you can get with software nowadays.

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    32. Re:Perl in decline, at least here by plague3106 · · Score: 1

      Ya, I haven't heard excitment much about Perl since early 2001. Personally I think it being difficult to read is part of the problem.

    33. Re:Perl in decline, at least here by chromatic · · Score: 1

      Perl 6, the behemoth on the perpetual horizon, is threatening to change almost everything but never actually arriving.

      There will be another combined stable release of Parrot and Rakudo (Perl 6 on Parrot) next Tuesday. We release a new stable version every month, just as we've done for the past 20 months.

    34. Re:Perl in decline, at least here by jonadab · · Score: 3, Interesting

      > Based on what I gather in my country the use of Perl is actually in decline

      Perhaps. But Perl is so widely used, it could decline steadily for forty years and still be more important than C#.

      I think a larger factor is that Perl is not usually given to a strong emphasis on presentation, brand names, buzzwords, and such. Perl is a very *practical* language, grounded in the idea of getting things done, and getting them done quickly, conveniently, and efficiently.

      Some languages would want to run in the .NET environment for ideological reasons ("managed code" blah blah blah) or in order to attract programmers and/or managers who have bought into the whole .NET thing, but for Perl the only real reason to run perl in the .NET environment, as opposed to the normal way of doing things, would be if it provided some concrete practical advantages; I'm not aware of any. I'm not saying .NET wouldn't provide an advantage for *some* languages. C/C++, for instance, were in dire need of some of the things that .NET can provide, not least higher-level variable types that automatically take care of things like reallocating more space when needed. But for Perl, as far as I'm aware, the .NET environment is a solution in search of a problem.

      Also, just because there's no "IronPerl Project" running around enthusiastically talking about the importance of running Perl in a .NET environment doesn't mean there aren't modules on the CPAN for interfacing with .NET code. Perl is, after all, a major glue language, so it's accustomed to interfacing with code that runs in different environments. There are probably at least three different approaches to it, with different strengths and weaknesses for different situation. I don't happen to know what they are, because I've never had any reason to work with .NET, but I if I wanted to know, I sure wouldn't ask on slashdot and sift through thousands of irrelevant posts in hopes of finding the answer. I'd go straight to a (gasp) Perl forum (e.g., Perlmonks) or a Perl mailing list, someplace with an SNR above 1.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    35. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      I'd never really seen IronPython as a vanity project. Honestly, there's been too much effort put into it to call it that.

      IronPython (and IronRuby) are an excellent way to put a dynamic face on an application written in a static (c#, vb.net) language.

    36. Re:Perl in decline, at least here by jonadab · · Score: 1

      > So the question is: is my very limited sample representative of Python-in-windows or not.

      I don't know. I haven't really used Windows very much since Python got popular.

      But I do know that any decently well-written Perl app has no trouble at all running on Windows, provided Perl is installed. You do have to avoid inherently-not-cross-platform schenanighans, like hardcoding file paths and slinging around external Unix commands in backticks, but good code generally doesn't do that stuff anyway.

      Maybe that's part of the reason why there's no IronPerl project. It isn't necessary.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    37. Re:Perl in decline, at least here by jhol13 · · Score: 1

      It is good to know my first impression of Python is biased.

      But I hope you (and other respondents) do understand my point of view - after fighting[1] with two Python programs both more-or-less failed (Mercurial works very well - except that you cannot say "hg pull http://my.server:8000/myproject", you must write http://1.2.3.4:8000/myproject). Both work nicely in Linux, btw.

      [1] Try installing gtk to Windows, at least year ago it was nightmare. I think it never worked for me.

      P.S. Last time, years ago, when I tried wxWindows, it was ugly as hell. Worse than e.g. http://www.wxwidgets.org/images/screens/kicad.jpg. Apparently it has moved a lot forward.

    38. Re:Perl in decline, at least here by bill_mcgonigle · · Score: 1

      The biggest reason is that Python is a fairly small language with a well-defined spec.

      Wait, I thought Python 3 is coming soon and it's not very compatible with Python 2.5, to the extent that people are talking about having to maintain two branches for python apps.

      This would seem to be the least desirable aspect of Python.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    39. Re:Perl in decline, at least here by Coryoth · · Score: 1

      And I look forward to an actual announced major final release (or has Perl6 been out as a final release all this time and non one noticed?); I will actually take another look at perl once Perl6 is a solid option on the table. In the meantime, it still seems to be "on the horizon" as far as I can see.

    40. Re:Perl in decline, at least here by chromatic · · Score: 1

      In the meantime, it still seems to be "on the horizon" as far as I can see.

      So is Ruby 2, Jython 2.6, Python 3, PHP 6, GHC 6.10, C# 3, Java 7....

    41. Re:Perl in decline, at least here by MoxFulder · · Score: 1

      Now that's a ridiculous comparison between Perl 6 and Python 3.0.

      Python 3.0 has gone from "a bunch of proposals" to an actual, feature-complete beta in recent months. And most reasonable observers actually believe that there will be a final, shiny 3.0 release this month. Moreover, Python 2.6-final is out and it has most of the 3.0 features backported to it, including the backwards-incompatible ones (optionally turned on and off).

      Perl 6 seems to have languished somewhere between "idea" and "implementation" from around 2000 to 2005. Now it turns out that (SURPRISE!), "there's more than one way to do it" with Perl 6. There's a Haskell-based implementation and a Parrot-based implementation, and a few others that aren't as mature too, it seems. I've had a very hard time assessing how mature these are and how much continuity they will find in the final release... since they aren't developed by a core group of developers with a track record.

      Python 3.0 is credibly just around the corner, coming from the same core team that brought us all the previous releases. Perl 6 is still stuck in the vague surreal mess of possibility and intrigue that makes Perl simultaneously so much fun and so frustrating.

    42. Re:Perl in decline, at least here by chromatic · · Score: 1

      Now that's a ridiculous comparison between Perl 6 and Python 3.0.

      Why? Neither one is out in a "final release", as the grandparent post suggested. If that's what it takes to make a language worth looking at for the grandparent poster, the comparison is apt.

    43. Re:Perl in decline, at least here by Eravnrekaree · · Score: 1

      I would certainly second this, its far easier and just as good to use the language on its own VM and just use RPC or write an interface to external libraries via XS. Trying to reimplement the whole language is way overkill if you just want to access some foreign libraries from perl.

    44. Re:Perl in decline, at least here by Coryoth · · Score: 1

      So is Ruby 2, Jython 2.6, Python 3, PHP 6, GHC 6.10, C# 3, Java 7....

      Yes, that they are; and similarly I'm not expecting to use or rely on any of those until they actually make a release either. They remain on the horizon, though for some I have high confidence that said horizon is short: they haven't been "coming reall soon now!" as long as Perl6, and have stayed largely on schedule.

    45. Re:Perl in decline, at least here by Anonymous Coward · · Score: 0

      What's ill defined about this?
      python reference
      It includes, as you can see, a full grammar specification and data model.

    46. Re:Perl in decline, at least here by chromatic · · Score: 1

      Guido's been talking about Python 3000 for at least five years now; I talked to him about it in 2003, and he'd been talking about it for a while before that. That's not much younger than Perl 6.

    47. Re:Perl in decline, at least here by Coryoth · · Score: 1

      Good to know, but I guess that means he's done a much better job of marketing and managing expectations. Python 3000 didn't start showing up on the radar for me as something worth worrying about until a couple of years ago; I've known about, and paid attention to Perl6 for longer than that. In the end it doesn't really matter, because you know more about perl than I could even dream of, and are deeply involved so I doubt you really care what I think.

    48. Re:Perl in decline, at least here by roju · · Score: 1

      The old mainline Bittorrent client was Python.

    49. Re:Perl in decline, at least here by ggvaidya · · Score: 1

      Nicely said :-). I wish I had modpoints.

    50. Re:Perl in decline, at least here by shutdown+-p+now · · Score: 1

      I think it's more that IronPython is basically a vanity/research project, akin to JPython/Jython a few years ago; very few people use it in practice, since the standard Python interpreter runs just fine on Windows and lets you avoid significant compatibility problems (and use all the packages that the rest of the Python world uses, seamlessly).

      Microsoft is now pushing for Python as a de-facto standard scripting language for .NET (with Ruby as an option) - there's a reason why the DLR namespaces are "Microsoft.Scripting.*". They're also recommending it as a language of choice for Silverlight projects (which is probably part of the same strategy). Research/vanity project? Hardly...

      These "other language on my interpreter" projects _seem_ really cool, but in practice it's usually simpler and faster (both development and performance wise) to use the languages in their own interpreters and use some IPC/RPC/web services/etc to communicate with .NET (or Java, or whatever) rather than trying to shoehorn your language onto the CLI or JVM.

      Have you actually seen performance comparisons for e.g. CPython vs IronPython, or, better yet, Ruby vs JRuby?

      The problem is that existing interpreters do have major performance/scalability problems (GIL, threading roughly bolted-on, etc).

    51. Re:Perl in decline, at least here by shutdown+-p+now · · Score: 1

      Ironically, C# 3 has been out for a year already.

    52. Re:Perl in decline, at least here by ozphx · · Score: 1

      Haha agreed ;)

      The only thing I think it should have, which it doesn't, is generic types inheriting from a type parameter "Foo(of T) Inherits T". Or maybe thats a C# limitation, not sure. Might go check it out actually.

      --
      3laws: No freebies, no backsies, GTFO.
    53. Re:Perl in decline, at least here by Ed+Avis · · Score: 1

      To me as a Perl programmer, the most attractive aspect of Python is the well-managed way they evolve the language, with __future__ and deprecation warnings, and a clear choice of whether to upgrade to 3.0 or stick with 2.6, both of which are maintained. Contrast that with the haphazard approach taken in perl 5, where things can be vaguely 'deprecated' for years but never removed, and any major language changes are constipated waiting for perl 6 any decade now. (Interestingly, one original reason for $ prefixes on variable names in Perl was that it allows new keywords to be added to the language without breaking existing programs, but in perl 5.10 the developers didn't want to add any new keywords such as 'say' unless you add a 'use 5.010' boilerplate line to your program.)

      --
      -- Ed Avis ed@membled.com
    54. Re:Perl in decline, at least here by Perky_Goth · · Score: 1

      Python 3000 at the time was just a bunch of features that would be nice to have, but would imply major changes and hence weren't just in the the next version. It was only when ideas stabilized that the Python 3.0 project materialized, so there was no 10 years of uncertainty on things are going.
      You aren't influencing anyone to take a serious look at Perl with that comment.

    55. Re:Perl in decline, at least here by pthisis · · Score: 1

      Microsoft is now pushing for Python as a de-facto standard scripting language for .NET (with Ruby as an option) - there's a reason why the DLR namespaces are "Microsoft.Scripting.*". They're also recommending it as a language of choice for Silverlight projects (which is probably part of the same strategy). Research/vanity project? Hardly...

      Huh? That's exactly what "vanity project" means--Microsoft is pushing it to be able to say "hey, look, it runs on .NET". That's their own platform. It's a vanity check-box point.

      My last 3 jobs (including the current one) have all been basically full-time Python development. I go to PyCon every year. While there's occasional buzz about things like Jython/JPython and IronPython, 95% of the Python developers I talk to have never considered them for serious use. They're cool to point to and say "hey, we _could_ work in the same VM with X and Y". But nobody ever does; it's easier to make web services calls, synchronize in the database, or do all the other standard stuff that lets you use the full libraries of your own language (just as other languages have done for decades).


      Have you actually seen performance comparisons for e.g. CPython vs IronPython, or, better yet, Ruby vs JRuby?

      Yes, and CPython wins vs. IronPython in a landslide for every real-world app I've tried.

      IronPython wins a few number-crunching benchmarks that have little real world applicability because
      1) they never test against numpy, which any serious numeric user of python uses
      2) they ignore the massive dominance of CPython in I/O (especially in reading/writing to sockets), when for the majority of web apps I/O takes the lion's share of compute resources; and
      3) they ignore the existence of psyco

      If you're going to do a few tightly-looped numerics without talking to the network or database, IronPython will stomp the floor with raw CPython; once you add in reading from the web/database and writing out, CPython gets the lead back handily for everything I've worked on. And in real life when you throw "import psyco" and "psyco.profile()" at the top of your handful of computationally expensive files (or, if they're math-intensive, use numpy) then traditional python apps tend to beat IronPython even without factoring in the much, much faster I/O.

      That said, I'm sure that there are some apps where IronPython is the fastest choice. For those, by all means use it. In general, though, they tend to tout a few microbenchmarks taken out of any context far, far too much. It's the same cycle we went through with JPython/Jython, which published a few faster benchmarks and yelled loudly about them while real-world developers kept using CPython in large part because it was much faster for real-world apps.

      The problem is that existing interpreters do have major performance/scalability problems (GIL, threading roughly bolted-on, etc).

      You really don't want to bring up parallel processing if you're trying to make a case for the CLI or JVM over the standard python VM. That is a horrible, horrible weakness of both platforms.

      Unlike C# or Java, Python has strong support for multiprocessing. It's only gotten better with the multiprocessing module in 2.5 and later.

      Threads are pretty dangerous in that they throw out memory protection between each other. They're valuable in some limited cases (e.g. a limited humber of threads based on the number of cores available to handle network connections available, when you need to throw protected memory out the window), but the Python interpreter doesn't hold the GIL on I/O or most of the other areas where multithreading makes sense. Opponents like to yell "GIL! GIL!", but in reality there's no global lock held when, say, you read from a network socket, run a regex compare, talk to the database, or do any of the other common things where threads need to contend.

      That's really a side point, though, since even if the GIL _did_ block all of those thin

      --
      rage, rage against the dying of the light
  12. Re:Python is available by Anonymous Coward · · Score: 1, Insightful

    It turns out that code written is Perl is actually unmaintainable garbage. Sure, it works. But it really is a write-only language. Most businesses (which is what MS is catering to) care about structured code that can be maintained, not just stuff you banged out to get the job done.

    Now a Perl lover will jump in and say that you can write Perl so that it's maintainable, and you can write Python or Ruby so that it's unreadable. It's true, but both are hard to do. Businesses are looking to idiot-proof as much as possible, since most of their developers are probably idiots. Hence the love for VB and Java. I can't imagine anyone commissioning a software project to seriously consider Perl, especially on windows.

  13. Re:Incredible moment by Anonymous Coward · · Score: 0

    Epic fail there, buddy.

  14. I don't know by Chrisq · · Score: 1, Funny

    Where's the "IronPerl" Project?

    I don't know, but have you tried asking Captain Jack Sparrow?

    1. Re:I don't know by oPless · · Score: 1

      I wash my hands of this weirdness!

    2. Re:I don't know by Anonymous Coward · · Score: 0

      Davey Jones dont give up dat wot he took.

  15. Perl6 by Anonymous Coward · · Score: 4, Informative

    A main reason is that Perl 6, which has been in development for nearly as long as .NET, was supposed to be a VM itself. In effect, it was a competitor to .NET.

    Way back when IronPython and IronRuby were starting, Perl 6 looked like it was Nearly Here, so no one thought porting Perl 5 to run on .NET was worth it. Since Perl 6 still hasn't materialized, guess it was a bad choice...

    1. Re:Perl6 by Anonymous Coward · · Score: 0

      Perl 6 is 'nearly done' for ages now.

      For some reason I can't quite grasp there don't seem to be many developers that can and want to help with the project. Or it is just too difficult, perhaps.

      I'm not smart enough to help them, but surely there must be some developers that want help scratch this itch?

    2. Re:Perl6 by sigzero · · Score: 0

      That is totally wrong.

    3. Re:Perl6 by mAriuZ · · Score: 1

      perl6 is done

      you can test it by compiling parrotvm with perl6 support

      make perl6

      http://www.perlfoundation.org/perl6/index.cgi?rakudo

      and the perl6 binary is there and you can start porting perl5 to perl6 scripts

      or you can test as example an wiki engine written in pure per6
      http://viklund.pp.se/november.pdf

      --
      developer http://flamerobin.org
    4. Re:Perl6 by ishobo · · Score: 1

      perl6 is done

      Done does not mean a snapshot of the the development branch that can be tested. Eight years later and it still has not been released as 6.0. The world waiting for a release candidate.

       

      --
      Slashdot - The great and glorious cluster fuck of Internet wisdom.
  16. Demographics by sydneyfong · · Score: 4, Insightful

    I guess it's because most of the perl guys were Unix guys?

    At any rate perl doesn't really fit into the .NET "OOP" paradigm. It has objects, but with such flexibility that every time I wanted to create an object in perl I have to look up the bless() function. Most people use it to write small, fast scripts (Activeperl on Windows takes care of that) and there aren't many medium to large scale projects (which .NET arguably does well) that use perl.

    --
    Don't quote me on this.
    1. Re:Demographics by Anonymous Coward · · Score: 5, Insightful

      Why does everyone keep repeating this? Just because you don't do it doesn't mean nobody does. There are tons of large projects in perl. You're using one right now.

    2. Re:Demographics by Anonymous Coward · · Score: 0

      At my work place there is plenty of Perl code still. However I am replacing most of it over time with Ruby because of the cleaner approach to object oriented programming that Ruby brings. If it wasn't Ruby it would be Python. OOP is just a bad hack in Perl and you end up with really ugly code that isn't very maintainable IMO when writing large Perl projects.

    3. Re:Demographics by EraserMouseMan · · Score: 2, Insightful

      Large user base does not equate to a large project. We all love Slashdot, but Slashdot doesn't qualify as a large mission critical system.

    4. Re:Demographics by gpuk · · Score: 1

      Most of BBC online is powered by perl - I'd say that's fairly large scale...

    5. Re:Demographics by geminidomino · · Score: 1

      You're using one right now.

      Err.. that's not exactly the connection you want to be making if you're trying to stick up for Perl.

    6. Re:Demographics by FonkiE · · Score: 1

      Please use Moose then... http://www.iinteractive.com/moose/

      Do you really think Perl did not evolve over the years ... *sigh*

    7. Re:Demographics by gbjbaanb · · Score: 1

      maybe the application its put to doesn't equate to 'mission critical', but I find it has more scalability than many other systems, is more responsive under extreme load, and has almost zero downtime. I don't know the last time /. wasn't available when I visited the site.

      So although its not a mission critical app, that doesn't mean the underlying technology isn't suitable. Far from it.

    8. Re:Demographics by Abcd1234 · · Score: 1

      OOP is just a bad hack in Perl

      Why? Last I checked, the only difference between Perl's OOP and any other language is that it has a far more flexible implementation. Aside from that, it's no different:

      sub new
      {
          my $class = shift;
          my $instance = {};

          bless $instance, $class;

          return $instance;
      }

      sub method
      {
          my $self = shift;

          __do_stuff_here__
      }

      --

      my $obj = new My::Object();

      $obj->method();

      Now what's so "non-OOP" about that?

      and you end up with really ugly code that isn't very maintainable

      Why? I've written plenty of OOP Perl, and it's no more or less maintainable than any other language. Well, assuming you aren't a moron, anyway.

    9. Re:Demographics by EraserMouseMan · · Score: 1

      Very true. But these days, there are better ways to skin the cat. "Better" in the sense that some of newer battle-hardened OO languages (Java & .Net) are a more elegant way to build sturdy & scalable apps.

    10. Re:Demographics by Anonymous Coward · · Score: 0

      Slashdot is a "large project" in terms of code?

      LOL. Back to VB and Logo with you.

    11. Re:Demographics by Anonymous Coward · · Score: 0

      Yes Slashdot is great with that.
      Yet Scalability / Responsiveness / Downtime have WHAT exactly to do with a "large project"?

      It's a tiny project with a gazillion users. You could probably code it onto a frigging FPGA and run 46 billion users on a single box if you were really cool.

    12. Re:Demographics by mr_mischief · · Score: 1

      Look up "Moose". It's a module for objects in Perl 5 that pretty closely match the default implementation of objects in Perl 6.

      Larry has promised that Perl 6 will still have most of the flexibility of Perl 5, but the design is going to include good defaults throughout the language rather than forcing you to always roll your own.

      If you have a real hard-on for OOP, then you will probably love Perl 6 some day when it's out. Even the parser is just polymorphic methods, and therefore you can extend it and override parts of it at will. There's even enough thought behind the mutability and overriding of the parser that there are no reserved words and no numeric precedence levels. If you want a certain level of precedence, you say which operator you want the same precedence as, or that you want higher or lower precedence than operator X. You can whole new precedence level in between multiplication and addition, if you really need it, and all in one statement.

    13. Re:Demographics by dolmen.fr · · Score: 1

      and you end up with really ugly code that isn't very maintainable

      Why? I've written plenty of OOP Perl, and it's no more or less maintainable than any other language. Well, assuming you aren't a moron, anyway.

      The problem with the Perl 5 implementation of OOP is that the programmers sees all the OOP plumbing (the fact that an object is (usually) a hash).
      However this is fixed by Moose.pm (a Perl 5 module) and Perl 6.

      You can follow the development of Rakudo, the implementation of Perl 6 on the Parrot virtual machine, on www.rakudo.org. Not yet ready for general use, but already good enough to discover the language.

    14. Re:Demographics by njahnke · · Score: 1

      You're using one right now.

      Err.. that's not exactly the connection you want to be making if you're trying to stick up for Perl.

      Why, because Slashcode sucks? I disagree, and anyway, I don't think that's why gp's point is moot. I think it's because I can't imagine a situation when someone would want to run Slashcode under Windows.

    15. Re:Demographics by Anonymous Coward · · Score: 0

      This is not a large project. A moderately busy website perhaps, but a very simple app. And its very ugly and difficult to maintain, largely do to the choice of language. As much as you may love it, perl is dead. Get over it. Perl used to be a language everyone knew and used, except the die hard unix fans. Now there's only a tiny handful of perl fanboys who still use it.

    16. Re:Demographics by gbjbaanb · · Score: 1

      I'm not sure that's true in the real world. I've never seen a "enterprise class" server-side Java app that didn't scale except with lots and lots of servers. It could be due to poor implementation or OO-misuse from the kind of companies that build those things (think big consultancies and application providers), but I think its more due to the architecture of the language/platform.

      It doesn't matter so much anymore though, servers are super fast and expandable themselves, so the overhead of a scripting language is less significant nowadays, so if you want a server app, you might as well take advantage of the productivity gains from a script language and basically write apps like the CGI architectures we did in the 90s :-)

    17. Re:Demographics by dedazo · · Score: 1

      that didn't scale except with lots and lots of servers

      Because it's not like Slashdot uses just three of them, right?

      Scalability is the art of recognizing when you've hit the scale up wall and need to get on with scaling out. In most cases, if you knew what you were doing to begin with, it matters little what language or platform you are using, because you start moving into the realm of Memcached, transparent reverse proxies, federated or master/slave databases, etc, etc.

      Perl doesn't do any of that any better than Java or C#.

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    18. Re:Demographics by Anonymous Coward · · Score: 0

      I use Perl for all of my large projects.

      The Human Genome Project uses Perl exclusively.

      By *not* having a slew of hand-holding tools that let total nincompoops code (cough cough Java cough .Net cough), Perl has maintained a steeper learning curve.

      The dummies get lost somewhere near the middle and leave, complaining that Perl is "hard" and "unmaintainable."

      The geniuses stick around and, well, kick ass!

    19. Re:Demographics by Eponymous+Bastard · · Score: 1

      Large user base does not equate to a large project. We all love Slashdot, but Slashdot doesn't qualify as a large mission critical system.

      Depends on your mission. I bet slashcode is mission-critical to Slashdot and their corporate overlords.

      As for large, maybe not. I bet most of the interesting work in slash is in the database side.

    20. Re:Demographics by styrotech · · Score: 1

      I've never seen a "enterprise class" server-side Java app that didn't scale except with lots and lots of servers.

      Isn't that kinda the definition of "scale"? Maybe by "scale" you really meant "perform well"? In which case I'd agree with you.

      Scaling well doesn't necessarily mean something performs well, rather it means performance keeps increasing as you add servers rather than leveling off.

  17. Windows Administration language by bob8766 · · Score: 5, Insightful

    I suspect people are moving to Powershell, since it's a good shell scripting language, and it's easy to load .NET assemblies among other things. I was able to learn enough powershell to do some rather useful things in a few days, and that's without having a strong shell scripting background.

    1. Re:Windows Administration language by Anonymous Coward · · Score: 0

      I would definitely agree that most people are moving to PowerShell. It is consistent, easy to learn/use and very powerful.

      I think the biggest reason though is that everything that is coming out from Microsoft going forward has PowerShell commands to do things you can't even do from the GUI. Exchange is a good example. Sometimes the only way to do certain things are through PowerShell.

      It is also now useful for managing VMWare ESX machines or Microsoft's Hyper-V virtual machines and a multitude of other third party plugins.

      So if you manage stuff from Windows, this is pretty much the way to go.

    2. Re:Windows Administration language by Anonymous Coward · · Score: 0

      I installed Powershell. I ran it. My non-MS firewall instantly warned me that it was trying to call home. End of experiment. No, thank you.

    3. Re:Windows Administration language by Anonymous Coward · · Score: 0

      I suspect the Spanish inquisition!! Suspect??? Don't listen to anyone who uses "I suspect.." or "to be honest" to convince you of something

  18. There won't be any by Anonymous Coward · · Score: 0

    So far all attempts to re-create perl 5 were unsuccessful.

    Basically Perl has so many idiosyncrasies that it's impossible to rewrite it, and it has no specification. The large test suite would help, but it's still a crazy task.

    Perl 6 should change that, because it's essentially a language specification (plus a test suite as well). But as you might recall, Perl 6 is not yet ready. Sorry dude. We're working on it.

  19. I don't think there's anything free by Anonymous Coward · · Score: 0

    But ActiveState (who make one of the Win32 perl distros) has a commercial package "Perl Dev Kit" that has .NET integration -- see their feature list. I haven't tried it out myself, so I can't comment on how well it works.

    If you need to just use .NET components from Perl, you could always use the expose the .NET interfaces over COM and then use Win32::OLE to access them.

    Part of the problem is that Perl is not a specified language; the specification is the Perl interpreter itself (see the "Design" section from the wikipedia entry)

  20. Search harder by aauu · · Score: 4, Informative
    http://www.activestate.com/Products/perl_dev_kit/feature_list.mhtml is the Perl Dev Kit. This will do what you want with .net. Not free, but if you want truly free, then contribute your own module.

    Perl is an antique language. You should look at a modern scripting language. Powershell is much more powerful as it pipes .net objects instead of text.

    --
    When I was young, I had to rub sticks together to compute.
    1. Re:Search harder by Onymous+Coward · · Score: 1

      C is an antique language...

      Unix is an antique OS...

    2. Re:Search harder by jd · · Score: 1

      The 80x86 is an antique architecture. The sun is an antique fusion reactor. Hydrogen is an antique element. Hey, this is a cool game!

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  21. Try asking "PerlMonks" by ggvaidya · · Score: 4, Informative

    PerlMonks is the right place to ask this question, IMO. You'll be posing the question to a lot of very experienced Perl users who might have similar experiences to yours, or good advice on what to do next. The PM community is friendly and very helpful as well.

  22. ActivePerl by zlogic · · Score: 1

    When .NET 1.0 was released, ActiveState released Visual Perl, the product is dead since 2005, so probably nobody wanted it.

    1. Re:ActivePerl by Anonymous Coward · · Score: 0

      When .NET 1.0 was released, ActiveState released Visual Perl, the product is dead since 2005, so probably nobody wanted it.

      Visual Perl was their Visual Studio integration for Perl. It allowed you to create VS.NET projects that were Perl projects and interactively debug them using the VS debugger. It's different from the .NET integration, which is in the Perl Dev Kit.

  23. Don't fight it - Perl is here to stay! by cynicsreport · · Score: 4, Insightful

    I know... Python and Ruby and Java are the hot languages, and you think Perl is going the way of COBOL. Well f*ck it - I like perl. And, there are some great reasons to use it:
    1. I already know it. I learned it before Ruby was "cool".
    2. It's already installed on every Linux and BSD machine. Yes, that means I can run my script on your brand new Ubuntu desktop, or your 1998 BSD server. And it'll work.
    3. Great Regex support (am not saying your language de-jour doesn't, just that perl does)
    4. CPAN is one of the most extensive software libraries known to mankind.
    5. It really doesn't matter if you use it or not - perl is here for the long haul. Too many linux utilities depend on it. My linux box doesn't have ruby or python installed, and I haven't had any problems. Try deleting perl from yours!

    So, if you are like me, you already know Perl. Maybe you don't use windows at home, but you have to use it at work. I suggest you download Strawberry Perl (or go all-out with cygwin).
    Unfortunately, there does not seem to be great support for perl with .NET. So, I guess we have to stick with the Win32 CPAN modules you already know about.
    But maybe, just maybe, someone will come along one day... and viola! Perl.NET!

    Until that day comes, I will continue to use perl anyway, and all of you Haters out there can go $@_{s/;//g}!

    --
    - Demosthenes
    cynicsreport.com
    1. Re:Don't fight it - Perl is here to stay! by neuromanc3r · · Score: 5, Interesting

      My linux box doesn't have ruby or python installed, and I haven't had any problems. Try deleting perl from yours!

      What distribution are you running? Every distribution I've used had Python installed by default for years (and would break terribly if you tried to remove it).

    2. Re:Don't fight it - Perl is here to stay! by MostAwesomeDude · · Score: 3, Insightful

      Unfortunately, bare-bones Debian lacks Python, although hopefully recent popularity-contest results will make it more likely to be part of a default install.

      --
      ~ C.
    3. Re:Don't fight it - Perl is here to stay! by Catharsis · · Score: 5, Insightful

      So your arguments for why Perl is great to use are:

      1) I know it.
      2) I have it.
      3) (irrelevant)
      4) YAY CPAN
      5) Not a reason to use it?

      So, uh, yeah, CPAN is awesome, but "I know it and it's installed." aren't really strong advocacy arguments.

      No offense, but this isn't exactly Insightful, particularly given that (aside from good old CPAN) there's really nothing in there that isn't true for Python on almost all systems people will encounter these days.

      --

      "The wise man proportions his belief to the evidence." -- David Hume

    4. Re:Don't fight it - Perl is here to stay! by Zadaz · · Score: 1

      Fine.

      So how does this little rant answer the question?

    5. Re:Don't fight it - Perl is here to stay! by Anonymous Coward · · Score: 0

      On the other hand, RedHat 5.2 had startup scripts written in Python, because I remember having to debug the bloody things.

    6. Re:Don't fight it - Perl is here to stay! by renoX · · Score: 1

      >And, there are some great reasons to use it:
      >1. I already know it. I learned it before Ruby was "cool".

      I know Perl also, and for me that's a reason *not to* use Perl.
      The more I used Perl, the more convinced I was that this is a poor language because
      a) beginners create unmaintainable code, but that's not the big issue here as it's the same in any language.
      b) experienced programmers create unmaintainable code(!) as the TMTOWTDI philosophy of Perl is directly opposed to maintainability..

      I haven't had the luxury of truly using Ruby yet, but learning this language didn't trigger my feeling "what a mess" as learning Perl did, so it should be better..

    7. Re:Don't fight it - Perl is here to stay! by RegularFry · · Score: 4, Interesting

      Oh and lets not forget how "cool" it'd be if the runtime of every pet scripting language was embedded directly in common web browsers. Yes Cletus, that sure would be 'great'!

      My word. You've just described Silverlight.

      --
      Reality is the ultimate Rorschach.
    8. Re:Don't fight it - Perl is here to stay! by Anonymous Coward · · Score: 0

      slackware 11 and many older systems don't have python either.

      and honestly ive removed python from debian lenny, fedora core,suse and slackware without breaking the system. SO it isn't hard to do.

    9. Re:Don't fight it - Perl is here to stay! by Lumpy · · Score: 2, Funny

      Yes and no. the biggest problem with perl is that many large apps require 90,000 obscure modules to be installed. Perl should have a automatic CPAN downloader that allows you to run your app and it goes and graps all those obscure modules and installs them instead of forcing me to sit there for 20 minutes typing....

      perl -mCPAN -e

      i foobar
      i buttmunch
      i nosescraper

      DAMMIT

      i noseScraper ...

      This could easily be done, as well as the dev's of the app could write a nice installer that does that as well. but it's a big put-off. I used to cringe when installing a webapp on redhat systems that the module was not available in the redhat repositories, install from Cpan a module and find it updates a redhat perl module that breaks something else....

      --
      Do not look at laser with remaining good eye.
    10. Re:Don't fight it - Perl is here to stay! by adamkennedy · · Score: 2, Informative

      So what you do is write yourself a Makefile.PL that lists all the dependencies, just like those fancy CPAN modules.

      Then you run this...

      > cpan .

      And the CPAN client will just treat your applications dependencies like a CPAN distribution and run off and install all the dependencies for it in one go.

    11. Re:Don't fight it - Perl is here to stay! by EraserMouseMan · · Score: 1

      Cobol is here to stay too. Look at all the vast piles of code written for the medical & insurance companies.

      Therefore your next project should be written in Cobol. Because it isn't going anywhere. . .

    12. Re:Don't fight it - Perl is here to stay! by sqldr · · Score: 2, Insightful

      If it was worth writing a new build tool, it was worth writing it in C

      Why would you write something which is basically a glorified file processor in C? C wouldn't exactly be my first choice for something which spends most of its time pattern matching and goal-hunting, and it's hardly 'make' using up the cpu during a massive build. That would be ld thrashing the disks.

      Make has pretty ugly syntax, and if your editor isn't set up right, you'd better watch out for those trailing tabs/spaces. I stopped writing makefiles by hand a long time ago. So what next? autoconf? Any language which uses 'dnl' as a comment specifier then tries to auto-generate 5000 line long shell scripts is something I tend to run screaming from

      I tend to use scons and qmake these days, because both have really easy and versatile syntax, which means I get to spend more time coding and less time trying to figure out how to get the thing to build. I played with cmake for a while as well. It depends on the project I'm working on, but either way I don't spend my life trying to use the same hammer to crack every nut.

      --
      I wrote my first program at the age of six, and I still can't work out how this website works.
    13. Re:Don't fight it - Perl is here to stay! by Anonymous Coward · · Score: 0

      Arch Linux. Slackware. Solaris. FreeBSD. Need I continue?

      You cleave unto trendy distros. Your choice. Never forget: there's more than one way to do it

    14. Re:Don't fight it - Perl is here to stay! by Ritchie70 · · Score: 1

      You're right. C isn't the ideal language for a text or file processing program.

      But at least you get a real executable, which was the AC parent's real objection.

      A compiled executable typically will get you better performance (less an issue of late) and will lose you a dependency on having a probably big, probably complicated interpreter and all of its shiny libraries installed.

      I occasionally hit some open source or freeware thing for Windows written in Perl or Python when I'm looking for the tool to scratch an itch. I always just pass. It isn't worth the pain.

      --
      The preferred solution is to not have a problem.
    15. Re:Don't fight it - Perl is here to stay! by melonman · · Score: 1

      Even if CPAN was the only argument for using perl (which it isn't), it would still be one hell of an argument. So much of the argument for python seems to be boil down to "anyone trying to solve a problem that anyone has ever solved before isn't a real meat-eating programmer, and so doesn't count." But most of what most programmers do looks a lot like stuff that has been done. Perl's way to handle that via CPAN is so far ahead of any other scripting language that it's hard to even attempt a comparison.

      The other day I needed an embedded RSS client for a db-powered website. I wrote it in 20 lines of perl using LWP, DBI (streets ahead of anything I've seen for PHP in terms of abstraction) XML::LibXML and XML:Writer. I could have used one of the standard RSS libraries, but since I had those packages installed and only needed to read one specific feed it was easier to unpick the XML by hand. Actually, I didn't use DBI directly, I just picked up the DB package I had created for the website using DBI.

      The previous week I needed to send email based on XML input. I installed one of the email-sending packages, and the solution was then extremely concise. In my experience, there are packages for just about every application. That means I spend my time writing application code, not being the 4,357,198th person to implement a particular protocol or form of encryption, and that I don't then have to maintain my own implementation of basic technology.

      I have looked at Python several times. The last time was when I wanted to write a standalone application using XML and XSLT via sockets. But it looked to me like I was going to end up reinventing a lot of wheels, so I went with Tcl instead.

      --
      Virtually serving coffee
    16. Re:Don't fight it - Perl is here to stay! by RAMMS+EIN · · Score: 1

      ``Where does the stupidity stop? When every single thing on the system has been rewritten in someones pet scripting language du jour? When every program requires its own interpreter?''

      Because the perfect programming language isn't there yet. Therefore, people continue to create new ones, and others continue to find them useful.

      As for your complaint about interpreter creep: I can see why that doesn't make you happy. I guess the reason many languages are interpreted rather than compiled to native executables is that it's easier to write interpreters that run on a plethora of platforms than compilers that target a plethora of platforms (something which I am trying to remedy with TurboVM, Alchemist, and an upcoming low-level platform abstraction language, but this is all still under development).

      On the other hand, the interpreter is just a bit of extra code you install that provides functionality a program builds on. In many ways, interpreters are like libraries. They could have shipped the interpreter with the executable, and then you wouldn't have noticed it as a separate piece to install, but that would have prevented reuse...and reuse is a Good Thing. Speaking of which, I believe C isn't particularly good for developing reusable components, so if a large chuck of your software is written in C, you might actually have more duplicated functionality on your system than if much of your software is written in a bunch of different higher level languages.

      --
      Please correct me if I got my facts wrong.
    17. Re:Don't fight it - Perl is here to stay! by Colonel+Fahlt · · Score: 1

      Well, technically it isn't installed by default on FreeBSD or NetBSD (and possibly DragonFly BSD). FreeBSD stopped shipping it in base some six years ago (http://bsd.slashdot.org/article.pl?sid=02/05/14/0015234), and I'm not sure NetBSD ever included it in base. OpenBSD is the only BSD I know of that continues to include it in base; they have to, their package install system depends on it. (On the other hand, in SVR4-land, HP-UX started including Perl by default in 2001, it seems.)

    18. Re:Don't fight it - Perl is here to stay! by marcosdumay · · Score: 2, Interesting

      As far as I know, popularity-contest doesn't say what goes on bare-bones, you'd need an essential piece of software that depends on Python for including it there. Popularity-contest says what goes on each CD, and I think Python is already at the first one.

      Also, really, why do you want to include Python at bare-bones? If you like cluter, use the Desktop install.

    19. Re:Don't fight it - Perl is here to stay! by gbjbaanb · · Score: 1

      I think of 1 application where C is better than Perl for file parsing type roles, strangely enough. That's for parsing web server log files and generating pretty stats pages.

      Most people have used Webalizer, written in C, but move to AWstats, written in Perl. AWstats is prettier and has been updated more often - probably because its written in perl. However, Webalizer is a lot faster, so much so that the big hosting companies don't use the perl generators, they use ones written in C.

      So, I think Perl has its place parsing files, but as usual, C wins if you spend the programmer cost (ie. take the time) to write your routines in it. I guess this should be best practise in the computer industry - write your performance critical bits in C, and the less-intensive parts in a scripting language.

    20. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      Even if CPAN was the only argument for using perl (which it isn't), it would still be one hell of an argument.

      Not when the opposition has an equivalent tool/repository, at which point it's just par for the course. See PyPi and EasyInstall/Setuptools.

      (As for good high-level Python XML toolkits, I'm personally fond of lxml, but there are plenty 'round; if you couldn't find one, it's because you didn't know where to look).

    21. Re:Don't fight it - Perl is here to stay! by Abcd1234 · · Score: 1

      Not when the opposition has an equivalent tool/repository/i>

      Ha ha ha ha! Oh god, that's good. No, seriously, that's hilarious. There are 4890 packages on PyPi (granted, a non-trivial number). On the other hand, there are 14 *thousand* modules on CPAN.

      As such, I'm not sure I'd call PyPi "equivalent".

    22. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      The right question is not "how many packages are on PyPi" -- that's like measuring SourceForge only by the number of projects hosted there, and we both have an idea of the percentage of crap.

      The right question to ask is this: Can I find what I need on PyPi?

      In real-world situations, the answer is overwhelmingly yes.

    23. Re:Don't fight it - Perl is here to stay! by belg4mit · · Score: 1

      A) Never use a package manager for perl modules
      B) Try CPANPLUS

      --
      Were that I say, pancakes?
    24. Re:Don't fight it - Perl is here to stay! by Abcd1234 · · Score: 2, Insightful

      Well, until I see proof otherwise, I see no reason why the percentage of crapware on CPAN is any different than the percentage of crapware on PyPi. And heck, even if 50% of CPAN was crapware and the entirety of PyPi was pure gold, CPAN would *still* win out in terms of number of quality packages available.

      All that said, you are right, much of it comes down to, is what I need there? Problem is, that answer depends based on the problem domain. And I'm willing to bet that, based purely on the sheer number of packages available in CPAN, it's more likely to cover obscure topics, in addition to the more popular subjects that both CPAN and PyPi are likely to cover adequately.

    25. Re:Don't fight it - Perl is here to stay! by skeeto · · Score: 2, Interesting

      As a Debian user who always starts from the bare bones install and apt-gets my way to ideal, I agree with you that the base install shouldn't include Python. The base install is an example of something we want to be tight and small.

      However, not everything worth writing should be written in C.

      In general, writing C is expensive, compared to interpreted languages. More bugs need to be ironed out. There are portability issues, so moving to each new architecture or platform takes more and more effort. The program is longer and more complicated. And, worst of all, you are repeating a lot of work other people have already done. In the end, your C program is going to be tighter and faster than the interpreted one, but at what cost? And what have you gained? The user will not be able to notice the difference between 10ms and 100ms run times. Most desktop software spends almost all of its time waiting on I/O (this includes user input), and there is pretty much nothing that can be done (software-wise) to make I/O faster. Meatspace is too slow.

      The interpreted version is usually fast enough and it's easier to write and maintain. To use your example, writing a build system in C is premature optimization, and the general rule for that is Don't Do It. Programs have bottlenecks, which cannot be found until you are done. If you really need speed, use a good profiler to find those bottlenecks and make them faster, which, in the case of interpreted languages, you then write those small parts in C using whatever C interface is provided.

      To quote Paul Graham,

      Everyone knows it's a mistake to write your whole program by hand in machine language. What's less often understood is that there is a more general principle here: that if you have a choice of several languages, it is, all other things being equal, a mistake to program in anything but the most powerful one.

      Write in C and assembly when you really need the raw power, such as when you are writing some kind of data compressor or high-precision scientific simulation. For everything else, use a more powerful, higher level language -- especially when doing lots of text processing. You will be done faster and with fewer bugs and security holes.

      The reason we have so many interpreters is because no one can agree on which language is the most powerful.

    26. Re:Don't fight it - Perl is here to stay! by MostAwesomeDude · · Score: 1

      Since you're the only person with the balls to reply non-AC, you get my reply. :3

      I write C. I've written loads of C. C is fine for drivers and low-level stuff. It's great for old stuff. But I can't bring myself to start any new code in anything lower than C++, and that's only for games.

      Nearly all my new code is in Python. I love the language. It's simple, readable, and ungodly powerful once one starts to really dig in and understand it. I learned Perl once, and I couldn't stand using it for anything besides text manipulation; it's just not suited for it. Big object-oriented stuff, in particular, is just kinda painful.

      Also, you're right about popularity-contest. Clearly, I was not very awake last night. I meant to mention the first Debian CD, not the minimal package install set.

      --
      ~ C.
    27. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      Well, until I see proof otherwise, I see no reason why the percentage of crapware on CPAN is any different than the percentage of crapware on PyPi.

      A few reasons which might partially account for the difference I've observed:

      • PyPi is newer. Less of what's there has bitrotted or become unmaintained.
      • Much of the Python crapware I've run across doesn't bother supporting setuptools, and thus doesn't get on PyPi. In cases where something is genuinely useful but the upstream author doesn't add setuptools support themselves, someone (and in a case or two, I've been that someone) provides a patch or forks the project.

      All that said, you are right, much of it comes down to, is what I need there? Problem is, that answer depends based on the problem domain. And I'm willing to bet that, based purely on the sheer number of packages available in CPAN, it's more likely to cover obscure topics, in addition to the more popular subjects that both CPAN and PyPi are likely to cover adequately.

      Could be -- but if you want to talk support for libraries for obscure purposes, being able to use third-party libraries written in Java or .NET (rather than relying only on CPAN or PyPi) is a clear win; in those cases, Jython and IronPython are compelling.

    28. Re:Don't fight it - Perl is here to stay! by jrockway · · Score: 1

      Big object-oriented stuff, in particular, is just kinda painful.

      Not really. I find it rather enjoyable.

      Perhaps you have not heard of Moose.

      --
      My other car is first.
    29. Re:Don't fight it - Perl is here to stay! by mr_mischief · · Score: 1

      Experienced programmers who write for maintainability write maintainable code. Experienced programmers who write whatever the hell they want or whatever clever bullshit comes to mind have the wrong kind of experience.

    30. Re:Don't fight it - Perl is here to stay! by melonman · · Score: 1

      You could equally argue that many of the CPAN modules have been tested and fixed incrementally over a decade, ie that new code isn't necessary better code. Some of the major CPAN modules have stopped being updated because there is pretty much nothing left to fix.

      --
      Virtually serving coffee
    31. Re:Don't fight it - Perl is here to stay! by MoxFulder · · Score: 2, Insightful

      1. I already know it. I learned it before Ruby was "cool".

      The biggest problem with this argument is... Python is incredibly easy for a Perl programmer to learn. I mean, ridiculously so. All the reasonable Perlisms (hashes, lists, foreach, etc.) translate directly, and all the unreasonable ones (*cough* objects *cough*) are just simpler in Python.

      I decided to learn Python one day and had basically rewritten (and improved) all of my lab automation scripts in it about 10-20 hours of work later.

      2. It's already installed on every Linux and BSD machine. Yes, that means I can run my script on your brand new Ubuntu desktop, or your 1998 BSD server. And it'll work.

      Erm... Python has been installed on every Linux/BSD box I've seen in the last 5 years, because a lot of system utilities depend on it. Perl has changed a lot since 1998 too... I wouldn't count on a lot of today's scripts working with Perl 5.1.

      3. Great Regex support (am not saying your language de-jour doesn't, just that perl does)

      Indeed. When you need regexes, Perl's are undoubtedly the best. Which is why Python copies Perl's regex syntax exactly... including all the new-fangled ?: ?! ?^ stuff. Just learn the Python functions to invoke regexes, and you're done.

      4. CPAN is one of the most extensive software libraries known to mankind.

      Unfortunately, it's also wildly varying in quality, and there are sometimes 5-10 different modules that sorta-kinda do the same thing and none of them gets everything right. And they might be coded in such different styles as to be nearly impossible to combine.

      ... all of you Haters out there can go $@_{s/;//g}!

      See, the fact that that might be a valid Perl program is part of why I prefer Python :-P

    32. Re:Don't fight it - Perl is here to stay! by chromatic · · Score: 1

      Perl has changed a lot since 1998 too... I wouldn't count on a lot of today's scripts working with Perl 5.1.

      You can count on almost every 5.001 program working on 5.10, however.

    33. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      You could equally argue that many of the CPAN modules have been tested and fixed incrementally over a decade, ie that new code isn't necessary better code. Some of the major CPAN modules have stopped being updated because there is pretty much nothing left to fix.

      For code with no dependencies, which interacts with no evolving standards, this may be true. For other code, one word: Bitrot.

      A library may be perfect in and of itself, but the rest of the world moves on. Ten-year-old code is likely to reinvent wheels which modern code would use 3rd-party libraries to implement, increasing size and decreasing maintainability and debuggability. Ten-year-old code won't use newer interfaces (see ipchains vs iptables, select vs epoll, polling stat() vs inotify() vs dnotify()), won't support newer features (see: XML libraries without XPath), and aren't built with knowledge gained by observing their contemporary competitors. Even SMTP just went through a revision; time passes, the world moves on, and code over time goes bad.

    34. Re:Don't fight it - Perl is here to stay! by paleshadows · · Score: 1

      "I know it and it's installed" aren't really strong advocacy arguments"

      I disagree. I think these are very, very good arguments for using a language.

    35. Re:Don't fight it - Perl is here to stay! by melonman · · Score: 1

      It's an interesting theory, but does CPAN support it in practice?

      To take the example of XML, there's basically a perl API to every XML and XSLT parser in existence, starting with expat. (Incidentally, some of those XSLT parsers are in java.) So, if LibXML/LibXSLT do what you want (as they do in my case), you use XML::LibXML and XML::LibXSLT.

      Picking between a number of well-documented XML technologies such as LibXSLT and Sablotron seems to me to be altogether better than going for The Newest From Scratch XSLT Implementation In My Favourite Language, as if this implementation is going to be the first ever not to have any bugs and not to deviate from the specs in any way whatsoever.

      Also, what you are calling bit rot is what enables backwards compatibility. Python seems to be a bit better than PHP on this score, but, as I understand it, Python 3 will not be compatible with Python 2, and issuing warnings in Python 2.6 is supposed to magically update all legacy code. Since that approach has never resulted in universal updating of legacy code in the entire history of computing, I don't expect it to work for the Python community either. It's just as well that there is so little legacy code out there compared with perl :)

      --
      Virtually serving coffee
    36. Re:Don't fight it - Perl is here to stay! by Anonymous Coward · · Score: 0

      CPAN is awesome. My joy at having to write less ancillary, boring stuff on my projects is infinite. Not only that, but the CPAN version is better than what I would have put together. (Most) Modules have been extensively tested on all sorts of platforms, for all sorts of applications.

      Were you going to use Perl for one single reason, CPAN would be it. But, here are the other two that make it my language of choice:

      1) Probably the most useful mailing list/forum community out there. Perl places are full of extremely talented people willing to help.
      2) Deep learning curve. This means that Perl isn't appropriate for everybody, it really does take a time investment to learn. What it does mean is that once you master the idioms and ways of Perl, you can really churn out functional, robust code. I know many multi-language guys that turn to Perl when they need to "Just get things done."

    37. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      Picking between a number of well-documented XML technologies such as LibXSLT and Sablotron seems to me to be altogether better than going for The Newest From Scratch XSLT Implementation In My Favourite Language, as if this implementation is going to be the first ever not to have any bugs and not to deviate from the specs in any way whatsoever.

      As I pointed out, part of the point of newer libraries is that they can leverage other modern tools; lxml, for instance, leverages libxml2 heavily, and thus is far from "from scratch", and benefits from all of libxml2's reliability and compliance. (Likewise, its API design borrows heavily from the good ideas of ElementTree, to the point of being backwards-compatible with the same). XML libraries written before libxml2 obviously cannot leverage that effective standard, or (at minimum) have high-level APIs designed with a different low-level implementation in mind.

      If we all picked the oldest, most thoroughly battle-tested library that we could possibly use for any purpose, I would be using something like PyDOM when I needed to do DOM work -- and my code would be longer, more complicated and harder to read for it. ElementTree's API style gained traction because it was better -- fewer and more readable lines needed to achieve a desired result; lxml continues that further.

      Also, what you are calling bit rot is what enables backwards compatibility. Python seems to be a bit better than PHP on this score, but, as I understand it, Python 3 will not be compatible with Python 2, and issuing warnings in Python 2.6 is supposed to magically update all legacy code.

      To clarify -- Python 2.6 warns about only those things which the mechanical py2to3 (or whatever they're calling it) code conversion tool can't fix; the bulk of changes will be done programmatically by the translator, no human involvement (other than running the translator, checking in its result and bumping the release number) needed.

      Anyhow, 'yall Perl folks don't have much room to talk on this count -- I was bit plenty by backwards incompatibility in a minor Perl interpreter release somewhere between 1998 and 2001 (sorry, don't remember more precisely than that). Python has had a formal language definition and change-control process for quite some time now, and benefitted quite undeniably, even now when backwards-compatible changes are deliberately taken place: Because all syntax changes are known and enumerated (rather than having language behavior defined by the implementation, as was historically the case with Perl), projects such as the mechanical translator are easier to develop and prove correct.

    38. Re:Don't fight it - Perl is here to stay! by melonman · · Score: 1

      But... but... You seem to think that because CPAN still supports older packages, everyone is going to use them. It doesn't work that way. The point is that the older XML packages are patched to do what the underlying technology can do, while new packages are developed for newer underlying technology. So you can still run XML::Parser (based on Expat) today, and expect it to do what it says on the tin. If, for example, you want extensive support for namespaces, you use XML::LibXML. The continuing support for XML::Parser doesn't stop development of XML::LibXML - why on Earth would it? What it does do is keep a lot of useful legacy code running.

      I don't know which incompatibility caught you, but I still come across perl4 scripts in production settings. Making old perl5 scripts work with new perl5 parsers is generally as easy as adding one 'use' statement at the top of the script. That gives you compatibility back to 1994, which is when the very first version of python came out. Having to run python 2 code through a convertor and then fix the rest by hand doesn't seem to compare very well with perl backwards compatibility across the same time frame. However elegant the language's spec...

      --
      Virtually serving coffee
    39. Re:Don't fight it - Perl is here to stay! by metamatic · · Score: 1

      Perl should have a automatic CPAN downloader that allows you to run your app and it goes and graps all those obscure modules and installs them instead of forcing me to sit there for 20 minutes typing....

      In all seriousness, that's proposed for Perl 6. As per Apocalypse 12, you'll be able to do something like use Dog-{$^ver ~~ 1.2.1 | 1.3.4}-{$^auth ~~ /:i jrandom/};

      And I wish I was joking.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    40. Re:Don't fight it - Perl is here to stay! by cduffy · · Score: 1

      But... but... You seem to think that because CPAN still supports older packages, everyone is going to use them.

      No, I'm just explaining why CPAN's huge collection of outdated libraries really doesn't matter to someone deciding between Perl and Python today if they're going to be writing new code.

      Having to run python 2 code through a convertor and then fix the rest by hand doesn't seem to compare very well with perl backwards compatibility across the same time frame.

      I pretty much agree with you that the converter approach is unfortunate and unwieldy. On the other hand, having ill-defined changes which may or may not cause breakage without warning between minor releases (which is where Perl seemed to be back before I switched -- obviously your milage varies, and I'm certain this will be fully and completely resolved by Perl 6 with its formal language definition) isn't much fun either.

    41. Re:Don't fight it - Perl is here to stay! by shutdown+-p+now · · Score: 1

      But maybe, just maybe, someone will come along one day... and viola! Perl.NET!

      Very unlikely. Even setting the issues of bolting the weird Perl semantics on top of CLR aside, how many alternative full-featured Perl implementations of any kind do you know, in general?

      Yeah, right. And guess why it's so? Because of weird stuff like typeglobs, which is essentially about exposing implementation details in the language.

    42. Re:Don't fight it - Perl is here to stay! by abradsn · · Score: 1

      Usually, I try to avoid replying to incorrect comments, but this time I couldn't help myself.

      The best argument that the OP made was that it has a massive install base. This is really important. Making light of that point probably means that you are young in your career.

      Wide distribution means that you can count on the stability and safety of knowing that you don't have to do the same work over and over again for no good reason.

      The code that has survived the longest is typically written on the most adaptable platforms.

      Ruby and Python are probably just fads that will go away within a few more years. They will be replaced by some other new great language of the future. You will end up rewriting all your cool applications in that flavor. And then, after that you will start to gravitate towards the older way of doing things. I'm not talking about green screen and assembler. I am talking about the tried and true languages like Java, C, insert other old but still used heavily language here. The tried and true methods of implementation like using libraries that have existed through multiple platforms on multiple systems.

      Sorry, if this seems like a rant. My intention is really just to try to save you some effort in your future endeavors.

  24. Re:Perl6 is the problem by Anonymous Coward · · Score: 5, Interesting

    Unfortunately, (as perl fan), Perl6 is the problem. All the bright young things went into the death march that is Perl6 and CPAN stopped getting useful additions. Two burnout cycles later, we still don't have Perl6. Or modern, complete XML/Xpath support. Or a DBI::CSV which can do joins. Or any other number of actually useful code bits.

    I'm now tossing up whether to learn Ruby or Python.

  25. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  26. Re:No one made it cause no one cares by timmarhy · · Score: 0

    look at what site is number 2. no doubt at all bsd/unix is awesome, but win 2003 is NOT a bad web platform by any means, and for many purposes it's very effective

    --
    If you mod me down, I will become more powerful than you can imagine....
  27. What color are the power LEDs on those servers? by Anonymous Coward · · Score: 5, Funny

    and before you start ranting about windows is a poor web platform http://uptime.netcraft.com/up/today/top.avg.html.

    Your theory appears to be that Windows is a good web platform, because on netcraft, 2 out of the top 50 sites by uptime are running Windows. Wouldn't the goodness of a web platform depend on a whole bunch of things, only one of which would be uptime? And uptime would be less important than things like availability and ease of installing software. And most importantly, whether the machine has a blue or green LED for the power light. Obviously machines with blue power LEDs suck, but machines with green LEDs rock! And Windows web servers always have blue LEDs for power lights! Windows sucks and always will. They don't even know how to write drivers for green LEDs.

    1. Re:What color are the power LEDs on those servers? by Anonymous Coward · · Score: 0

      My Sun machine has a blindingly bright teal LED... in the back. Linux only supports it at half-brightness, and Windows turns it orange. What do I do?

    2. Re:What color are the power LEDs on those servers? by Anonymous Coward · · Score: 0

      I think OP was making a counterpoint to the theory, typically heard around here, that Windows has poor uptimes.

    3. Re:What color are the power LEDs on those servers? by gbjbaanb · · Score: 1

      Which sites have good uptimes with Windows? I only want to know because some.. err.. associates of mine.. would like to.. erm.. do some consulting.. yes consulting.. with those companies about the importance of running Windows Update regularly.

      (I thought the last one I did a few weeks ago required a reboot.)

    4. Re:What color are the power LEDs on those servers? by Anonymous Coward · · Score: 0

      Here they are. I hope they don't get slashdotted! It'd be a real shame if the overload made them reboot. PLEASE DO NOT CLICK REPEATEDLY ON THESE LINKS. http://www.dececco.it/ http://www.reisen-zu-traumhaften-preisen.de/

  28. So don't change. by gbjbaanb · · Score: 4, Insightful

    Why would you want to rewrite to use .NET, I mean c'mon Perl programmers are known for their objectivity and pragmatism. Rewrite in .NET before you *have* to, forget it!

    There's 2 things to consider before you go changing your code:

    1. COM may be 'oh, that old thing we no longer talk about' to Microsoft, but it isn't going away anytime soon, no matter what their marketing department tells you. There's a fair bit of code written that uses it.

    2. One of those codebases that is heavily reliant on COM (and Win32) is this .NET thing, a lot of the class library is a wrapper around the old libraries. So even if you did rewrite your code, all you'd be doing is calling your old libraries through a intermediate layer!

    Sure MS doesn't want to do IronPerl, I think that's because python and Ruby are 'cool' languages, and MS is trying to be like someone's Dad, 'getting hip with the kids'. I doubt it'll ever create an IronPerl simply because there's no mileage in it for them to entice the Perl developers over to Windows unlike the Python and Ruby folks that they're scared of losing to other platforms.

    1. Re:So don't change. by wilsonthecat · · Score: 1

      Infact the CLR *is* a COM server, so it's never going away. You can create your own CLR host inside your application this way.

    2. Re:So don't change. by Slothrup · · Score: 1

      Why should MS need to "want to do IronPerl"?

      Part of our attempts to be a part of the open source community include encouraging others to implement their favorite dynamic language on top of the DLR. We don't honestly believe that we can implement all the software in the world.

      So if you want IronPerl, go ahead and download the DLR and get to work!

      (I work on IronPython and IronRuby at Microsoft.)

      --
      The difference between theory and practice is that, in theory, there is no difference between theory and practice.
    3. Re:So don't change. by gbjbaanb · · Score: 1

      Why should MS need to "want to do IronPerl"?

      for the same reason (whatever it was) that made MS want to do IronPython.

      Now if you truly wanted to be part of the open source community, you'd have added to Ruby and Python codebases directly instead of making your own version. OSS community is about adding to existing code, building on the shoulders of others for the benefit of those who come after you. IronPython is a waste of effort considering python already exists, even for Windows.

      I've no problem with you doing it, its OSS after all, but I feel the benefit of your work is to Windows and not to the Python community.

    4. Re:So don't change. by Slothrup · · Score: 1

      You can't build pure .NET implementations by adding to the existing codebases; you have to start from scratch. The same is true for the pure Java implementations of both languages.

      The goal isn't to create "Python for Windows" -- as you point out, CPython already works quite well under Windows. The goal is to allow expand the language choice of developers targeting .NET (and Mono) for application development.

      --
      The difference between theory and practice is that, in theory, there is no difference between theory and practice.
    5. Re:So don't change. by gbjbaanb · · Score: 1

      You can't build pure .NET implementations...
      The goal isn't to create "Python for Windows"
      so the goal is to build Python for .NET, which is practically the same thing.

      Like I said, you're not expanding Python, you're expanding .NET by adding a language to it. Python doesn't gain from your work. Now, if you were to add capabilities to Python (and obviously then porting them to .NET) then I think you'd be making a much more positive contribution.

  29. Re:No one made it cause no one cares by l3v1 · · Score: 1

    How the hell, insightful, when citing netcraft ? :P

    --
    I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
  30. Re:No one made it cause no one cares by l3v1 · · Score: 1

    many people consider Perl's time to have passed and no longer see a reason to use it in any significant project.

    Ho, lo, and behold. Many people consider that, and many don't. One can use Perl in a dozen of ways in any type of project, one just has to know it enough so as to use it where it's appropriate and not use it for everything like a madman. I've known people who'd use Perl for literally everything, well, god keep us from such people in any kind of project. But, I wouldn't say, even if Perl is so many years old, that it hasn't got it's place. It does, and I still enjoy using it for stuff from time to time.

    --
    I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
  31. If you can't find a project start one. by chriseyre2000 · · Score: 1

    If someone wants IronPerl then why don't they start the project? It is just that no one has yet got around to scratching that itch.

    1. Re:If you can't find a project start one. by mr_mischief · · Score: 1

      Well, Microsoft has been one of the big fund sources for ActiveState's ActivePerl package.

      One thing you must realize about Perl before you go and stick it on the CLR is that Perl is severely dynamic at several levels. The CLR is a stack-based virtual machine for languages that are slightly dynamic. It really isn't a very good fit. Perl 5's parsing rules also happen to be very complex.

      That's why Parrot was invented -- it's a register machine VM with automatic spilling and designed from the ground up to work well with highly dynamic languages. It's also designed to allow multiple languages to be compiled down to byte code for it. The main language in question is Perl 6. Perl 5, Ruby, Python, and PHP interpreters are also being written for it among others.

      There have been many minor to major improvements in Perl 5 since 8 years ago. Among them are a mostly iterative regular expression engine, better threading, a native case statement (called given) and a new popular object system (as a module) that most people who try it like more than the original stock Perl 5 objects. Most of the serious heavy lifting in Perl implementation is being done on Perl 6, though. Rakudo (the implementation of Perl 6 on Parrot) is progressing and Parrot itself is stable enough that people are starting to write directly to it for production use.

      If the people who develop perl think that Perl needs a different kind of VM to run its best and they've spent eight years on the language and VM, then why disregard all that now that completion of that work is within sight? Why shoehorn Perl 5 into an environment where it won't fit when there are viable systems for running it and it's about to be largely superseded?

  32. apparently by speedtux · · Score: 3, Insightful

    Well, apparently, nobody in the Perl community cared enough about it to create it. Do you care enough to start such a project.

    I suspect most people probably thought it was easier to switch to a different language that did support the environment they needed. I know I did.

  33. Re:No one made it cause no one cares by LodCrappo · · Score: 5, Informative

    The figures on this simply don't support that claim. Your anecdotal evidence of two places you worked it meaningless.

    If anything I'd say this is because many people consider Perl's time to have passed and no longer see a reason to use it in any significant project.

    Funny.. I'd like to see the figures behind your claims that "many people consider Perl's time to have passed".

    A quote from CIO.com story entitled "PHP, JavaScript, Ruby, Perl, Python, and Tcl Today: The State of the Scripting Universe" (8/29/08)

    "Of all the scripting languages, Perl offers the biggest installed base of applications, of code, of integrated systems, of skilled programmers. It has the lowest defect rate of any open-source software product. It is ported to essentially every hardware architecture and operating systems, from embedded control systems to mainframes. It is optimized for speed, for memory footprint, for programmer productivity. It has readily-accessible libraries for all types of programming tasks: Web application development, systems and network integration and management, end-user application development, middleware programming, REST and service-oriented architecture programming. Perl is ideal for the organization that takes charge of its own IT future."

    Other interesting stats and info throughout the story..

    full article

    --
    -Lod
  34. Been in similar shoes by ThePhilips · · Score: 4, Interesting

    I have been in similar shoes some time ago.

    I wouldn't elaborate on the all boring details, but just shortly summarize my experience.

    If you can Perl, then you better off porting your stuff to Linux. Perl on Windows sounds cool and ActiveState does excellent job. But Perl would always remain underdog, restrained by the fact that its foreign platform - platform where VB rules.

    I know I sound impractical, but after two years trying to make some stuff fly reliably on Windows with CygWin and ActiveState, I simply given up. I given up on Windows mostly because I found that all stuff I need, on Linux is very similar and (most importantly) there are no all those stupid CygWin and OLE/ActiveX annoyances and periodic breakages. For my application, near doubled performances was only an extra bonus.

    If you plan to remain on Windows, you have to accept and start doing it in VB or C# or whatever is language du jour in Redmond.

    If you depend on Perl, then thinking in direction of *nix platform is sound choice. (Or even some VMware or VBox setup with Linux guest.)

    P.S. My work was related to processing of .xls files with huge amount of statistical data and making some charts for them. On Linux that was solved beautifully with (1) telling people to export info as CSV (extra bonus: smaller files) and (2) gnuplot output charts to PDF. Frankly, in the end it worked magnitudes better than the setup with ActiveState Perl/Excel/WinWord/etc on Windows.

    --
    All hope abandon ye who enter here.
    1. Re:Been in similar shoes by adamkennedy · · Score: 4, Informative

      You probably should have had a look at Strawberry Perl.

      Most of the Perl technocrati abandoned ActivePerl for it over the last year, because all the CPAN modules Just Work.

      (Full Disclosure: I made Strawberry) :)

    2. Re:Been in similar shoes by ThePhilips · · Score: 2, Interesting

      Thanks for the info!

      A 100% Open Source CPAN-capable Perl for all your Windows® computers that works exactly the same as Perl everywhere else.

      Does that mean it also has fork()?

      But honestly, to me properly functioning select() (with both pipes and sockets) is already more than enough.
      Though admittedly I do not have plans to go back to Windows.

      --
      All hope abandon ye who enter here.
    3. Re:Been in similar shoes by siddesu · · Score: 1

      yay, thanks. first reason to reboot into vista in 6 months.

    4. Re:Been in similar shoes by Anonymous Coward · · Score: 0

      Thank you for making Strawberry. I use it almost daily. If I hadn't lost 180k in savings the last two days because the Icelandic banks tanked, I'd buy you a beer.

      Strawberry is great, but to say all the CPAN modules Just Work is not actually totally completely true. The first module I tried was the Postgresql part of DBI and that Just Wont Work on Windows. No amount of farking around could make it build. Maybe it's because the module is crappy (on Windows), maybe not. I don't know.

    5. Re:Been in similar shoes by chthon · · Score: 1

      ActiveState Perl has fork(), it works, but... not always.

      Cygwin + Perl does fork() well, I use it every day.

      However, for all those people here who do not know Perl, but still think they should comment...

      I am using Perl since 8 years, and all of my programs and modules can be used on Win32, cygwin, solaris and linux. For me, Perl is the ultimate in portability (even GUI's, with Perl/Tk). Its footprint is many times smaller than Java, you have a nice namespace system, object-oriented programming when you need, and very good functional programming support : lexical environment, closures, anonymous functions.

      You cannot fathom the possibilities of Perl if you haven't read "How To Design Programs".

    6. Re:Been in similar shoes by mpapet · · Score: 1

      I work in a shop that's got win32 on the brain and use Strawberry Perl extensively. The CPAN support is really great. Not perfect, but generally great.

      I don't really understand why Perl is so not-hot. It may be ugly for higher-end programming types, but I'm not much more than a script writer and get great results with perl on win32.

      Microsoft has so many scripting options it's impossible for me to keep track. wsh? vbs? asp? monad? .net? Perl's got it all with modules providing relatively simple variations on Perl themes.

      --
      http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
    7. Re:Been in similar shoes by ThePhilips · · Score: 1

      I've been asking about fork() in Strawberry Perl...

      Though Perl is quite portable (I'm using it 8 years too (and actually started on Windows)) still, on *nix it feel at home.

      Question about fork() was more or less theoretical. I have yet to ever run into need to use fork() in Perl - shell pipes all the way. Pipes under CygWin work but very slow due to slower process creation under Windows (I actually did trace that: CygWin's part is relatively fast, but the process creation in OS itself is slow (5-25ms)). And in case of Perl, starting new instance of perl might take some time. E.g. "whatever | while read A B C; do ./aaa.pl C B A; done | whereever" runs into dozens millisecond just to spawn new perl instance.

      --
      All hope abandon ye who enter here.
    8. Re:Been in similar shoes by Anonymous Coward · · Score: 0

      If you depend on Perl, then thinking in direction of *nix platform is sound choice. (Or even some VMware or VBox setup with Linux guest.)

      P.S. My work was related to processing of .xls files with huge amount of statistical data and making some charts for them. On Linux that was solved beautifully with (1) telling people to export info as CSV (extra bonus: smaller files) and (2) gnuplot output charts to PDF. Frankly, in the end it worked magnitudes better than the setup with ActiveState Perl/Excel/WinWord/etc on Windows.

      You would have been better off learning Python and using Python/matplotlib on windows. It works beautifully on Windows, Linux, and Macs.

    9. Re:Been in similar shoes by chthon · · Score: 1

      I need fork(), even on Windows, because all my programs are constrained by our VCS (Continuus, which is very slow). When I am doing builds, I create processes which work in parallel with the builds themselves, to save time. All these processes are related to the build.

    10. Re:Been in similar shoes by dirtyhippie · · Score: 1

      Oh sweet, SP works on vista now! (fires off some wgets)

  35. perl missed several boats, sadly by orabidoo · · Score: 5, Insightful

    Opinionated post follows, feel free to ignore or disagree....

    Perl is the original language that taught a whole generation of programmers that you don't have to write 1000s of lines to do a simple thing. I love its expressiveness, its design philosophy (There's More Than One Way To Do It) and its linguistic roots. Despite being known for write-only shit, actually writing clean, maintainable code in perl is a pure pleasure. It just gives you the extra bit of latitude in your coding, that what you write can express not just what you want done, but a little extra bit of how you think of it... by using "unless" instead of "if" at times, putting the conditionals after the statement at others, you can actually make the code read like the main points are main points, adn the accessory checks are accessory. I love that flexibility.

    For years, perl was the secret productivity tool of many. What others would spend weeks writing in C++ or java whatever, a perl coder would prototype in a day or two, and often the result was good enough to be declared final. And with the amazing collaboration experiment called CPAN, there was a good chance you would find a module to do the heavly lifting for you, and the two days could be shortened to a couple hours.

    Sadly, the perl development community missed not one, but two boats.

    First, it missed the second wave of web programming. Perl was virtually synonymous with CGI programming, but then the web world moved on to embedding code inside the HTML, which is a rather crappy combination but is easy to start with. So the perl guys produce mod_perl and about a thousand templating kits, which all together made mod_perl a powerful, scalable, flexible web platform that was at the same time confusing, hard to learn, and unfriendly towards shared hosts. And then PHP came to fulfil that need, with their bastardized watered down clone of the language, and basically stole the show.

    Second, the perl community in all their wisdom, back in 2000, decided that the whole language needed to be redesigned from scratch, and built on a new generic virtual machine for dynamic languages, which would run not only perl6 but also python, tcl, logo, and who knows what else. They embarked on a prolonged process of design by committee, which 8 years later has just managed to produce a variety of incomplete specifications, and two incomplete prototypes of the language interpreter, with no completion date nor any backwards compatibility to be seen. In the meantime, the whole .NET framework has been created and gone through several iterations, Ruby has risen from obscurity to fame, etc. For all we know, perl6 may still one day reach completion, and be a useful language. The design specs are way cool, and the people implementing it sound like they are having fun.

    So what happens with perl and .NET? Well, not much. Apparently ActiveState have at some point developped a bridge of some kind, but I can't find it in CPAN. There's Inline::Java, but no Inline::CSharp. Maybe no-one cares enough. It's true that the target demographics for perl and .NET are quite separate, but that should not be a reason for the language that pioneered interfacing with everything on earth.

    1. Re:perl missed several boats, sadly by Anonymous Coward · · Score: 0

      I'd say Perl is the Basic of the nineties (and maybe early 2000s). It also wasted an entire generation of programmers.

    2. Re:perl missed several boats, sadly by Richard+W.M.+Jones · · Score: 1

      Perl is the Basic of the nineties

      Well you can certainly say that, but you're talking nonsense. Perl is a powerful functional language which just does some stuff extremely elegantly. I normally program in OCaml but go back to Perl from time to time, and in fact today I realized how amazingly easy it is to write a command line program with integrated help and manual page, all in a single script. No other language does it that well.

      Rich.

    3. Re:perl missed several boats, sadly by Al+Dimond · · Score: 1

      I hope you meant "functional" meaning "it works" rather than that it exemplifies functional programming ideas, because it doesn't do anything close to the latter.

      The idea that it streamlines a lot of practical tasks makes it similar to BASIC, not different. As much as some elitists around here disparage any form of BASIC (probably mostly because Microsoft has a very popular version around right now), it was on many old computers an easy way to hack up quick prototypes, utilities, and games. Perl was written for a very different environment than old BASICs (memory protection, process isolation, and the abstraction of Unix's unified file system rather than the almost-bare-metal environs of DOS and older OSes), had different tasks in mind (data processing and no games, which would require graphical resources more complicated to obtain on the more modern system), and replaced different types of tools (C, awk, and shell rather than assembler).

      Still, the approach at all times was to aggressively make things simple for the programmer. And the approach was practical and, I believe, willfully short-sighted. Just as spaghetti code in an early BASIC could be easier to digest in small doses than highly-structured stuff in a modern BASIC, for many small programs the ideas idiomatic to early Perl allow for quick and intuitive scripts. Dynamically scoped variables controlling behavior of standard functions, format and write, extensive use of the default variable, flags like -n and -p. As in BASIC, the limitations of these things are exposed and they become less used (i.e. $_ as different structures would try to use it for conflicting things) or they become dangerous and are de-fanged (i.e. $[). So Perl5 has come to look like a lot of other languages, just with lots of nice short-cuts to do common things (from declaring a hash to writing a man page) and some warts from the old days (inconsistent error handling across modules is an issue). Sort of like how Visual Basic 6 makes it trivial to add forms and dialog boxes to a GUI app, in the spirit of early BASICs' simple drawing commands, but has its share of kludges (the mushy distinction between form classes and instances, and the awful error handling).

    4. Re:perl missed several boats, sadly by chromatic · · Score: 2, Insightful

      I hope you meant "functional" meaning "it works" rather than that it exemplifies functional programming ideas, because it doesn't do anything close to the latter.

      Why not? It has lambdas, dynamic scoping, lexical scoping, and closures. It lacks homoiconicity, but so do OCaml and ML and Haskell. It doesn't forbid mutable global state, but neither does CL, and a lot of people believe that CL supports functional programming fairly well.

    5. Re:perl missed several boats, sadly by bcrowell · · Score: 2, Informative

      Perl was virtually synonymous with CGI programming, but then the web world moved on to embedding code inside the HTML

      There have always been some things that you needed to do on the server side (e.g., validate the user's password), and some that were better done on the client side (e.g., warn the user *before* he hits the submit button that his social security number only has 8 digits). That hasn't changed. The only thing that's changed is that more people are doing ajax. An ajax app still needs to have some things happen on the server side, and perl is still a perfectly reasonable language for that.

      but then the web world moved on to embedding code inside the HTML, which is a rather crappy combination but is easy to start with.

      It doesn't need to be crappy. JavaScript is a very nice programming language, with good support for functional programming, and a lean, simple way of supporting OOP. You also don't need to embed your javascript directly in the HTML. I don't have any experience with php, but anyway I don't see what any of this has to do with perl, which is the language you'd be using on the server, not the client.

      So the perl guys produce mod_perl and about a thousand templating kits,

      Mod_perl is totally irrelevant here; either use it (if you need the performance boost) or don't (if you don't). As far as templating kits, if you don't like that kind of thing, don't use it. Generating HTML with perl code isn't exactly rocket science. The horrible mess with frameworks is more of an issue with ajax, which is rocket science to get working well, across browsers.

      which 8 years later has just managed to produce a variety of incomplete specifications, and two incomplete prototypes of the language interpreter, with no completion date

      So what? Why should it bother me as a perl coder if perl 6 is a long time coming? Perl 5 is a great language.

      nor any backwards compatibility

      Here you're just misinformed. Perl 6 has always been planned to be 100% backward-compatible with perl 5. I don't know if the current non-release implementations have perl 5 compatibility yet, but they will by the time they're ready for release.

      If perl is losing any mindshare (and is it? -- I haven't seen any data to demonstrate that), I don't think any of your reasons hold water. What might be more of an issue is that we've been going through a fad for OOP, but Perl 5's support for OOP is ugly.

    6. Re:perl missed several boats, sadly by Al+Dimond · · Score: 1

      Can you use very many common Perl modules or many of its built-in functions in a functional style? No. Modern Perl allows functional programming because it has many features considered necessary for it, but it's often not the most convenient and natural way to solve a problem. For example, list manipulations, where the quite-non-functional builtin splice is the easiest way by far.

      So I'd say it allows functional programming but doesn't exemplify its ideas. The total set of its features doesn't encourage a functional style, and a functional style is very, very much not idiomatic to Perl. Similarly, I don't think Perl is an object-oriented language either, even though its object system is insanely flexible and most CPAN modules use classes and objects. In Perl you have to define so much basic class behavior yourself that classes are usually only written if the benefits of encapsulation are truly overwhelming.

      What sort of language is Perl? Larry Wall has said Perl was not made to fit a philosophy. It draws inspiration and features from many different languages without trying to be conceptually unified as much as many other languages. He's called it a post-modern language for that reason. It's often called a glue language, which talks about how it's used rather than how it's designed; however, Perl has evolved around its uses. It glues together various languages, formats, computers, networks, and much of the code we write in Perl involves gluing together modules. Its flexible typing and syntax each facilitate this usage.

    7. Re:perl missed several boats, sadly by orabidoo · · Score: 2, Informative

      yep, you have several good points there.

      maybe I wasn't sufficiently clear, but what I meant by "embedding the code in the html" was not a reference to Javascript, but to PHP and ASP type of programming.

      my point is that PHP could only have happened through a major blunder of the perl community, since it is basically a bland clone of perl. I don't see the languages themselves being different enough to make a difference, so I tend to think that the main reason why PHP took off is that it has a dead easy programming model ("change your files extension to .php and embed your <?php php code ?> in there"), and is friendly towards shared hosts, by basically resetting the interpreter between requests and having "safe_mode". The point is that all these things are possible to do with perl, but no-one at the time bothered to produce a package that did them and was simple to install, or if anyone did, they didn't make enough noise. So php came and filled the gap for the wider world, while the perl people smugly replied "we can do that too, and about 10,000 other things".

      so yep, I know you can use mod_perl for the performance, and templating kits if you like them, and that CGI is still available. I regularly use all of these :)

      besides, as a perl programmer, it bothers me if the perl community shoots itself in the foot, because I enjoy perl programming for the web, and that market looks to me like it's dwindling.

    8. Re:perl missed several boats, sadly by Ed+Avis · · Score: 1

      You can do basic functional programming in Perl but more advanced stuff becomes a real pain because of the lack of static type checking. Once you start having multiple layers of map or foldr or monads or whatever, you really need a type system like Haskell's to catch mistakes for you. With Perl you end up with undefined value warnings at run time and spend ages putting in debugging print statements to figure out what's going on. On the other hand, of course, many programming styles are much easier in Perl than in Haskell.

      --
      -- Ed Avis ed@membled.com
  36. Re:Perl developers are like Democrat voters by Anonymous Coward · · Score: 0

    That's not even worth a Troll mod - much less a 'fixed that for you'.

    Try harder next time.

  37. Re:Python is available by Hognoxious · · Score: 4, Insightful

    Most businesses (which is what MS is catering to) care about structured code that can be maintained, not just stuff you banged out to get the job done.

    The hell they do.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  38. Re:No one made it cause no one cares by Hognoxious · · Score: 4, Insightful

    These days with so many well-designed languages to choose from it's a great deal easier and more productive to learn several languages that each do one paradigm well

    and then join them all together ... using perl.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  39. Re:No one made it cause no one cares by chthon · · Score: 1

    I concur. And if you really want to program powerful in Perl, you should first learn how to design program.

    Perl is Lisp, but without the macro facility.

  40. Re:No one made it cause no one cares by John+Betonschaar · · Score: 1

    It'd be interesting to see what the distribution of web servers between Windows & the rest is when you completely take out the uptime. I'd guess Windows' share of the web server market is a lot bigger than 2/50 = 4%. Maybe the 2 windows servers listed are just administered by brilliant admins, have zero load or run on a hardware/software combo that has been untouched since Windows 2003 was actually released... Or they're just spoofing the server response, something that has been brought up before when netcraft stats where involved...

    Windows 2003 probably isn't all that bad, but I still wouldn't want to have it on my server...

  41. Re:No one made it cause no one cares by timmarhy · · Score: 1

    use the the same logic on the linux servers, there's only one listed on there.

    --
    If you mod me down, I will become more powerful than you can imagine....
  42. Cygwin by Delgul · · Score: 0

    Under cygwin it works afaik.

    Furthermore I would strongly advise you wise up, pop in an Ubuntu CD, and ditch .NET altogether. But that's just my 2 cents.

  43. Re:No one made it cause no one cares by Anonymous Coward · · Score: 0

    Everything that mentions just shows that Perl was popular and still has a wide base of installs and knowledgeable users as a result. A better measure of its standing now would be to list all the big apps that have been created recently using Perl. I can think of plenty for a dozen other languages, but honest to God nothing springs to mind for Perl.

  44. COM deprecated ?? by savuporo · · Score: 2, Interesting

    Dude, in which world is COM deprecated ? Effectively most of Windows system programming ( plug-ins, filters, extensions yada yada, especially the parts that concern shell, explorer or IE extensions ) are all exposed through COM intefacts still. In some cases we still have simple C interfaces like for device drivers, and a lot of security or crypto related stuff. So WDYM deprecated ?

    --
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.slashdot.org Errors found while checking this document as HTML5!
    1. Re:COM deprecated ?? by Anonymous Coward · · Score: 0

      Maybe s/he means all the COM guys are practically senior citizens by now and cost extreme amounts of money to bring in. Easier to bring in some strapping young .NET chaps.

  45. Re:No one made it cause no one cares by Anonymous Coward · · Score: 0

    You never ever mention about security in these area's.

    And to me tbh its the fact we have more windows monkeys out there than real IT pro's, which is why you have these great numbers on netcraft ( and lets be fair has been an M$ biatch as of late ). How can choosing a win32 platform ( including said security issues ) for a web platform be great? let alone professional.

    I am so sorry but IIS aint it.

  46. That's simply not possible as is. by wazoox · · Score: 5, Insightful

    Actually the problem is that "only Perl (the executable) can parse Perl (the language)". There isn't any formal description of the current language implementation, that effectively renders near to impossible to parse and execute Perl code outside of the perl binary; some edge cases of the syntax particularly are only determined at runtime (instead of compile time).
    Perl 6 is among other things an answer to this limitation, because it's thoroughly spec'd in the "synopses", and is actually currently implemented in two different ways (Parrot VM written in C, and Pugs written in Haskell). So it's perfectly possible to make IronPerl6, but no IronPerl.

    1. Re:That's simply not possible as is. by MosesJones · · Score: 1

      that effectively renders near to impossible to parse and execute Perl code outside of the perl binary

      My god you are so right, I've been trying to debug someone else's Perl code for 2 days now... it DOES help if you just look at the binary being churned out by the perl interpretter, its WAY more readable than the original code.
       

      --
      An Eye for an Eye will make the whole world blind - Gandhi
    2. Re:That's simply not possible as is. by wazoox · · Score: 2, Interesting

      Perl gives you more than enough rope to hang yourself, that's why you can often see appaling perl code. But the power of perl may also be a boon ; "use strict; use warnings;" , Perl::Tidy, Devel::Refactor, can help you tremendously to refactor bad code.

    3. Re:That's simply not possible as is. by Anonymous Coward · · Score: 0

      That should be: "only perl can parse Perl". (and see, no longer a need to spell out which is which ;-))

      From reading other comments, it's always funny to see slashdotters claim to have used Perl for ages, yet not being able to make this distinction (or even call the language PERL...)

  47. Re:No one made it cause no one cares by ggvaidya · · Score: 5, Informative

    To be fair, that quote is by Richard Dice, the president of the Perl Foundation, so he might be a little biased. :-)

    On the other hand, Perl still gets many more job postings on dice.com than any other interpreted language, including PHP: http://www.presicient.com/langjobs.html

  48. theyre picking up a book by nimbius · · Score: 1

    and studying *nix now that their 2009 budgets are gone ;)

    --
    Good people go to bed earlier.
  49. Perl 6 will solve everything by Anonymous Coward · · Score: 0

    and it's just around the corner.

  50. Am I the only one... by Anonymous Coward · · Score: 0

    Who can't help but feel the problem in situations like this isn't any one product vendor but the developer themselves?

    The only possible reason I can see people squeezing themselves into such obscure situations is because they're too incompetent, too lazy or just too stuborn to bother to learn the right language for the job.

    A good programmer should be able to switch between languages with very little preparation as a good programmer should understand the fundamentals of languages, of different programming paradigms and so on and so forth.

    The solution to the problem is simple, stop cornering yourself with an obscure way of doing things when you can save a lot of time and effort doing things a more mainstream way with say, Python if you want to remain OSS, or a .NET language if you're happy to shell out for Visual Studio.

    If you learn to accept and embrace change, you and your organisation will be far better off as a result.

  51. Re:No one made it cause no one cares by Anonymous Coward · · Score: 0

    And the fact that 34 of the results on that site are apache on BSD including the 1st entry and 11 are irix

    so 2 vs 34 hmmm which is a better platform i dont know.

  52. PowerShell by robnsara · · Score: 1

    I was the hard-core perl guy for our shop, but more recently we've switched towards Windows Powershell for the tasks I was using perl for. (Mostly AD manipulation)

    Using Quest software's extensions for AD, there isn't much I can't do against AD in a lot less code than I would have done in perl.

    My initial looks at Powershell/Monad left me less than interested, but since spending a little time with it, I'm realizing that it's got some wicked tricks to it.

    1. Re:PowerShell by Shados · · Score: 1

      PowerShell is sick. If you have .NET programmers, its even better. Making custom command-lets is amazingly easy in C# (a couple of lines of code at most). In PowerShell 2, you can make the commandlets directly in PowerShell too (since PowerShell -is- .NET anyway).

      I'm using Powershell embedded in my applications (as a script host), as well as through PowerGUI (if you never tried it, do so, its wicked to make administration consoles in a RAD fashion), and well, anything that doesn't require a full application (such as complex database update scripts that wouldn't be trivial in raw SQL, even for a DBA)... totally loving it. There's even some IDEs now that makes it easy to use PowerShell to make WinForm apps!

  53. Re:No one made it cause no one cares by Lumpy · · Score: 3, Funny

    And the best part....

    Almost all MCSE holders are afraid of it so they cant hire low wage cert's to maintain and change it.

    I love perl in the windows world it allows us with skills to have yet another noose around the neck of management.

    VB.NET was our first noose for management. I was so glad when Microsoft made VB hard. Almost all the part time VB programmers in the office instantly were ineffective as they could not wrap their heads around OO programming.

    Problem is, there are still millions of VB6 applications in use today in corporations all over america... and one day micrsoft will do something to break every one of them.

    That makes me smile.

    --
    Do not look at laser with remaining good eye.
  54. Re:Perl6 is the problem by ricegf · · Score: 4, Interesting

    As a former heavy user of Perl (and now a light user), let me encourage you that you're unlikely to go wrong either way. Both are popular, well-supported dynamic languages with bright futures.

    Python is less Perlish than Ruby in syntax, but in the end I found that rather charming and made it my "new" dynamic language. I have no regrets.

    Besides, if I want to shred and rebuild a text file in 40 characters of line noise (please understand that I mean that fondly - I like Perl's conciseness), then I've still got Perl 5. Python does many other things well, so I consider them both useful tools to know.

    So quit tossing up (ahem), pick one, and get on with it! :-)

  55. Re:Perl6 is the problem by sqldr · · Score: 1

    I'm now tossing up whether to learn Ruby or Python

    Spend 3 hours on the tutorials for each, then make a decision. I'm pretty sure I know which most people will prefer (certainly understand quicker), but I'm not going to start a flame war by saying which.

    Either way, that's the only way to make the right decision and not regret it, or blindly dive into one without knowing about the other.

    --
    I wrote my first program at the age of six, and I still can't work out how this website works.
  56. Re:Incredible moment by Anonymous Coward · · Score: 0

    Will you be bottom or top?

  57. Where's the Perl? by randomErr · · Score: 1

    I believe the short answer is: ASP/ASP.NET. Perl was **the** language to use for CGI. Perl is powerful and flexible but getting stuff to work right can be a pain, especially on Win32 systems. My first Perl interrupter on Windows was a CLI interface that my server had to make shell calls to. Since NT changed to 2000 and started shipping with IIS most developer have just switched to ASP or PHP.

    For a while some languages like Cold Fusion, Miva (formally HTMLScript) and JSP were very popular on Windows. But those languages were rigid and didn't always scale well. Yes, I know JSP scales better then the other two; but, I've personally had nothing but bad experiences with JSP.

    So the next generation web developers were either taught on ASP or PHP. The ones that needed more power from PHP usually then went back to Perl. Otherwise they stuck with was free and easy to use.

    In recent years newer and simpler languages have come out to do what Perl does on Windows. .NET has caught up to Perl in power and extensibility. PHP 6 is a step away from having the same power and code consistency. Now IronPython and IronRuby is out with great power of their own and the ability to plug directly into .NET.

    So with all these new choices and lack of the much promised version 6, Perl on Windows has lost most of its shine.

    --
    You say things that offend me and I can deal with it. Can you?
  58. Amazing by Vexorian · · Score: 0, Redundant
    A perl dev asks Microsoft to please embrace it.

    Only in America...

    --

    Copyright infringement is "piracy" in the same way DRM is "consumer rape"
    1. Re:Amazing by Vexorian · · Score: 1

      Dear .net fan with mod points: If you haven't noticed, the official "I disagree" mod is troll or overrated, redundant makes no sense here, please, next time the system gives you points, try to use them correctly.

      --

      Copyright infringement is "piracy" in the same way DRM is "consumer rape"
  59. Re:No one made it cause no one cares by networkBoy · · Score: 1

    FWIW I'm writing a full test suite for our hardware in perl.
    kind of like e-test, but while I do timing centric and low level stuff in C, I'm writing the test scripts in perl. It's actually the right tool for the job as anyone can modify the script as needed for their boards and if you know c/c++ then there is very little you need to know additional to modify an existing perl script. We are nearly a 100% windows shop too. (there are a few people with MACs (mostly running windows) and we do test most of the major OS's on our boards at one point or another, but the bulk of the testing and software is Windows based.
    -nB

    --
    whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
  60. Re:No one made it cause no one cares by pdbaby · · Score: 2, Insightful

    Perl is a typical example of a jack of all trades, master of none

    The full quote being:

    "Jack of all trades, master of none, though ofttimes better than master of one." ref

    Although I get what you mean. The trouble is that the thing I love about Perl - its expressiveness - is also its biggest weakness. In the hands of an inexperienced programmer Perl can be a nightmare. But in the hands of a master, a Perl solution to a problem can be brief and beautiful

    --
    Global symbol "$deity" requires explicit package name at line 2. - If only $scripture started "use strict;"
  61. Windows powershell is the answer by Anonymous Coward · · Score: 1, Informative

    Windows recently created a tool called PowerShell which is a rather fully-featured language which gives you basically full access to win32 and .Net APIs from a script. So while perl / python / ruby may be a more comfortable choice for many people, the use of those languages on Windows platforms is likely to always be less fully featured than the MS solution.

    See http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx for more info.

  62. Re:No one made it cause no one cares by IceCreamGuy · · Score: 1

    I'm a mostly-Windows (some Netware and Linux, also AS/400, which does support Perl, however I stay the fuck away from that system...) admin and the only language I use is Perl. I don't know if that's normal but it was easy to learn and implement in a short period of time; I can't see using anything else for scripting now that I've learned it.

  63. Re:No one made it cause no one cares by John+Betonschaar · · Score: 1

    I never said anything about Linux, did I?

  64. The Perl investment by Dystopian+Rebel · · Score: 2, Interesting

    I'm still using most of the Perl applications -- on *three different OSs* -- that I wrote before .NET existed, and I expect I'll be using them (on at least three different OSs) long after .NET has been replaced by Monoposoft's next attempt at World Domination[TM].

    --
    Rich And Stupid is not so bad as Working For Rich And Stupid.
  65. Not surprising by jlarocco · · Score: 2, Interesting

    First, as other people have mentioned, Perl use is declining. I love Perl, but it's just not as popular as it used to be.

    Second, Perl has always been more popular on, and worked better with, UNIX. That's even more true now that fewer people are using it. Ask 100 Perl developers whether they prefer UNIX or Windows, and 99 of them will say UNIX. So it's not too surprising there's no Windows only rewrite of it.

    As for Perl/Windows shops, do they even exist? Seems to me that if there were enough pressure to heavily use Perl, there'd be enough pressure to use something other than Windows.

    1. Re:Not surprising by jjn1056 · · Score: 1

      People have been saying Perl's declining since 1999. Last time I checked Perl was still one of the most popular languages among the scripting languages and I don't see much of a decline. What Perl is bad at is advocacy and PR. Most of the best Perl people are really busy doing stuff, not blogging or doing other things to help raise awareness.

      I'm not sure why Ruby/Python/PHP people feel the need to beat on Perl... the real competition is .Net and Java. Last time I checked Java was several times more popular than all the scripting languages combined. It would actually be a good idea for all of us to work together.

      --
      Peace, or Not?
    2. Re:Not surprising by Anonymous Coward · · Score: 0

      50% of the projects - I am a freelance Perl programmer - I am currently doing involve Perl on Windows (and one involves WxWidgets to create the GUI).

      I've been using Perl on Windows for a long, long time, and in my experience there is still a need for Perl programming - maybe because I am the #1 Perl programmer when you search using Google - and some customers of mine do use Windows.

      However, I am moving away from Windows for several reasons. But I've always coded Perl on Windows with great pleasure.

    3. Re:Not surprising by mr_mischief · · Score: 1

      Unix and Windows are different mindsets as much as different technologies. Perl fits the Unix mindset very well. That said, although I am both a Perl programmer and a Unix user, I'd rather have Perl on my Windows machine than mess with VB, ASP, or C#.

      I do, in fact, have Perl on Windows. I have ActiveState's packages for Perl 5.8 and 5.10, Strawberry Perl for 5.8 and 5.10, and Cygwin with its perl 5.8 as well.

      PowerShell is a nice system, and I'm starting to learn it because it's really powerful on a Windows system. However, why should I write something in PowerShell and Perl when I can write it once and run it on Windows, Linux, BSD, and OS X?

      If I was writing Windows-specific code that would never be ported, PowerShell is probably the way to go for quick-and-dirty code. C# would be the way to get Windows-specific code that kinda sorta works on Linux with Mono for more serious projects. However, writing to Perl (or Python or a few other languages) means I can take the code with me from one platform to another with minimal hassle.

  66. join them all together ... using perl by NotQuiteReal · · Score: 4, Funny

    ...and in the darkness bind them

    There, I fixed that for you.

    --
    This issue is a bit more complicated than you think.
    1. Re:join them all together ... using perl by shutdown+-p+now · · Score: 1

      No, sorry, that one is about PowerShell.

  67. Re:No one made it cause no one cares by gbjbaanb · · Score: 1

    oh you're a b*st*rd.

    you made me smile too and I don't even program Perl! :-)

  68. Re:No one made it cause no one cares by DuckDodgers · · Score: 1

    I prefer Linux to Windows. But for many companies, the cost of installing Linux (in time, not licenses) and retraining the staff exceeds the cost of the Microsoft licenses.

    Windows is a headache, but it's not enough of a headache at many places for them to migrate. I want that to change, but my personal preference and yours doesn't change the reality.

  69. Re:Perl6 is the problem by Abcd1234 · · Score: 1

    I'm now tossing up whether to learn Ruby or Python.

    Meh, six of one, a half dozen of the other. You either pick a seriously half-assed Smalltalk, or whitespace significance and broken closures. In the end it's basically a wash, IMHO.

  70. Re:Perl6 is the problem by jjn1056 · · Score: 1

    I have no opinion about the lack of of a finished and well distributed Perl6, but you are completely wrong to say that CPAN is not getting any more useful additions. Since 2000 the number of cpan modules has grown from about 5,000 to 14390 (you can see the count and other stats, such as the number of authors registered at http://cpan.org/) Also, some of the code I've seen in the past few years is among the best. For example Moose, (http://moose.perl.org/) is a full on meta object stack for Perl, and makes writing very clear OO code trivial.

    To answer the general question, "Where is IronPerl", I guess I have to say that most people in the Perl community are pretty die hard Unix people so unless we are getting paid to work on Windows supporting it is an afterthought.

    Also, the CPAN philosophy is to try to write stuff that runs everywhere, and an IronPerl would be something specifically for Windows, so that's not going to be popular.

    I'm not sure what you mean by lack of XML/Xpath support. There's probably a 100 modules on CPAN dealing with this.

    To be honest, I am not familiar with DBI::CSV, but I really don't see not being about to do joins on a text file to be a major defeat for a language. If you could give me an example of what you are trying to do I'd be happy to comment.

    --
    Peace, or Not?
  71. Re:Python is available by mr_mischief · · Score: 2, Insightful

    You've never had a development schedule written by a business person, have you?

  72. IronPerl. by miguel · · Score: 2, Interesting

    The Iron* family of languages are re-implementations from scratch of a language to run on top of .NET. This approach requires a large time investment to get it working as reimplementing a language and then tuning it to run fast is not a weekend hack.

    There is another option, to build bridges from a language to .NET. This is possible because .NET can be used as a library, Perl can host .NET and then create objects and send messages to objects living in the .NET world.

    For a language in continuous evolution like Perl, following the Iron* route is more difficult, and the second approach might be better.

    I believe there used to be a set of .NET bindings for Perl.

  73. Re:No one made it cause no one cares by mr_mischief · · Score: 1

    Suits who pick the technology are usually wrong, and seldom obeyed.

    Strawberry Perl and ActivePerl are both pretty nice packages. Many Win32 modules like Win32::OLE, Win32::API, and more in the Win32 and Win32API namespaces are perfectly usable.

    The places most qualified to answer specific questions are probably comp.lang.perl.moderated (or maybe comp.lang.perl.misc) and Perlmonks. I don't know too much first-hand about PerlGuru, but they do have a section specific to Win32 programming with Perl and I've heard some good things.

  74. More importantly.. by Barsteward · · Score: 1

    where is "IronMyShirt"??

    --
    "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
  75. Re:No one made it cause no one cares by haystor · · Score: 1

    The inexperienced tend not to get any code done in other languages. So is it really a bad thing that Perl let's someone get their project done poorly instead of not at all?

    Oh, and with all of Java's misdirections (or abstractions), while any one line may be readable, the program can be completely incomprehensible.

    --
    t
  76. Perl source is the problem? by ishmalius · · Score: 1

    Have you ever seen Perl 5 source code? It's a big disorganized mess. Many years of add-ons and patches have probably made porting it from C to a VM language less than it is worth. Perl on a VM would need to be developed from scratch.

    1. Re:Perl source is the problem? by outZider · · Score: 1

      Hence, Perl 6/Rakudo.

      --
      - oZ
      // i am here.
  77. Re:No one made it cause no one cares by mysticgoat · · Score: 1

    A correction is in order.

    PP suggests that Perl has been used by Unix sysadmins since Unix was in its "infancy". Unix was more than 16 years old when Perl v1.0 was released. In its first 1.5 decades, Unix sysadmins used various shell scripts and awk (forever an awkward language) to work their magic.

    <ramble>

    I agree with PP that Perl and Windows do not get along very well together, I think because of very low level philosophical differences over who should benefit from the resources available on a client's computer. Perl's philosophy is that as far as it is concerned, any user should have full access to all system resources, and the OS has the responsibility for limiting access to whatever is appropriate for a specific user through permissions and so on. Windows' philosophy has always been that the developer should have full control over all the client systems' resources and the user should have only the access that the developer chooses to expose. It comes down to money: the Windows approach supports licensing fees for Microsoft and for third party developers. It comes at the cost of the Registry "database", but the high maintenance and repair costs of the Registry are borne by the user, not by Microsoft or the 3rd party developers, so that's never been considered an issue.

    Coding perl scripts for WinNT was a big part of my career for several years. Many of these were one-shot programs to convert text output from some idjit's pet "database" into standardized data files that could be fed to properly developed and maintained spreadsheets or databases for further work. Others were scripts I did not allow anyone else to have access to, which mined a large legacy MUMPS database, anonymized, sanitized, and often summarized the data, and formated the results into .csv files for feeding to spreadsheets for various reports. This was usually because the legacy system had been designed to produce the yearly and quarterly reports that had been adequate in the slower paced world of a decade or so earlier, but we now needed monthly and weekly reports to manage personnel resources, costs, and safety concerns. I also wrote a handful of perl scripts that needed to be operated by others, but because WinNT's security features were arcane and inadequate, we couldn't safely put the Perl interpreter on any user workstations. I converted the scripts to executables with perl2exe, to better fit the Windows security model. This worked pretty well, but the need to find workarounds for some simple run-time Perl techniques that could not be precompiled into an exe was irksome.

    </ramble>

  78. Re:No one made it cause no one cares by martinw89 · · Score: 1

    No, I was very careful not to say that Perl was used since Unix's infancy. I said since large systems were in their infancy. By this, I mean since we started needing large systems for more than just the military or giant companies (like Boeing etc.)

  79. Reading the Portents by mkcmkc · · Score: 1

    As I recall, it was quite obvious to me around 1985 (when I first started paying attention to such things) that COBOL would be overtaken and die. Likewise, when I first started playing with Unix around that time, after years of VMS, it was completely obvious that VMS was finished.

    Now, it is quite true that both of these were very popular in the job ads of the day and many people used them and advocated for them. To this day they are still used. But they are also pushing up daisies in the sense that its clear that their future will be one of decline and death.

    Perl is dead, and has been for almost a decade. It may take many years for its inertia to spin down, but the die has been cast.

    --
    "Not an actor, but he plays one on TV."
    1. Re:Reading the Portents by imbezol · · Score: 1

      Wow, your insight was stunning... until I realized you could be talking about anything computer related, not just Perl.

  80. Re:Python is available by shaka999 · · Score: 3, Informative

    No, a Perl lover will jump in and say Perl is FAST to write. Its so easy to do so many things. I'm not talking large systems here, I'm talking things you need to do day to day.

    I've yet to find another language where I can process a text file 100 different ways with just a few lines. I really don't give a damn if anyone else can read or maintain my short scripts. There for me.

    --
    One should not theorize before one has data. -Sherlock Holmes-
  81. Re:Perl6 is the problem by jrockway · · Score: 1

    All the bright young things went into the death march that is Perl6 and CPAN stopped getting useful additions.

    That's not true. There are still lots of people working Perl 5 and CPAN modules. Since you've last checked, we've gotten Catalyst, DBIx::Class, Moose, and tons of other useful stuff. Most of this doesn't even compare to what other languages are offering. If you use Python or Ruby, you basically get Catalyst (Merb), but you don't get DBIx::Class (AR is a painfully bad joke) or Moose.

    There are also tons of other interesting projects being worked on by "bright young things".

    Or modern, complete XML/Xpath support.

    XML::LibXML

    Or a DBI::CSV which can do joins.

    There's more than one way to do it, of course, but just shove your CSV into a SQLite database (via DBD::SQLite) and enjoy having a real database instead of a text file. Of course, joins are very easy to implement yourself; I'd almost go so far as to use the word "trivial".

    But anyway, if you want this, please write it an put it on the CPAN, then we can all have it. That's what's made CPAN so valuable.

    --
    My other car is first.
  82. Re:Python is available by synthespian · · Score: 2, Interesting

    Just please don't make the argument Python is inherently more readable.

    It's not

    http://algebraicthunk.net/~dburrows/blog/entry/attachments/debsudoku.py

    http://www.blott-online.com/sudoku/sudoku-solver

    --
    Main difference between the BSD license and the GPL license: one is from California and the other is from Massachusetts
  83. Re:Perl6 is the problem by Anonymous Coward · · Score: 0

    Unfortunately, (as perl fan), Perl6 is the problem. All the bright young things went into the death march that is Perl6 and CPAN stopped getting useful additions. Two burnout cycles later, we still don't have Perl6. Or modern, complete XML/Xpath support. Or a DBI::CSV which can do joins. Or any other number of actually useful code bits.

    I'm now tossing up whether to learn Ruby or Python.

    Learn Ruby. As a Perl programmer I predict you'll love Ruby much more than Python. I've been converting some of my old Perl stuff to Ruby lately, and I notice a big performance jump too.

  84. Re:Perl6 is the problem by MoxFulder · · Score: 1

    Amen to that. I jumped ship from Perl 5 to Python about 1.5 years ago, and haven't looked back.

    There really isn't a lot of difference between the two languages in terms of what they can actually *DO*, it's just that Python does it more easily, more consistently, more readably, and with a broader and more coherent standard library. I'm a lot more productive in Python, and there is nothing it lacks. (Number crunching? Check! Perldl->Numpy. Date manipulation? Check!)

    Let me put it this way: If Larry Wall took a time machine back to 2002, and presented Python 2.6 as the brand new Perl 6, everyone would hail it as a brilliant but not excessive redesign, and he would be richly congratulated for the (ahem) brisk development schedule.

  85. Re:No one made it cause no one cares by Wdomburg · · Score: 1

    More specifically that quote is from Richard Dice, president of the Perl Foundation. Can't imagine why he would speak highly of Perl. ;)

  86. Re:Perl6 is the problem by FunkyELF · · Score: 1

    Don't know much about Ruby, but I find the whitespace significance very nice and makes reading existing python code very pleasant.
    If you indent your code properly anyway it shouldn't make a difference. Actually, you wind up not having to type out parenthesis or curly braces. And who likes looking at...
    }}
    }
    }

  87. Re:Perl6 is the problem by Anonymous Coward · · Score: 0

    You whine too much.

    There's more than one way to do it.

    If you want to do joins on data that you have in CSV files, just insert them into an SQLite database first.

    XML/XPath support: XML::XPath

    If you want to code .Net, use C#. If you want to use CPAN, use Perl. The two languages are getting more similar all the time, with each release of C# getting better.

  88. Re:No one made it cause no one cares by Wdomburg · · Score: 1

    Oh, and here, or more specificly here is one metric reflecting a significant drop in popularity for Perl relative to other languages.

    That isn't to say Perl is "bad" or going away any time soon. The huge installed base and extensive module repository ensures its longevity (and even as it wanes a larger job market) but as time goes on fewer new projects (both public and internal) are choosing Perl as the implementation language. It was never particularly strong as a desktop application language - Python seems the leader there - and it has long since been eclipsed by PHP as a web development language.

    Perl's strongest area is in it's roots as a quick and often dirty language used by administrators. Unlike developers admins are relatively unlikely to go language shopping and most of the deficiencies of Perl are relatively unimportant for that type of work.

  89. Re:No one made it cause no one cares by RichDice · · Score: 1

    I resemble that comment!

    Seriously, the reason why there is no "IronPerl" is that no one with the capability to do the port of Perl 5 to .NET has had the motivation to do so. As was previously commented upon, the bar to do this kind of work is, unfortunately, higher with Perl than with other languages in its class (e.g. Ruby, Python) due to the evolutionary creation & implementation of the Perl 5 language. Python has a language spec off of which implementations can be built in a clean-room fashion. Perl has a language implementation which is its own spec. This leads to significant gnarly-ness when it comes to doing subsequent implementation, be they on .NET, the JVM or on a Lisp Machine. Still, it's not impossible. If someone made a reasonable effort at it then it could happen. (And Microsoft could well pick up the tab to someone who showed sufficient talent and initiative too. The IronRuby implementation is the product of one guy who started it as a personal project. And then Microsoft noticed and hired him to keep doing what he was doing.)

    Perl 6 addresses this problem in that Perl 6 is a spec. (Well, it's getting really damn close to being a completed spec.) There are no completed implementations of it but several are in the works. Pugs is a Haskell implementation effort. Rakudo is one built on the Parrot VM. There's the SMOP implementation effort too. Larry Wall is working on one that will use the Perl 5 VM to implement Perl 6. I'm sure we'll have implementation teams working on JVM and .NET implementations soon enough too.

    If all you want to do is Perl 5 on Windows there are a few ports -- see ActivePerl and IndigoPerl.

    Cheers,
      - Richard

  90. Re:No one made it cause no one cares by chromatic · · Score: 1

    Why would anyone trust TIOBE's results? They don't reveal their research methods, and no one has been able to reproduce their findings. That's not good science. That's push polling without the telephone.

  91. Re:No one made it cause no one cares by imbezol · · Score: 1

    I think that page is more a testament to the admins of the servers and the datacenters they are in than the OS they run. It's pretty obvious from the page that there are only 7 groups of servers there.

  92. A bit of pussy by Anonymous Coward · · Score: 1, Funny

    So you nerds are getting a little pussy after all!

  93. Strawberry Perl by fertringer · · Score: 1

    at OSCON this year, I seem to recall a talk on "Strawberry Perl" http://strawberryperl.com/ - apologies as I can't remember the developer's name, but basically if I recall correctly this is meant to be a quick easy way to get perl working on Windows boxes, fully CPAN compliant. I believe he was working on "Chocolate Perl" as well. Not sure if this will work with what you want but it should be a start. The problem with active perl is that it is no longer being supported.

  94. Re:Perl6 is the problem by Abcd1234 · · Score: 0, Flamebait

    but I find the whitespace significance very nice and makes reading existing python code very pleasant.

    Until you need to move a block of code from one level of scope to the other and discover your editor can no longer help you get the indentation right because the language doesn't provide block scope delimiters. And if you do try to use the editor, it can actually introduce semantic bugs by accidentally placing lines of code at the wrong lexical level. Awesome.

    Sorry, but no thanks. I have absolutely no problems formatting my code properly and don't need a language enforcing it's standards on me (in fact, any programmer that *does* need a crutch like that should be drummed out of the industry for the hack they are). Meanwhile, I regularly use my editor for automatic indentation, and any language that makes that impossible (or unnecessarily difficult) is out of the running.

  95. Re:No one made it cause no one cares by pdbaby · · Score: 1

    So is it really a bad thing that Perl let's someone get their project done poorly instead of not at all?

    It depends what their code's doing - if they're automating some admin task then sure, it's better to get some code written. But if it's for something that multiple programmers are/will be working on I'd say yes, inexperienced Perling can be a very bad thing. Also because you or I might have to maintain it :-)

    That said, I learned to code in Perl and I'm sure I wrote more than my fair share of unmaintainable, unintelligible code (and, I'm sure, still do!)

    You're so right, though, that incomprehensible programs are easy to write in any language.

    --
    Global symbol "$deity" requires explicit package name at line 2. - If only $scripture started "use strict;"
  96. Re:No one made it cause no one cares by Wdomburg · · Score: 1

    They don't? The methodology isn't perfect, but we're not talking about calculating tolerances for a bridge or determining what hunk of tissue to excise during brain surgery here. In other words, a blunt metric is all we're looking for (and is certainly more reliable than a quote from an individual with a direct interest in promoting the language).

    And it's not like there aren't corroborating sources like Google trends, Sourceforge statistics (a bit old but still relevent), book sales and so forth.

  97. The real tragedy was by plopez · · Score: 1

    Perl made windows usable, by bringing a real power tool to NT. I sure it would have slowed adoption if it had not been not available since NT had such a lackluster scripting system.

    --
    putting the 'B' in LGBTQ+
  98. Re:Python is available by mixmasta · · Score: 1

    Other than some poor choices for string formatting, I don't find that python example particularly hard to follow.

    The perl above seems to be as streamlined as possible, nice to know it can be done.

    --
    #6495ED - cornflower blue
  99. Re:Perl6 is the problem by Abcd1234 · · Score: 1

    Apparently some mod out there doesn't understand that "Flamebait" does not, in fact, equate to "I disagree with this guy"...

  100. Re:No one made it cause no one cares by Anonymous Coward · · Score: 0

    "Lowest defect rate..."

    Of course, there are different measurements, but:
    http://scan.coverity.com/rung2.html

  101. I vote *shudder* stick with the COM by Marsala · · Score: 1

    At the end of the day, the COM stuff isn't going anywhere. The .Net APIs provide a kind of wrapper around the system code and usually molest the unmanaged stuff with P/Invoke... they don't replace it. In fact there's some stuff the managed APIs still can't get to (mostly at the system level), and a big reason why you still see jobs posted for VB6 developers out there.

    And while I haven't spent much time with IronPython and IronRuby, I'd imagine that the code you produce still must adhere to .Netisms and use .Net core objects to get things done. If there was an IronPerl, there probably wouldn't be much diff between learning how to use it and learning another lang already supported by the CIL.

    Finally: perl AND COM? That's not Sparta... that is madness. :(

  102. Re:Perl6 is the problem by metamatic · · Score: 1

    Agreed. I'd add that in addition, in my view Perl 6 was heading in the wrong direction.

    What I wanted from Perl 6 was a cleaned-up Perl with fewer linenoisy operators, a cleaner OO programming syntax, and so on.

    When I saw the Apocalypses citing code like &::('*')::($alice ~ '_misc')::Bob::doit(1,2,3) and @a =:= @b (yes, verbatim examples from Apocalypse 12), I realized that Larry Wall's idea of what makes a good programming language was fundamentally at odds with mine.

    Discussing it with some unnamed senior figures in the Perl community, I was quietly informed that a lot of people were looking at Ruby. So I looked at Ruby, liked it, learned it. I've rewritten most of my Perl code as Ruby now. The result is usually about half the speed, and about 10x as readable. That, to me, is a good tradeoff.

    (I wonder how many more programmers Python would get if they simply added a Ruby-like "end" keyword to end blocks with.)

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  103. Re:No one made it cause no one cares by Anonymous Coward · · Score: 0

    If I wrote a sentence like:

    "Of all the PC operating systems, Windows offers the biggest installed base of applications, of code, of integrated systems, of skilled programmers" (This is of course true by orders of magnitude).

    I would get hundreds of replies that say in essence:
    I'm smart so the system I use is much better than Windows despite its popularity. Windows is popular because users are fools and have been duped.

  104. Re:No one made it cause no one cares by tjwhaynes · · Score: 1

    Perl has a language implementation which is its own spec. This leads to significant gnarly-ness when it comes to doing subsequent implementation, be they on .NET, the JVM or on a Lisp Machine.

    ObCorollary: only Perl can read Perl.

    This actually looks like a problem - I went looking to see if there was anything that could read Perl code and do static analysis, etc. I was interested in call-graphs and similar metrics. At first I found some rough stuff but basically the field was empty, at least as far as external tools were concerned.

    Then, epiphany. I stumbled on the "only Perl can read Perl" and discovered a whole new world - the Perl compiler and the profiler hooks in Perl allow one to act on pretty much anything you could dream of.

    So Perl is quite capable of instrumenting Perl code. But it is alone in that respect - at least until Perl 6.

    Cheers,
    Toby Haynes

    --
    Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
  105. Re:Perl6 is the problem by chromatic · · Score: 1

    ... yes, verbatim examples from Apocalypse 12...

    Here are some random phrases from Gravity's Rainbow, one of the finest works of 20th Century English literature.

    crimson, hot, squeak-stockinged slavegirl "gam"

    a woman or an entente of nations

    You can keep Der Bingle too a- And that darn "bu-bu-bu-boo"

    allowing the cosmic Serpent, in the violent splendor of its scales, shining that is definitely not human, to pass

    Thus, English is also unmaintainable and Pynchon is a terrible hack, at least when you take random bits and phrases out of context.

  106. Re: hyperbole: Perl is antique by Anonymous Coward · · Score: 0

    If Perl is antique, then I suppose C is absolutely ancient. Fortunately, hyperbole doesn't keep Perl, C, or even, dare I say, Cobol, from being used, today, tomorrow and well into the future.

  107. Re:Python is available by Kazoo+the+Clown · · Score: 1

    Now a Perl lover will jump in and say that you can write Perl so that it's maintainable, and you can write Python or Ruby so that it's unreadable. It's true, but both are hard to do.

    If you're spending that much time concerned with how effective your program languages are at prohibiting your programmers from producing unreadable or unmaintainable code, I'd say you should look to hire some better programmers.

  108. Actually it isn't a PROBLEM by Giant+Electronic+Bra · · Score: 1

    In fact the way OO is implemented in perl is nice, you can do all sorts of handy things that are nearly impossible, even in other dynamic scripting languages.

    As for the 'plumbing hanging out' it actually doesn't in practice 99.9% of the time. I mean materially what is the big difference between notations like:

    this->{attributename}; # perl

    and

    this.attributename; // most anything else

    And ouch, you have to call 'bless', but actually that gives you considerable flexibility since you can choose what package to bless to, and even rebless an object to a (possibly totally different) class at run time. Purists will tell you how HORRIBLE this is, but when was the last time you tried to stuff an X into a variable that was supposedly a Y? It just isn't that big of a problem, and if it IS something to worry about, you can easily add type checking to any variable via a tie.

    There are a couple of minor annoyances, like the lack of implicit lexically scoped variables for parameters which might be nice to do away with, but again if you look at the syntax overall it makes little difference.

    Finally if you are using a package (class) which produces blessed references (instances) as long as you use the defined API provided by the developer it should hide anything like 'is this class implemented using blessed hashes or blessed arrays'. Why would you care? How many of you have used CGI.pm for years? Does ANYONE here know off the top of their head if an instance is a hashref or not? I seriously doubt it.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:Actually it isn't a PROBLEM by dolmen.fr · · Score: 1

      I mean materially what is the big difference between notations like:

      this->{attributename}; # perl

      and

      this.attributename; // most anything else

      Too big difference. This is visual pollution which makes code less readable.

      And ouch, you have to call 'bless', but actually that gives you considerable flexibility since you can choose what package to bless to, and even rebless an object to a (possibly totally different) class at run time. Purists will tell you how HORRIBLE this is, but when was the last time you tried to stuff an X into a variable that was supposedly a Y? It just isn't that big of a problem, and if it IS something to worry about, you can easily add type checking to any variable via a tie.

      I never tried that in Perl. I have not written much OO Perl code. And not yet implemented a complex class hierarchy. But knowing that I can do anything, which also means break all and have hard to debug problems is not in my dreams.

      There are a couple of minor annoyances, like the lack of implicit lexically scoped variables for parameters which might be nice to do away with, but again if you look at the syntax overall it makes little difference.

      The difference is already too much for me: "my $self = shift;" in every method is a pain to write and read.

      Finally if you are using a package (class) which produces blessed references (instances) as long as you use the defined API provided by the developer it should hide anything like 'is this class implemented using blessed hashes or blessed arrays'. Why would you care? How many of you have used CGI.pm for years? Does ANYONE here know off the top of their head if an instance is a hashref or not? I seriously doubt it.

      You're right. I don't care. As a class user. But also as a class writer.

      Anyway, Perl 6 is the language I want. So I'm helping as I can: submitting tests, and small Rakudo patches.

    2. Re:Actually it isn't a PROBLEM by Giant+Electronic+Bra · · Score: 1

      Oh, I think it will be interesting to see what all the P6 people come up with. I think they made a big mistake though by writing a whole new VM. There are some REALLY excellent VMs they could have at least adapted to their use. Things like JSR threading that the FORTH community figured out decades ago.

      So I have to wonder at the thought process of a team which makes that monumental a mistake. Just my opinion, but I am writing applications and not theory and P5 still more than fills the need.

      Heck, I basically duplicated ALL of the major functionality and a good bit of the 'add-on' stuff that Maven2 does in a bazzillion lines of java in perl in 30 days. Actually EASIER to rewrite it in perl than maintain 30+ POM files. Nah, Perl is still by far the glue of choice.

      --
      "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    3. Re:Actually it isn't a PROBLEM by chromatic · · Score: 1

      So I have to wonder at the thought process of a team which makes that monumental a mistake.

      It's pretty simple, actually. Which existing VM, if any, is sufficiently free that we can distribute it under the Artistic License, is sufficiently dynamic that we don't have to build our own method dispatch system on top of it, is sufficiently portable that it builds and runs on most of the platforms that Perl 5 does, is sufficiently hackable that we can attract enough developers to produce Perl 6, and is sufficiently open to changes required to run Perl 6 effectively?

      In 2001, the answer was... not much. In 2006 or perhaps 2005, LLVM might have been a sufficiently attractive option.

  109. Re:Python is available by mbrod · · Score: 1

    This is how I see most of my colleagues (and myself) using it. Looking at it as a custom tool(s) in their toolbox not so much as part of the public toolbox.

    For the type of tasks I use it for nothing else comes close. I still use it on OpenVMS, Linux and Windows.

    I wouldn't build a large system that runs on Perl, but every large system I build gets done quicker and is maintained better because of Perl.

  110. Wrong is not strong enough... by Giant+Electronic+Bra · · Score: 1

    Wrong just isn't a strong enough word for this.

    There are 250 BILLION lines of running COBOL code today. In fact there is more COBOL running out there than all the other code in all other languages combined (at least counting just business applications, but even counting everything this may be true). Many of them are truly gargantuan pieces of software, dwarfing things like Linux kernel in both size and at least some measures of complexity.

    COBOL is in fact not dead at all, and is a .NET supported language, even MS knows better than to shun it. There is a real need for COBOL programmers as well, and there has been for several years now a concerted effort by industry to increase the number of people trained in COBOL programming. Believe it or not COBOL supports OOP and pretty much all the other commonly seen features of other procedural languages.

    Likewise Perl is FAR from dead. There are vast quantities of web application code written in Perl.

    Neither may be considered by 'cool' by the self proclaimed 3L1t3 hackers of the world, but if you think businesses really care much about that, you'd be mistaken.

    Not to say I think everyone should code in or would LIKE coding in either COBOL or Perl, but calling either one of them dead is just contrafactual in the extreme...

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:Wrong is not strong enough... by mkcmkc · · Score: 1

      Wrong just isn't a strong enough word for this.

      There are 250 BILLION lines of running COBOL code today. In fact there is more COBOL running out there than all the other code in all other languages combined (at least counting just business applications, but even counting everything this may be true)

      I'm skeptical about this number, though I don't doubt that there's quite a bit of COBOL still live. And, of course, COBOL is extremely verbose.

      Actually, though, I don't mind COBOL's existence. Maybe when I reach my dotage I'll take on a second career as a COBOL programmer. I've always regretted that I just missed the punched card era (I did once work with "virtual" punch cards), and I could see it as kind of meditative.

      I really don't want to go back to Perl again, though...

      --
      "Not an actor, but he plays one on TV."
    2. Re:Wrong is not strong enough... by Giant+Electronic+Bra · · Score: 1

      "Likewise, Bruce Hogman provided a vertiable trove of COBOL information. According to Gartner, Bruce reports, there are 250 billion lines of COBOL source code being used, with 15 billion new lines each year. A major AAA national company has some 35,000 COBOL modules plus supporting COPY books and so on in its inventory. A major airlines has 848 COBOL modules in its crew management system with some 3,000,000+ SLOC of code. Merrill-Lynch runs 70 percent of its daily business on COBOL systems."

      -- http://www.drdobbs.com/blog/portal/archives/2006/10/cobol_and_then.html

      I can't say how Gartner comes up with the 250 billion number, but it is one which has been often repeated.

      Its funny, see I feel the same way about the other 'P' languages, why should I need to learn another language which does EXACTLY the same things as the one I am already a master of? There is just no compelling reason to use Python, PHP, or Ruby vs Perl. People being what they are, they will always reinvent the wheel, but frankly had all that effort gone into Perl development I have a feeling we'd have one single much better implementation of dynamic scripting...

      --
      "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    3. Re:Wrong is not strong enough... by mkcmkc · · Score: 1

      Its funny, see I feel the same way about the other 'P' languages, why should I need to learn another language which does EXACTLY the same things as the one I am already a master of? There is just no compelling reason to use Python, PHP, or Ruby vs Perl. People being what they are, they will always reinvent the wheel, but frankly had all that effort gone into Perl development I have a feeling we'd have one single much better implementation of dynamic scripting...

      I'm not entirely unsympathetic to this point of view. When I was younger I was up for any new language, but as I get older I'm definitely noticing a bias against the new, because of the risk that the effort won't pay off for me.

      That said, for me, in terms of the aesthetics of programming languages, Python is so much nicer than Perl that I really have little choice.

      I can understand your lament about the "wasted effort" of creating new languages, but the problem is that Perl's fundamental syntax is its most serious problem, and no amount of effort can change this. I hoped for a while that perhaps Perl would be modernized, but Perl 6 mostly heads off into the wrong direction, and I just don't see myself learning the 1800 page "Nutshell" book that it will require...

      --
      "Not an actor, but he plays one on TV."
    4. Re:Wrong is not strong enough... by Giant+Electronic+Bra · · Score: 1

      LOL, well, in some respects I CAN see how people who have spent a lot of time with other languages get a bit frustrated with Perl syntax. I don't think it is because it is BAD, just certain aspects of it (and the typing system it reflects) are subtly different semantics than what people are used to.

      One problem with Python though is just the whole whitespace issue. Not that I think it is particularly a big deal in terms of just writing code, but have you ever tried autogenerating Python? That whitespace can be a royal PITA... lol.

      My feeling overall is that nits about one syntax vs another (assuming they are equally expressive) is really missing the whole point of software engineering. The actual authoring of code is such a trivial part of the whole process of successfully developing an application for someone. So I just have little patience for the language wars.

      --
      "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    5. Re:Wrong is not strong enough... by mkcmkc · · Score: 1

      I have not generated Python source before, but I don't think it would be particularly difficult. I believe it's exactly the same as generating indented C. Instead of opening and closing braces, you generate EOL characters, and for both (indented) C and Python, you'll need to track indentation depth.

      The syntax issue is not a minor thing for me. The fact that even function argument passing seems to be tacked on, rather than designed in, is a serious problem for me. Likewise, the fact that one cannot know how to parse the expression "x +2" (is that a unary or a binary '+'?) without knowing the definition of 'x' seems like a serious flaw in Perl's syntax.

      Perl is in principle at least as powerful as Python, but its skin is just really unpleasant, to me.

      --
      "Not an actor, but he plays one on TV."
  111. How long after perl6 works completely... by sam_vilain · · Score: 1

    Will people still be saying it's vapourware? :-)

    --

  112. The simple thing you're missing is Parrot by sam_vilain · · Score: 1

    Parrot is a virtual machine that pre-dates .NET and has many of the similar objectives. Probably the reason that no-ones put PPI and .NET together into something like IronPerl is that there are more interesting projects around, like JIT conversion of .NET bytecode to parrot bytecode. Then who needs Mono :-).

    --

  113. Tell him he's a douche by DrSkwid · · Score: 1

    > A friend asked me today about using some Microsoft server components from Perl.

    fuck him off, he's no friend

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  114. Re:Perl6 is the problem by metamatic · · Score: 1

    There's a difference between a fragment of an expression in English, and what's supposed to be an entire meaningful expression in Perl.

    And if you think the Perl examples are unclear and ugly because of lack of context, you have ENTIRELY missed the point.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  115. Re:No one made it cause no one cares by mysticgoat · · Score: 1

    You and I apparently have different definitions of what a large system is. In the 1970s Unix was being used on minicomputers that were running university campuses, banks, point of sale systems, and so forth. Which to my mind were large systems. They certainly required the full time attention of a sysadmin. Who had to make do without Perl until it finally came along in the late 1980s.

  116. Re:Perl6 is the problem by chromatic · · Score: 1

    And if you think the Perl examples are unclear and ugly because of lack of context, you have ENTIRELY missed the point.

    I think you believe they're "unclear and ugly" because you know don't know Perl 6, in the same way I have trouble understanding Stanislaw Lem's Solaris because I don't even know the Cyrillic alphabet. Your original post jumped around between "I find advanced Perl 6 constructs difficult to read despite never having programmed in the language" and "My Ruby code is more readable than my Perl 5 code", so I may have missed your point.

  117. Re:BOOBIES!! by nog_lorp · · Score: 1

    Also, at the age of 8 he was an active member of the Weatherman's society with Bill Ayers.

    Just a small correction though, oreo is a little over 2/3 black unless it is doublestuffed.

  118. Re:Perl6 is the problem by metamatic · · Score: 1

    If you're going to dismiss any criticism of Perl 6 from someone who doesn't program in it, then you've dismissed *all* criticism of Perl 6. Well done.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  119. Re:Perl 6 is the problem by chromatic · · Score: 1

    You made a hasty generalization. I dismiss all "It's hard to read!" criticisms from people who don't know the language.

  120. Python + ctypes by J.J. · · Score: 1

    Python + ctypes

    load the DLL yourself direct from python, get a pointer to the function and use it, from python, the same any other windows programmer.

    zero reliability on frameworks and included in the main python distro for 2.5 and above.

  121. Anonymous Coward by Anonymous Coward · · Score: 0

    how about this?
    http://search.cpan.org/~yamato/Win32-CLR/

  122. Re:Incredible moment by Anonymous Coward · · Score: 0

    No I am a winner. You are the loser since you get modded down to (-1, Troll) and suffer Karma point damage. Go me!! :)

  123. Re:No one made it cause no one cares by ggvaidya · · Score: 1

    If all you want to do is Perl 5 on Windows there are a few ports -- see ActivePerl and IndigoPerl.

    And, of course, the understandably famous Strawberry Perl. I currently work on Windows servers which run ActivePerl as CGI, and it all works peachy, but it's nice to know we have other options to fall back on if ActiveState lets us down.

  124. Re:Perl6 is the problem by shutdown+-p+now · · Score: 1

    I'm now tossing up whether to learn Ruby or Python.

    As usual, the answer to any such question is "both". It's not at all hard, as many concepts are shared. Both have something to bring to the table as tool languages, and both have great potential on the market (the indicator, for me, is that both Sun and Microsoft have their own actively developed and pushed implementations of both of these languages).

    A programmer should be able to write a Web app in an OO-language and MVC framework of his choice, write a parser in Haskell, write a distributed system in Erlang, write heavy yet fast number-crunching code in template C++, and write a script to automate some daily task in any shell language popular on his platform. Specialization is for code monkeys :)

  125. Re:No one made it cause no one cares by Count+Fenring · · Score: 1

    Perl is Lisp, but without the macro facility.

    Hmmm... but is "Lisp without the macro facility" really Lispish?

    Yes, Perl shares anonymous first class functions. But so do JavaScript and an number of other languages. What everyone talks about as the defining feature of Lisp is programmatic redefinition of the program at runtime. While you can theoretically do this in Perl, it's so far from being easy that I don't think it can really be called a language feature. Add to that Perl's incredible verbosity and plurality of specific features...

    I guess what I'm trying to say is, you can program Perl like it's a crippled version of Lisp, but only by ignoring a great deal of the language's basic structure.

  126. Re: hyperbole: Perl is antique by shutdown+-p+now · · Score: 1

    The difference is that C, for all its antiqueness (and yes, it is quite obviously an antique language in so many ways), is still the reigning king in its niche because there were no successful contenders to supercede it. Not so for Perl.

  127. Just keep honking - I'm reloading ... by wombat21 · · Score: 1

    Aah, here we go again - Perl bashers coming out of the woodwork, and the usual mantra being repeated ad nauseam : line noise, unmaintainable, doesn't scale etc etc. I have used Activestate Perl on Windoze, but my first love will always be Perl on a *nix box. I earn my living writing Perl day in and day out (yep, they actually pay me real money, and my credit is accepted all over town - go figure) and I enjoy it. I maintain my own code and code written by other Perl programmers : you take a lot more care when you know someone else may have to troubleshoot what you have written. I also like Python (actually coding as opposed to just talking about it). Beating up on the other guy's language/toolkit/methodology really hasn't gotten us anywhere : please don't judge 20 years of Perl on the 500-line nightmare your sysadmin wrote after he realised that his 3000 line Bash script was a piece of sh*t. As for Perl being an 'antique' language, I believe that there are still folk out there coding in C and that new-fangled C++ upstart, although those languages don't seem to have that aura the cool kids are looking for these days. I guess we need a video of a guy creating a Wiki with C in 20 lines of code.

  128. Re:Perl6 is the problem by jbellis · · Score: 1

    I guess you missed the 9000 posts where chromactic replies to any perl6 thread with the logic that "we have monthly builds, therefore perl6 is out and you _can_ program in it."

    the mind boggles.

  129. Re:Python is available by Schraegstrichpunkt · · Score: 1

    If you're spending that much time concerned with how effective your program languages are at prohibiting your programmers from producing unreadable or unmaintainable code, I'd say you should look to hire some better programmers.

    How do you expect anyone to actually do that? Have you ever tried to find really good programmers? There are a few around, but they don't exactly grow on trees. Remember: half of all developers are below the median skill level.

    And why bother? Most projects don't need your rock star programmers (if you have any) to do the bulk of the work.

    Furthermore, I haven't seen too many brilliant programmers complain seriously about Python (well, they do, but it's about how hasattr() swallows KeyboardInterrupt and about the str/unicode duality). It seems like one way to weed out idiot programmers is to see if their "WTFOMGwhitespace!!!" stage lasts too long, or if they still like PHP after using it for a few months.

  130. Re:Perl in decline because of Perl6 shadow by lpq · · Score: 1

    Perl is in decline because everyone thinks it is "going away" to be replaced by "perl6" which is a different and incompatible language.

    It's almost like Larry, as initial creator of Perl, decided to kill the language, making 'Perl6' one big long suicide project. It's more than a bit sad.

    Though last I heard Guido was trying a smaller rendition of the same by going for a new, incompatible version of Python -- but too many people are into the religion of python (vs. religion of Guido) unlike in the perl community, where Larry managed to get most of the language supporters to drink his Kool-Aid.

    With Perl as it is known today having "no future" (i.e. it's future is to be replaced by a new language bearing its name), its no wonder it's momentum is going south in a big way.

    It's very sad, since Perl served a purpose python never will -- short, 'one-liner' scripts that took the place of sh+sed+awk+tr (etc). A perfect replacement for the cornucopia of unpronounceable unix command line tools.

     

  131. Re:No one made it cause no one cares by DragonWriter · · Score: 1

    Perl is Lisp, but without the macro facility.

    Having a "Lisp without the macro facility" is like having a Porsche 911 Turbo without the engine.

  132. Re:Python is available by Anonymous Coward · · Score: 0

    Stop Bogarting the scripts man....

  133. Re:Perl6 is the problem by chromatic · · Score: 1

    the mind boggles.

    I know! The epistemological/ontological gyrations required to argue that Perl 6 is vaporware make my head hurt too.

    You're welcome to download any of the 20 previous monthly Parrot releases and write and run Perl 6 code with them, though we've only had a binary called perl6 for the past nine or ten.

  134. Yeah, well, it would be a pointless debate in the sense that it is well and truly water under the bridge at this point, but there WERE choices. We could argue about the technical merits of different VMs, but there were choices in 2001. Have been for 20 years before that for that matter. Pointless to get into it at this juncture.

    The proof will be in the pudding in any case. Personally I think P6 missed the window of opportunity unfortunately.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
  135. How about powershell by gladish · · Score: 1

    http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx At first I thought we finally had a real shell on windows, but we don't. Once you get used to it, it is much nicer than the cmd shell. You can access .NET/COM stuff from a powershell script. e.g. PS C:\Users\jake> $now = [DateTime]::Now
    PS C:\Users\jake> [Console]::WriteLine($now)
    10/10/2008 10:44:10 PM
    PS C:\Users\jake>

  136. Re:Perl6 is the problem by Henkc · · Score: 1

    Thanks for this informative comment - I haven't had the time to try Python yet, but now I won't bother.

    I agree wholeheartedly - having a language FORCE you to indent/whitespace in this fashion is not only restrictive, but fucking stupid.

    I'll stick with languages such as C/C++, Perl, PHP, etc, which allow you the freedom to structure your code the way you want to.

  137. Re:Perl6 is the problem by FunkyELF · · Score: 1

    Sounds like you're using the wrong editor. If you move pieces of code around in languages other than python you should be changing the indentation too....so your editor should provide an easy way to do that.
    Personally I use nedit where I can select a rectangular area and delete it to outdent. To indent I usually create a macro. space space space space back back back back down...repeat. My editor is not that feature rich and doesn't have buttons for indenting and outdnting and I do fine.
    If using proper indentation is so hard for you that you won't try Python I hope I never look at your code in other languages.

  138. Re:Perl6 is the problem by FunkyELF · · Score: 1

    Thanks for this informative comment - I haven't had the time to try C/C++ yet, but now I won't bother.

    I agree wholeheartedly - having a language let you have the option to use curly braces is fucking stupid.

    I'll stick with languages such as Python, which is consistent.

  139. Re:Perl6 is the problem by Anonymous Coward · · Score: 0

    :-)))

    Haven't done much programming, have you?

    Let me guess, you're fresh out of school and you're using Python cuz it's koool, w00t, and all that juvenile shit?

    You remind me of the dingdongs who sang songs of praise about Pascal in years gone by... Academic rectitude doesn't cut it in the real world. :-)))