You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Manoj Anjaria <mg...@hotmail.com> on 2001/09/21 13:24:34 UTC

Porting

Hello all,

We have an application written in Java using MVC which we would like to port 
to mySQL/Perl platform. We have used Struts,to create tags.
Any inputs in this regards will be appreaciated.

Thanks
Manoj


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Re: Porting

Posted by Toni Andjelkovic <to...@soth.at>.
Mark Maunder wrote on Mon, Sep 24 2001 (15:44:25 +0100):
> Any clues as to your motivation for porting to mod_perl? I've been trying to
> sell a mod_perl solution to some Java nuts for some time and any help would be
> much appreciated. What really makes mod_perl better than Java? Are there any
> performance benchmarks out there that anyone knows about? Scaleability? JDBC vs.
> DBI? Child/Servlet memory footprint size?

performance is not the crucial point here, IMHO.
it's like young boys arguing about car brands,
"my daddy's car is faster than your daddy's car!"

it depends on the people who will write/maintain the code
and their skills with the particular technology, be
it mod_perl, servlets, ruby, python, whatever.

basically, someone with comparable proficiency
in each of the mentioned technologies will be
able to produce a working solution with comparable
performance. all of the above technologies have been
deployed in large-scale projects, and they can
be tuned, so that "performance" questions should
not be emphasized more than necessary.

if your data model is clean and your algorithms
are smart, then the implementation language is just
a question of convenience, IMHO. you should concentrate
on this fact rather than bragging about "product features".

> If someone says to you, why didn't you do it in Java?
> What do you say? (Besides
> mentioning Sun's lame license.)

because i think that mod_perl gives me all the
flexibility i need, and it's supported by legions
of competent developers. i saw lots of companies
offering "premium commercial support" for their
products, but almost none of them can maintain the
level of support offered by the perl community.

in my opinion, there are lots of (mediocre) Java programmers
out there, far more than competent mod_perl programmers.
it's easier for companies to recruit Java people,
and Java has better marketing, impressing suits who pay
for your projects.

cu,
-- 
Toni Andjelkovic
<to...@soth.at>


Re: Porting

Posted by Perrin Harkins <pe...@elem.com>.
> What really makes mod_perl better than Java?

This is a common thread, which you should look up in the archives.  It's
best to avoid starting up a discussion with this vague a question, since it
will lead to a flood of advocacy e-mails.

> Didn't the eToys guys do some benchmarking? (Perrin?)

We did.  We knew we were going to use Linux, so we took the fastest Java
stuff (Resin + IBM's JVM) and wrote a quick test servlet to select some
stuff from Oracle and display it.  When we ran the same thing under
mod_perl, Perl was a little bit faster.  Note that Caucho has some
benchmarks they published which are not very good since they have poorly
optimized Perl code (it's a Registry script, not a handler).

When we saw that Perl was just as fast, we had no reason to switch from a
productive platform that we all liked to one that only some of our team had
skills on.

- Perrin


Re: Porting

Posted by Mark Maunder <ma...@swiftcamel.com>.
Any clues as to your motivation for porting to mod_perl? I've been trying to
sell a mod_perl solution to some Java nuts for some time and any help would be
much appreciated. What really makes mod_perl better than Java? Are there any
performance benchmarks out there that anyone knows about? Scaleability? JDBC vs.
DBI? Child/Servlet memory footprint size?

If someone says to you, why didn't you do it in Java? What do you say? (Besides
mentioning Sun's lame license.)

Didn't the eToys guys do some benchmarking? (Perrin?)

Manoj Anjaria wrote:

> Hello all,
>
> We have an application written in Java using MVC which we would like to port
> to mySQL/Perl platform. We have used Struts,to create tags.
> Any inputs in this regards will be appreaciated.
>
> Thanks
> Manoj
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--
Mark Maunder
Senior Architect
SwiftCamel Software
http://www.swiftcamel.com
mailto:mark@swiftcamel.com



Re: Porting

Posted by Joshua Chamas <jo...@chamas.com>.
John Reid wrote:
> 
> > > We have an application written in Java using MVC which we would like to
> > port
> > > to mySQL/Perl platform. We have used Struts,to create tags.
> > > Any inputs in this regards will be appreaciated.
> >
> > You will probably find that Struts tags can be ported nicely to Template
> > Toolkit (http://template-toolkit.org).  You might even be able to write a
> > converter for your JSP pages.  If you're interested in getting some
> > object/relational mapping features and a basic MVC structure thrown in as
> > well, you can check out OpenInteract (http://openinteract.org/).
> > - Perrin
> >
> 
> Or what about Apache::ASP and XML Subs?
> 

If you do look at Apache::ASP & see that it falls short for you,
please let me know what issues there are as there are likely 
features I can add that might make your transition a better
experience.  Apache::ASP is being actively developed, and a major
release 2.23 will soon go to CPAN.   Also note that for general
questions about Apache::ASP, please send them to asp@perl.apache.org
or subscribe with asp-subscribe@perl.apache.org

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

RE: Porting

Posted by John Reid <jr...@openconnect.co.uk>.
> > We have an application written in Java using MVC which we would like to
> port
> > to mySQL/Perl platform. We have used Struts,to create tags.
> > Any inputs in this regards will be appreaciated.
> 
> You will probably find that Struts tags can be ported nicely to Template
> Toolkit (http://template-toolkit.org).  You might even be able to write a
> converter for your JSP pages.  If you're interested in getting some
> object/relational mapping features and a basic MVC structure thrown in as
> well, you can check out OpenInteract (http://openinteract.org/).
> - Perrin
> 

Or what about Apache::ASP and XML Subs?

John
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 18/09/2001


Re: Porting

Posted by Perrin Harkins <pe...@elem.com>.
> We have an application written in Java using MVC which we would like to
port
> to mySQL/Perl platform. We have used Struts,to create tags.
> Any inputs in this regards will be appreaciated.

You will probably find that Struts tags can be ported nicely to Template
Toolkit (http://template-toolkit.org).  You might even be able to write a
converter for your JSP pages.  If you're interested in getting some
object/relational mapping features and a basic MVC structure thrown in as
well, you can check out OpenInteract (http://openinteract.org/).
- Perrin