Slashdot Mirror


The Year in Scripting Languages

Mitchell writes "People from several language communities came together to create a joint year-in-review for Lua, Perl, Python, Ruby, and Tcl."

39 of 238 comments (clear)

  1. What about... by dildatron · · Score: 4, Funny

    I can't believe all the biased articles on this place! I can't believe the would cover Perl, tcl, etc, and leave out the Windows Batch file scripting language! This is dispicable! It's so powerful, no wonder it's #1.

    --


    If you had nuts on your chin, would they be chin nuts?
    1. Re:What about... by SecretAsianMan · · Score: 3, Interesting
      I can't believe the would cover Perl, tcl, etc, and leave out the Windows Batch file scripting language! This is dispicable! It's so powerful, no wonder it's #1.

      DOS scripting is no longer Microsoft's preferred scripting feature.

      Windows batch files are a holdover from DOS. DOS as we know it originally ran on IBM PCs and early descendants, which were cheap, slow, 16-bit, underfeatured toy computers. At that same time, Unix was running on expensive, fast, 32-bit, featurful computers. Before that, Unix did run on 16-bit computers (various submodels of PDP-11), but PDP-11s were certainly more expensive and more featureful than 8086- and 80286-based PCs, and PDPs were most definitely not toys.

      The point? Unix scripting was better than DOS scripting. Windows evolved from DOS, and as a result it got DOS's scripting capabilities. That evolution is only now reaching the stage where it can be said with any regularity that Windows is evolving from itself rather than from DOS. Win2K and (maybe) WinNT4 were the first incarnations of Windows with this property. It is a very slow process.

      What we see now is Windows evolving its own scripting engines. I'm not savvy about some of these things, but I do know that there are VBScript or Windows Scripting Host for automating things in the OS, and VBA for scripting inside individual apps like Excel or Access. Granted, these are all based on VB, which is lacking when compared to Java or C++, but these are quite well-suited for scripting in a Windows environment.

      Just yesterday, for example, I wrote a simple Windows script that renames files in a directory tree by doing regular expression search and replace. This clearly represents an improvement over the legacy DOS scripting capabilities.

      --

      Washington, DC: It's like Hollywood for ugly people.

  2. Next year... Invite PHP by Anonymous Coward · · Score: 4, Interesting

    It does have a large market share, ya know.

    1. Re:Next year... Invite PHP by Valiss · · Score: 5, Funny

      Yeah but then you'd have to invite ASP, and really, who would want to do that? =]

      --

      -Valiss
  3. One important addition to perl by TokyoBoy · · Score: 3, Interesting
    A release of a new PerlQT was made. http://perlqt.sourceforge.net/
    From the website: "PerlQt-3 is Ashley Winters' full featured object oriented interface to Trolltech's C++ Qt toolkit v3.0. It is based on the SMOKE library, a language independent low-level wrapper generated from Qt headers by Richard Dale's kalyptus thanks to David Faure's module".

    Another thing that's nice is that "All Qt classes are accessed through the prefix Qt::, which replaces the initial Q of Qt classes. When browsing the Qt documentation, you simply need to change the name of classes so that QFoo reads Qt::Foo". So, essentialy the API is similar to QT with reduces the learning curve quite a bit.

  4. Missing by The+Bungi · · Score: 4, Interesting
    No mention of ActiveState's plugins for Perl and Python to Visual Studio.NET?

    Not really ports to the platform itself, but great productivity boosters regardless. I've used VisualPython with VS.NET 1.0 and it rocks.

  5. Where is my... by 216pi · · Score: 3, Interesting

    ... PHP?

    This report shows how it is growing.

    1. Re:Where is my... by JanusFury · · Score: 5, Insightful

      Unlike Ruby, Python, Lua, Perl, and Tcl, PHP doesn't have any real uses other than websites, and it could be disputed that it doesn't even do websites all that well ;) PHP isn't really a scripting language in the same sense that those others are. ASP/ASP.net and Java Server Pages aren't on there either, you might notice.

      --
      using namespace slashdot;
      troll::post();
    2. Re:Where is my... by shiflett · · Score: 5, Informative

      As a C programmer myself, I think it is pretty evident that you are not. That's not meant to be offensive, but you should not attempt to speak from inexperience as a general rule. Try to be more open minded, or at least only form an opinion after you have educated yourself on a particular topic.

      For example, after your attempt to say that PHP only slightly resembles C, you try to point out weaknesses in PHP by mentioning functions that are direct equivalents of C functions (strlen, strchr, sprintf, etc.). Make up your mind. :-)

      Also, since it seems you suggest otherwise, there is a good reason why not every string manipulating function begins with str_. Do you think C should have used str_printf() and str_sprintf()? How about PHP's functions crypt(), echo(), explode(), md5(), trim(), soundex(), etc. Should these all be renamed? Bill Gates may agree with you, but I doubt you will find many open source developers who do.

      In case it is helpful, strchr() and split() do not do the same thing. It sounds like you're heading for trouble there. :-)

      I guess my point is that your inexperience is not a valid complaint against PHP. Yes, it is not the perfect language, but it happens to work well for a lot of people. If you want to bash it, at least use valid reasons (which there are plenty) such as how mod_php is a content generation module and therefore unable to interact with other request phases within Apache (though I think this is being remedied in the apache_hooks API). Or, point to a benchmark showing how Perl parses large text files 20% faster in some cases. Or, show how Python's OO model is more advanced.

      Sorry if this post comes off a bit strong, but I tire of seeing hollow rhetoric.

  6. I try to only use a few scripting languages by MarkWatson · · Score: 5, Informative
    As much as I am able, I try to limit my use of scripting languages to just Python and PHP.

    The reason is simple: I need to use several non-scripting languages (Java, Smalltalk, etc.) and remembering the language syntax and class libraries for more than 4 or 5 programming languages is a hassle.

    BTW, scripting languages are not necessarily horribly inefficient anymore.

    A little off topic, but I compared the resources used for a small web app on the following platforms:

    • Java servlets/JSPs - minimum memory footprint is about 75 megabytes
    • Smalltalk servlets - mimimum memory footprint is about 20 megabytes
    • Python Zope - minimum memory foortprint is about 11 megabytes
    In all three cases, the server processes use negligible CPU time after startup (mostly waiting with select).

    Anyway, for lots of applications, Python is fast enough - no need for high performance compilers like Common Lisp, C++, Smalltalk, etc.

    -Mark

    1. Re:I try to only use a few scripting languages by axxackall · · Score: 3, Interesting
      My results:
      • Java servlets/JSP (Tomcat) - 8 MB
      • Python Zope - 5 MB
      --

      Less is more !
    2. Re:I try to only use a few scripting languages by pnatural · · Score: 5, Informative

      These are exiting times for Python programmers.

      Just a few days ago, the "Minimalist Python" project was announced. Its goal is to two fold: reduce the distribution to a central core and to re-write as much of it as possible in Python. By doing so, and by including Psyco the Python specializing compiler , the folks working on the Minimalist distribution hope to have a Python that outperforms C (initial tests show that Python+Psyco does outperform C code in many cases). I've used Psyco a bit, and it is a marvel. The idea of a Python compiler, written in Python, becomes possible, and has recently been discussed quite actively on comp.lang.python.

      Even with the speed improvements, the Real Benefit(tm) of Python is in not saving machine time, it's in saving my time as a developer, because I'm far, far more expensive to employ than a server.

    3. Re:I try to only use a few scripting languages by pnatural · · Score: 4, Insightful

      The announcement was only made 4 days ago. It's available on comp.lang.python.announce: link here

      There isn't much yet beyond a mailing list (here) and a lot of discussion on c.l.p, but the folks involved are notable Python contributors. I have no doubt the project will be successful.

  7. Silly Rabbit by Anonymous Coward · · Score: 4, Funny

    scripts are for kids!

    Script reviews and naked girls.

    Or try Pajonet.com

  8. Python to become dominate cross platform language by bsharitt · · Score: 5, Interesting

    I hope Python integrates wxPython. With Python + wxPython, it can take on things like Java, Mono, and .Net.

  9. Re:TCL????? by pogle · · Score: 4, Interesting

    I originally learned Tcl/Tk about 4 years ago, but stopped using it once my job no longer required it. I took a joke course on scripting languages last fall, and the professor was in love with Tcl/Tk, but seeing as how no one cared, we learned Perl/Tk instead. The Tk widgets are the more useful part of it...Tcl was OK, but it frankly shocked me that it was still being developed actively. Anyone used the new version and can vouch for the speed boost? It was so gawd awful slow before that I couldn't bear it.

    --
    http://thechubbyferret.net - Ferret pictures and informative links.
  10. Re:Tcl? by WetCat · · Score: 3, Interesting

    I do! a very large project, btw.
    and please do not put your own opionion as the opinion of the masses.
    People who think in commands and strings choose TCL!

  11. Re:Python to become dominate cross platform langua by Anonymous Coward · · Score: 3, Interesting

    As a wxPython user I can say that, for a good reason, wxPython should not be part of Python.
    It's a complete bitch to debug your programs when the wxWindows library goes berserk, and it does, way too often.
    Btw, I think there should be no GUI toolkit at all in Python as default.

  12. Python best fits my needs by PeterClark · · Score: 3, Interesting

    Python is an amazing scripting language--I'm just wondering when gcc will be able to compile it! :) (Yes, I know about psyco.) For the next year, one thing I would like to see is either Python switching to wxPython for GUI stuff, or improving tkinter so that it isn't so...1996ish. (On the other hand, wxPython isn't quite as intuitive as pyQT, but isn't hampered by the licensing issue on the Windows side of things.) Also, what are the plans for Python 3+? Is there any site listing future plans, apart from the 2.3 release?

    :Peter

  13. No Bourne? by Dan+Ost · · Score: 5, Insightful

    What? Bourne isn't interesting because it's not
    being developed anymore?

    I'm a big fan of Python, but for every Python
    script I write, I write dozens that start out
    #!/bin/sh.

    It may not be sexy, but it's maintainable (every
    admin knows it), portable (any system that has
    sh or bash), and dirt simple to write.

    --

    *sigh* back to work...
  14. Re:TCL????? by Col.+Klink+(retired) · · Score: 3, Interesting
    And it never ocurred to you that in 5 years, Tcl might have made some progress as well?

    Incidentally, for those 5 years, NBC has been using Tcl in mission critical, real time applications to stream video to affiliates across the country.

    I've been using tDOM lately, a Tcl interface to the DOM. It is, quite simply, the fastest XML parser I have found.

    --

    -- Don't Tase me, bro!

  15. Who is winning?: Let the porn industry decide! by $$$$$exyGal · · Score: 5, Funny
    We all know that the porn industry is always the first adopter of the latest and greatest technologies: And the winner is: PHP by a landslide!

    --naked

    --
    Very popular slashdot journal for adul
    1. Re:Who is winning?: Let the porn industry decide! by puppetluva · · Score: 3, Funny

      Very scientific: Using your technology rating method, I've decided to use Windows, alt.sex and Brittany Spears for my next project.

  16. PHP 2003 year-in-review by dananderson · · Score: 3, Informative
    PHP 2003 year-in-review (or go to http://php.net/ and click on "PHP Look Back 2002."

    BTW, PHP news is available in RDF format as a Slashbox. Go to your Slashdot "preferences" to add.

    As for Language wars, no language is better, it's just a better tool for a particular job.

  17. Perl Data Language for scientific work by Dr.+Zowie · · Score: 5, Informative
    Perl really has come a long way from its scripting roots -- by itself, it's useful for "small to midsize" computing tasks (says the documentation) but the value of "midsize" keeps shifting to larger and larger things.

    Perl Data Language (http://pdl.perl.org) is a set of C and FORTRAN bindings that make perl into a complete vectorized scientific-computing language that's useful for big tasks like inverting 1000x1000 matrices or fluid-dynamic simulation, but that can also be used interactively to work with image and spectral data.

    That's neat because interactive data analysis is a pretty small niche market with a few proprietary (and, IMHO, seriously broken) languages dominating. With PDL, I can give fresh science data to high school students, straight from the spacecraft. Their L337 gaming machines are plenty powerful enough to run the tools they need, and perl is pretty much universal.

    1. Re:Perl Data Language for scientific work by Dr.+Zowie · · Score: 3, Informative
      I've looked at numpy briefly. I believe that, starting from scratch, it might be easier to learn -- perl is a write-only language at first.

      PDL has really excellent dimensional manipulation and slicing; and the PGPLOT output is very nice. For me, the main advantage over python is that, well, it's just perl -- so you have access to the whole CPAN library for (e.g.) database I/O, units conversion, uu{en|de}coding, and whatnot.

  18. or awk by DrSkwid · · Score: 4, Interesting

    awk essential for pipe work.

    you'll see it here used like
    wget -O - http://domain/info.html | awk -f proc.awk | mysql -u news newsdb

    rc shell and it's unix implmentation

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  19. PHP is also for batch pre-processing by dananderson · · Score: 3, Insightful
    HTML is not a programming language because it has no branch and control and looping constructs.

    PHP now has a batch mode intended for preprocessing. That is, periodically generating static HTML from PHP pages.

  20. Re:TCL????? by js7a · · Score: 5, Informative
    Tcl was OK, but it frankly shocked me that it was still being developed actively.

    TCLs claim to fame is its small memory use. TCL can be included as a command interpreter in other programs easily and without much bloat. There are more embedded TCL applications than any one person knows about; both in hardware and software. TCL was also first with UTF-8 support in strings, around 1998 or before, way before Perl, so there are probably more TCL CGI scripts overseas than most English users think.

    As for benchmarks, TCL is getting faster, with a huge jump from v7 to v8 and about a 25% improvement from 8.0 to 8.4a3 (scroll down to bottom of linked page.)

  21. A few replies by jbolden · · Score: 4, Informative

    Since most of this is about your experience there is not much anyone else can say but...

    After about a day I had an excellent understanding of both PHP and SQL.

    I don't know PHP but you don't have an excellent understanding of SQL in one day. Its not a that hard but ain't that easy either. Rather what is probably true is that you have an excellent understanding of how to write SQL to get information from the types of simple database with simple underlying business rules.

    The modern SQL spec runs 2000 pages you don't have an excellent understanding of 2% of that in one day.

    This is because Perl isn't OO (so you can't create Node classes, for example, usefull in a linked list) and because it lacks pointers.

    I don't know what you are talking about. If X is a type of object then X's are passed around as pointers (see bless). Arrays in Perl are linked lists so an array of X's is a linked list, that's why you use things like push, pop, shift, etc... on arrays in Perl.

    As for graphics Perl libraries support a wide range of graphics formats.

    There are some other things like your comments about the regex engine that I highly doubt. No regex engine has had the time, attention and work of Perl's, Its not Perl's strong suit because of some sort of myth, for example Perl's grep has outperformed the native grep on Solaris. My guess is that the failure lies with you on this one.

  22. LUA getting some attention... by vga_init · · Score: 3, Interesting

    Earlier this year I had to use LUA in a project that I was working on, and I must admit that it was a pretty interesting language. I had to use it primarly for scipting: writing generic function calls and tailoring formatted "pages" of code to be submitted into a database (one might think of this as being similar to web pages, though it a little bit different than that). To me the language seemed to be very versatile, and it had some nifty features as well as very simplistic syntax. To someone familiar with other languages like Perl or Python, I guess it might not seem so nifty, but I appreciated its simplicity because it took me less than an hour to learn as much of the language as I needed for the project.

  23. Brian W. Kernighan's scripting language shootout by Jayson · · Score: 5, Informative
    BWK wrote a paper on this: Timing Trials, or, the Trials of Timing: Experiments with Scripting and User-Interface Languages. It compared C, Awk, Perl, Tcl, Java, Visual Basic, Limbo, and Scheme. It tested various areas of the language, such as graphics, text processing, and array manipulation.

    Although K really isn't a scripting langauge (neither is C), results were done for it, too (being faster and having less code). There is also a shallow introduction to K on Kuro5hin.org.

  24. Rexx has no equal. by Wargames · · Score: 3, Funny

    For scripting, there are not equals to Rexx the king of scripting languages.

    The programming language Rexx runs great as Regina on Linux/UNIX/NT, or Rexx under OS2 Warp or NT is cross platform with minimal changes.

    Rexx http://www2.hursley.ibm.com/rexx/
    Regina http://regina-rexx.sourceforge.net/

    Can your scripting language do this out of the box:

    -Wargames

    Powers of 2:

    say 2**100
    1267650600228229401496703205376

    say 2**150
    142724769270595988105828596944949513638274 6624

    --
    -- Each tock of the Planck clock is a new world and here we are still life. --
  25. They barely mentioned Parrot... by bahwi · · Score: 4, Informative

    Parrot isn't the VM for Perl6. Parrot is a "new language from the creators of Perl and Python." Duh. There's even an O'Reilly book on it.

    Seriously though. They barely mentioned Parrot and Parrot is coming along very nicely I think. Even with a Java to Parrot Bytecode program, Brainfuck, Jako, Befunge-93, cola, forth, miniperl, ook, (non-final) perl6 interpreters/compilers, as well as python, ruby and scheme interpreters/compilers coming. Of course it's not finished, so not all of the languages are either, but hey, it's getting there, and damn fast. There's even a Parrot Assembly Lange.

    Parrot is definately not Perl6. It's much more. It's like java, but open source, and independent of Languages. They're hoping to have it compile on as many platforms as perl does now, unlike Java which is Windows, Mac, Linux, and some PDAs, end of story.

    So everyone check it out and throw some patches in too! Of course, the only support I've given so far is moral support. :/

  26. VBScript by unfortunateson · · Score: 3, Informative

    The real missing item is VBScript. Sure, it's 99% Windoze (1% Macintosh -- who probably don't realize they have it). It's the engine behind ASP -- which isn't a language in its own right. It's the replacement for DOS Shell scripts/batch files. It's the preferred platform for management scripts on Win2K/WinXP (see WMI) It's the preferred platform for trojan horse programs... maybe I shouldn't claim that as a positive, huh? Probably Javascript should have been mentioned too, but it's rarely used as shell-style scripting. Why do I use VBScript when I've got Perl and Python on the same machine? Frobbable code at Microsoft's website. If nothing else, I prototype it there, then acces the same COM objects through Python or Perl.

    --
    Design for Use, not Construction!
  27. Re:Tcl has already seen it's day... by Col.+Klink+(retired) · · Score: 5, Informative
    You do realize that the "everything is a string" model has been gone for nearly 5 years... It's also been using a byte-code compiler for just as long, so no, it's not the slowest thing out there. In fact, the tDOM XML parser/XSLT engine is extremely fast. Quoting the link:
    The final results? Ade summarizes: "Under Linux tDOM SAX is 4 times faster than Java, under Windows 3 times. tDOM DOM is around 4 times faster than the fastest Java solution under both platforms." Memory tests confirmed Ade's own intensive experience over 18 months of working with DOM commercially: "the tDOM DOM tree needs typically between 2 and 3.5 times memory of the XML file size ..." Common DOM parsing engines in commercial use bound to C and Java frequently require five to 30 (!) times as much memory as the base document.
    --

    -- Don't Tase me, bro!

  28. Re:Programming down the toilet... by leoboiko · · Score: 3, Informative

    "Lua" is Portuguese for "Moon". Lua is a Brazilian project.

    --
    Prescriptive grammar:linguistics :: alchemy:chemistry. Stop being a nazi and learn some science.
  29. Re:TCL????? by RevAaron · · Score: 3, Insightful

    Because when Tcl first came out, it was pretty darn original. Sure, there were languages like Common Lisp and Smalltalk, but Tcl is embeddeble and works pretty well as a part of a larger system. Now a days, Smalltalks and Lisps can do that as well, and there are at least a hundred embeddeble scripting languages. But when it came out, it was original and pretty easy to write.

    I mean, going from "function(param1, param2)" to "function param1 param2" can't be all *that* hard. :)

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  30. Ruby can... by Colonel+Panic · · Score: 3, Funny

    Can Rexx do:
    2**1000 :
    10715086071862673209484250490600018105614048117 055 33607443750388370351051124936122493198378815695858 12759467291755314682518714528569231404359845775746 98574803934567774824230985421074605062371141877954 18215304647498358194126739876755916554394607706291 45711964776865421676604298316526243868372056680693 76 ...but really, how does being able to do this mean that a scripting language 'has no equal'...

    Or when you say that 'Rexx has no equal' do you mean that you can't check for equality in Rexx? ...must be pretty tough...