Slashdot Mirror


On Perl 5.6

bryan schwab writes "Perl 5.6 is in development, here is a list of all the new features" The article is an interview with the "Patch Pumpkin" - one of the guys from ActiveState in charge of putting together the development release. Seems there is a lot planned for the next release.

16 of 135 comments (clear)

  1. Re:parsing features by Tom+Christiansen · · Score: 2

    I think you'll find that either the Parse::RecDescent module or the Parse:Yapp module will do what you want. They're really very neat, although I've only ever spent much time reading up on the first of them.

  2. Re:Patch Pumpkin by rjray · · Score: 2

    Also, the guy worries me. He works for ActiveState. Blech.

    Sarathy's involvement with Perl well pre-dates his employ at ActiveState. His working at ActiveState is what led to the two very diverse Win32 ports of Perl to combine. If it seems as though there is undue amount of attention being spent on WinNT/95/98 versions of Perl, it's because the others are for the most part stable. And the internal work being done is to the benefit of the Perl core, not just one port or the other.

    rjray
  3. Be Not Afraid! by Tom+Christiansen · · Score: 4
    Once again, the rabble rousing has begun. For those of you who don't know me, I completely assure you that you'll never find anyone more anti-MS than me -- although many of you are at the same level. There is a FAQ that explains why your fears of MS involvement with Perl are unfounded. You could also search the perl5-porters mailing list. It's on DejaNews under the newsgroup perl.* (I forget exactly) and also has its own search archive. Search for articles by Sarathy (that's gsar) about this.

    If you were on p5p, I'm quite certain you wouldn't be joining the other Illuminati wannabes with these unsubstantiated delusions of evil conspiracies and take-overs. Please try to simmer down, and do a little research. You'll see that all is well. Or talk to one of us directly if you'd prefer.

  4. Re:Perl port to Win32 by scrytch · · Score: 2

    Oh those evil dastardly fiends, "taking over" by porting it to their platform. And we all know that Perl never had any platform-specific extension modules available until the Supervillians snuck in and started trying to poison it, nosirree.

    You are truly sad, but thankfully irrelevant. I'm coming to realize that one of the real strengths of free software that it not only survives the fickle demands of the marketplace, but also raving paranoid delusional zealots who feel the product needs or demands their evangelism.

    --
    I've finally had it: until slashdot gets article moderation, I am not coming back.
  5. Re:Perl port to Win32 by Trepidity · · Score: 2

    How is porting perl an attempt to "take it over"? An increase in the platform support for Perl is definitely a Good Thing (tm).

  6. The truth by gnat · · Score: 4

    0) Tsk tsk on those of you who believe everything Microsoft say. When they said they were paying Activestate to make Perl work better on NT, you forgot to translate that back into honest English: they're paying Activestate to implement fork() on NT so that NT can become more like Unix (a slower buggier more crashprone Unix). Yes, Microsoft for "bring up to baseline of minimum acceptable functionality" is "make it work better". Another way of saying this is "make NT suck less for Perl users". Perl is all about making your OS suck less.

    1) Perl's version numbering is changing because major changes in functionality (e.g., the introduction of threads and a compiler) were hidden in the thousands decimal point of the version number. Hopefully this new numbering system will make it more obvious that things have changed. It's a small cosmetic change, not technical, but it's something people wanted.

    2) Lexical warnings. Perl's philosophy is "there's more than one way to do it". With warnings as they were, there were only two ways to do it: all warnings enabled, no warnings enabled. Now you can say "I know it looks to the compiler as though I only use this variable once, but don't issue a warning". If you don't see yourself wanting to use it, don't panic--unless you explicitly use the new warning doodads, your programs will emit as few or as many warnings as before.

    3) Sarathy is a smart smart guy. He's not an NT flack. He's a smart Unix guy who happens to be employed at Activestate because that's about the only place a guy can be hired to work on the Perl internals. He does far more work on the Perl core to benefit everyone than he does Windoze-specific work. If you're going to be at the Perl+Apache+Linux+... uberconference that O'Reilly are organizing, I urge you to seek him out (he won't be hard to find) and have a talk about your concerns. He'll be the first to agree that NT sucks hard.

    4) Unicode reading (via UTF8) is implemented as an add-on module, so that only the part of your program that needs to know about Unicode takes any speed hit. It's also simple to turn programs that used to read ASCII text into programs that read Unicode text: just add "use utf8" at the top. We don't anticipate slowdowns anything like those that one Slashdot reader reported in Tcl.

    5) The Unicode support only extends to reading and processing text, not to Perl's interaction with the system (filenames, error messages, etc.) I believe that Windows deals with UTF in the same way that many Unices deal with long files: a separate set of OS functions are provided. The Unicodification of Perl is being extended to use these parallel functions, if present. Generalizing this is hard because, like Unix and long files, everyone does it different. That doesn't mean that Sarathy's work precludes this happening for any other operating systems that provide Unicode support like this. In fact, having the first work done will make support for other operating systems easier. And the best bit is that Microsoft are paying for it.

    I don't know about you, but I'm all for fleecing Uncle Bill.

    Nat

    1. Re:The truth by jjohn · · Score: 2
      Yeah, yea. Don't you see? It is the the first step. Sure they are Paying--that is what it all about. Sure, so NT becomes...

      Perl is perl. The source is open. If MS wants to make "Visual Perl", they can. If *you* want to make Visual Perl, you can.

      Java was a closed source attempt to topple M$. It has failed so far. Perl doesn't have that limitation. Come on, you *cannot* ignore history.

      Sendmail has been around since 1981. Microsoft could have simply repackaged it (in fact, there is a sendmail win32 port somewhere on the M$ site. I forget where). Instead, we have been inflicted with Exchange.

      Open source is the M$ killer. It goes against every Mr. Gates believe about business and computers. If his company choose to finance Perl, there is no harm to Perl. VB, on the other hand, might take a (small) hit. Happy Perling.

  7. Re:If you can... by kip3f · · Score: 2

    Perl's expressions are far from regular. They are NP-Complete.
    --
    Man is most nearly himself when he achieves the seriousness of a child at play.

    --
    ****Gfx Scrollbar Special case hit!!*****
  8. Re:Perl port to Win32 by Trepidity · · Score: 2

    Well, perhaps concentrate on making Perl better rather than worrying about what Microsoft does.

    As for the porting to Windows, that shows the weakness of the "free" operating systems. If they are weakened by a program being ported to Windows, it means they aren't very strong on their own merits, just by having some software Windows doesn't have. If that's their only strength, they are doomed to failure, as it will all eventually be ported to Windows.

  9. Re:Better Balanced regexp, cool! by Abigail-II · · Score: 2
    I find this really sad. Years, I've fought against this horrible naive idea that s/// would remove HTML tags. Even clueless Netscape programmers have left such naive parsing behind them years ago. s/// removes to much, and it removes to little, and only sometimes it happens to work out. There are decent parsing modules out there (well, they don't get it all right, but neither do browsers), the FAQ has been warning against s/// for years.

    I don't believe any regex featurs are going to help you. If you use s///, you're just way to naive. You should step away from programming - go play quake or something like that.

    Abigail

  10. Re:Java language no larger than C by Tom+Christiansen · · Score: 2
    And [Java] runs about as fast as Perl or Python, especially for non-graphical stuff.
    There aren't many numbers out there on this, which leaves most such statements subjective, anecdotal, or at best, irreproducible. That's too bad. It would be nice to have some real numbers.

    One place where you can read more about this is in Timing Trials, or, the Trials of Timing: Experiments with Scripting and User-Interface Languages, a white paper by Brian Kernighan and Christopher Van Wyk.

    Another interesting metric is taken from The Practice of Programming, by Brian Kernighan and Rob Pike (1999). It is difficult to reproduce the table here, because slashdot doesn't permit tables, preformatted tags, xmp tags, or even nonbreaking spaces. Sigh. (And no, this feature lack has nothing to do with Perl. They just chose for it to work this way.) I will try to uses hyphens instead of spaces, but no promises.

    PLATFORM--------250mhz Irix-----400mhx pII MS---line count

    C---------------0.36 sec--------0.30 sec--------150
    Java------------4.9-------------9.2-------------10 5
    C++/STL/deque---2.6------------11.2--------------7 0
    C++/STL/list----1.7-------------1.5--------------7 0
    Awk-------------2.2-------------2.1--------------2 0
    Perl------------1.8-------------1.0--------------1 8

    You'll have to read their analysis of these data for more explanation. I should point out that the STL obviously has a bug under Microsoft's version of the deque.

    But this really should call into question the speed claims of the Java people. And it's my understanding that this benchmark did use the fabled JIT tech. It was a Markov chain generator, by the way.

  11. Re:New Site Layout by arthurs_sidekick · · Score: 3

    If it accurately reflected the language, then the site would be pretty ugly. It would, however, probably find a way to bake your bread online and make you a sandwich too; there would be modules for condiments and ...

    whoops, shouldn't post when I'm hungry.

    --
    "Oh, I hope he doesn't give us halyatchkies," said Heinrich.
  12. At least the numbering's beginning to make sense by arthurs_sidekick · · Score: 4

    As far as casual programmers like myself go, I really appreciate a numbering system that's more "industry standard." I mean, sticking a couple of decimal places out in front of a major revision number is pretty confusing for those of us who can't keep up. Until I read this piece, I'd though 5.005 was only marginally different from 5.004. (Raster, Mandrake: if you're reading this -- why is E still at .16? Are you planning 83 more releases between now and the one where it's finally ready?)

    Now, if they'd add support for *irregular* expressions, that's something I could really go for; programmin' Yoda-style!

    --
    "Oh, I hope he doesn't give us halyatchkies," said Heinrich.
  13. Better Balanced regexp, cool! by Monty+Worm · · Score: 2
    Speaking as a perl developer I can only be very happy about increasing features in the regexp code.

    Where previously I had to settle for using something like s/<.*?>//g; to discard all tags, I can now pretend to be intelligent and search and discard seperate matched tags? Lots and lots of cool implications for HTML, CGI, and XML developers there.

    Good thinking guys!

    --
    ... and today's pet project has ... been discarded for lack of time.
  14. Why threads? by Tom+Christiansen · · Score: 3
    multi threading though? Why?
    Mostly because due to the horrible botch that Microsoft has made of processes, without threading, the Prisoners of Bill have no possibility of anything resembling real multitasking.

    Certainly there exists a class of problems that lends itself to more than one PC (program counter; it means program counter damn it) executing simultaneously in the same text and data. Personally, I prefer everything unshared unless I say otherwise, not the other way around.

    But it's pretty scary stuff for all but the most rigorous of seasoned programmers. To my mind, handing a script kiddie multithreading is like handing a six year old a loaded Uzi. That's not to say that in the hands of a trained professional, these aren't useful. But in the wrong hands, they're more like a sneaky murder-suicide device.

    It's getting a bit dated, and certainly carries its own agenda, but several years ago, John Ousterhout gave a talk on Why Threads Are A Bad Idea (for most purposes) that you might like to check out.

    If you're curious about threading in Perl, the best place to start is probably the perlthrtut manpage. Some low-level documentation is also available.

    I'll be giving a half-day talk on multitasking (both forking processes and spawning threads) in August at the Perl Conference in Monterey. I've got about 100 slides for 3 hours of talk, which should be, um, brisk. :-)

    "In short, just as the Multics mentality of careful access controls shows up throughout Unix, the cretinous CP/M mentality of uncontrolled havoc shows up in DOS and all its mutant children." --tchrist
  15. Re:When will Perl 5.6 be released? by Tom+Christiansen · · Score: 2

    You can look up information on the conference on the web. It's at the end of August in Monterey, CA.