Well, I'll just drop my $.02 into this discussion. I've done a lot of
both. The site from which this email is coming from
(isupportlive.com) is developed in java technology start to finish.
Everything is either a .jsp, or straight servlet. I've also developed
a lot of other sites using modperl, and cgi's. (Cgi's a few years
ago, but everything for the last couple years has been modperl) Also
for the isupportlive site there are java applications, and java
applets that use the servlets as their inter-communication method.
So given that information, I'll give you the run down on how I feel
about it. After spending 6 months developing all that stuff, I think
it would have been wise to have the entire backend done in C or perl
instead. I've done bench marks on both, and Java is a huge memory
hog, and not too much in the way of stable. Speed wise, a perl
solution would have been better, but really for what I was doing C is
the only way to go, or maybe threaded perl when modperl2 comes out.
There's a lot of cool stuff "built in" to servlet technology that's
not immediatly obvious in perl technology. But with stuff like
Embperl, Apache::ASP, and Mason, it sort of levels the playing field.
The worst thing about Java though for me is that the community isn't
as "giving". The perl community is built on a very open tradition,
and the language itself is more extendable with native plugins. (I.e.
you can build something in C in XS, and have it run non interpretted)
So the MOST important thing about perl is, well..., basically you
guys!, the perl community. Java doesn't have that. Native languages
have it, but not as organized as CPAN, etc. Java doesn't have it...
not at all. People are not nearly as open with their class files as
people are with their .pm's.
Honestly though..., I love the java language. But the best thing
about java has nothing to do with Servlets. It has everything to do
with the GUI class layout. The inheritence there is pure beauty.
Have you every tried to use String tokens in java and run a benchmark
on it and compared it to a regex? PATHETIC. String handling is crap
in Java. The explanations I've heard are overhead for creating string
objects for each token seperator.
Oh well, those are my disorganized thoughts :-)
Shane.
On Sun, Jun 11, 2000 at 09:37:14AM -0600, dreamwvr wrote:
> hi,
> this could be a can of worms but anyhow here goes. Has anyone timed the
> actual efficiency of Perl vs Java? Reason being is i wrote a state engine as
> a perl module that seemed quite fast ~ 0.33 to 0.54 of a second for slurping
> up values. With recall being about .25 to .35 of a second which seemed quit fast
> to me. Then i was shown a jsp page which i really don't know much about..
> reminded me actually of SSI syntax wise. Well it was doing the same thing using
> Java persistance objects and seemed very fast. Any idea how the languages
> compare as always trying to use the best tool for the job.
> TIA
> [EMAIL PROTECTED]