The scenario is that for nearly ten years, (intensive) customisation of a certain datawarehousing package has been done mainly in the following languages:

- ksh

- Formula Engine (which provides scripting glue between a time-series database and a relational database)

- ac_bl (SQL with an object layer over it)

- some other specialised lanaguages.

One or two pieces of Perl have crept in here and there, but the major services of the customised system have been written in a blend starting with ksh and variously spawning interpreters for the other languages.

Beyond a certain point in time, my continued presence at this site will probably depend on my winning the case to replace ksh with Perl as the future language for customisation. I have four colleagues, none of whom have Perl experience. The colleagues agree that change is necessary but are of the opinion that Java should be the language of choice (there is more Java in the original system than Perl, although the manufacturer has written a Perl API (= some modules) as well as a Java API). The features of Perl I can see winning against ksh for this system are as follows:

- greatly reduce the spawning of new ksh processes

- ready interface to unix system services

- Open3 to control input and output between existing utility programs

- CPAN

- associative arrays

- scoped untyped variables

- flexible choice of procedural versus OO (ksh is only procedural)

- perl -d (debugger - no such thing for ksh)

- perl's regexp engine is better than awk/sed's without needing to shell out

- perl's hashes are more flexible and scopable than formula engine's (Formula Engine provides only a single global hash).

- perl can communicate more effectively with background processes.

The problem is, how do such features compare with Java? I don't know enough Java to know what to look for, (other than an impression that there are open source Java libraries versus CPAN modules) although I can manage to put together the comparative study for Perl versus C++. Anyone out there know enough Perl and Java to be able to say how Java would compete with Perl for fulfilment of the same benefits? (Although I want Perl to win, I still have to be scrupulously honest and fair to win the case.)

-M

Free your mind


In reply to A Perl vs. Java fight brews by Moron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.