Steve Ruby wrote:
> 
> Shannon -jj Behrens wrote:
> > > No really I'm curious, I have one small-mid sized python web application
> > > and I'm not impressed with performance or resource utilization,
> > > is there something about python I don't know?
> >
> > Let's not let this degrade into a language war.  I'm not asking you to
> > agree with me, I'm simply stating my reasons for moving toward Python:
> >
> 
> Thanks, I didn't mean to sound like I wanted one :) I just am curious
> about
> why.
Cool.

> 
> > Several reasons:
> >
> > o Exceptions handling!!!!! (I'm tired of typing "if (!$records)")
> > o Rossum seems to be an anal-perfectionist spartan such as myself
> > (whereas PHP's source code is notoriously bad).
> > o Python persistance requires very little work.
> > o Python is a much more "mature" language (it's hard to explain) with a
> > very nice syntax.
> > o I love the interpreter--it gives you the ability to "walk around
> > inside" your program.
> >
> 
> These are reasons you would like to move the PHP (can I say primary or
> lead)
> version of Freetrade to Python?
Leon is the lead maintainer of Freetrade, not I.  I do hope to write a
version of Freetrade in Python.

> > I'm not knocking Freetrade in PHP (after all, I helped write it), but
> > there are several things that Python has that I've felt the need for
> > while working on Freetrade.  Something that you might not be aware of
> > (or maybe you are) is mod_py, which allows you to embed the Python
> > interpreter into Apache the same way that PHP does.
> >
> 
> I can agree that Python is a much better language than PHP, It has
> just been my experience that growing(app size and hits) web applications
> in perl (mod_perl) and PHP don't scale as well as they do with servlets.
> Having little experience with Python web apps my fear is that
> they fit closer to the perl level of performace/resource usage?
Since we are stipulating that Python is a better programming language
than PHP (an opinion we share), then I should remind you that programmer
time is *far* more important than execution speed.  Nonetheless,
whenever mod_py executes a Python script, it automatically compiles it
down to byte-code.  Hence, the next time you execute the script, you
don't have to re-parse.  Perl doesn't do this (as far as I know, or at
least without some modifications).  

> I'm coming at this more from an administration standpoint than a coding
> standpoint and I know they can be apples and oranges.
> 
> My question isn't so much why PHP --> Python, but why not
> PHP --> servlets? Is this because of the status of Turbine?
I had originally hoped to work on the Freetrade implementation in Java
(which I think is a good and noble effort).  However, it is a commonly
held opinion that you can program faster in a scripting language than in
a systems language.  Having worked on a small Turbine site (just playing
around), it is my personal preference to stick with a scripting
language.  Let us remember, thanks to JPython, Java and Python may now
be used in unison (which I think is definitely worth exploration).

> > My project, Aquarium, is simply FreeEnergy written in Python.  Perhaps
> > your disgust is toward Zope or something.
> >
> 
> PHP(FreeEnergy) ~= Java(turbine) ~= Python(Aquarium) ?
> Is that basicaly true? Same idea framework in each lang?
Yes.  We, here at Clearink, really like the FreeTrade framework.  Having
FreeTrade implemented in multiple languages gives us options.  After
all, isn't that *one* of the themes behind open source, the ability to
have a choice?

-jj

-- 
Shannon -jj Behrens  *  Web Engineer  *  CLEAR INK�


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to