Perl on Java? An Introduction to the Sleep Language
The article asks, why Perl, there are so many scripting languages for Java things why do we need another? Then the article goes on to never address that question other than to say "Perl is good at stuff".
I guess I wont judge (beyond what I have already done with the title ;)), but I never liked Perl when it was just Perl, much less Perl in Java.
Comments
RE: We have gone too far, Perl for Java via Sleep
I will freely admit to being a code snob here.
Perl is, and for my money, has always been a duct tape language. I have never seen a really convincing agruement that having perl is really better than a bash script with sed and awk. Moreover, I still have to seem perl as being a bastard, in much the same way PHP has become between a duct tape language and some people wanting it to be a whole software motif. For gods sake people, Java, C-pound and Python are all much better environments. And even if I wanted to script my Java, C# or Python app, JavaScript has all the structural elegance of Lisp, all the language features of Perl and none of the shit associated with either.
I just don't get it.
RE: We have gone too far, Perl for Java via Sleep
> convincing agruement that having
> perl is really better than a bash
> script with sed and awk
speed? try to parse 500MB log file daily with bash + sed + awk :)
> JavaScript has all the structural
> elegance of Lisp
joke? javascript and elegance does not come together
flame, flame, flame
RE: We have gone too far, Perl for Java via Sleep
I think JavaScript gets a bad rap, mostly because of the crappy exposure stuff it has gotten from browser makers, and the fact that it is the language that a thousand non-programmer written programs are in -- from Flash to WebPages to whatever.
However, in terms of language stuff, it has some very powerful features. If nothing else, it is the only language besides LISP where you can actually pass a function AS an arguement to another function for invocation, without stepping into Interfaces or Pure Virtuals that require hard signatures and a lot more overhead. I thing JavaScript has, for instance, too many ways to do everything. That every object has properties, which are also an associative array, which are also this and also that. That can make working with other people code hard, IMHO, since different people have different preferred idioms. Personally, most of my JavaScript ends up looking like JavaCode anyway.
And if nothing else, I would call the Rino shell about the best debugging/exploratory tool in my toolbox.
RE: We have gone too far, Perl for Java via Sleep
I will give perl its props for parsing and processing text (what it was originally intended to do?) - its fast and capable. Its just ugly as hell. But then again, bash - sed - awk is not much prettier.