On Jul 21, 11:57 am, "Jens Hoffrichter" <[EMAIL PROTECTED]>
wrote:
> I don't want to start a "religious discussion" about programming
> languages here, especially about speed and ease of use.
I don't either, but I need to clarify something. I think in context
of the question and the response, it was exceedingly clear that I was
referring to TEMPLATING and not to an entire application or request.
> But in my opinion that statement isn't right. Python is written in C,
> just like PHP is written in C. Both languages are interpreted and
> compiled into some sort of bytecode, and then executed.
Of course... But the PHP templating and variable interpolation
routines are all optimized C routines built into the language itself.
PHP itself was designed as templates to start with and exists like
that now -- ie having ${varname} spit out the templated info. In 99%
of Python, Perl and other instances you're using Pure-Language
interpolation for templating and in 100% of situations you're using
some sort of external libraries to handle it -- not something built in
to the interpreter itself.
> To compare speed of one programming language against another, ESPECIALLY for
> a web app, you have to take into consideration how the request is handled by
> the webserver, what stuff is spawned and executed then, things like that.
Absolutely - but I meant to suggest that. At the end of the day,
you're always going to run into issues of bottlenecks and of strengths/
weaknesses across different portions of the request -- especially at
the database blocking level. My comparison was for the templating
stuff only.
With that said, it is POINTLESS to compare langauges based on
templating or any one section alone, because they all have their
strenghts and weaknesses in different parts. PHP is one of , if not
THE, fastest ways to template -- but it has severe drawbacks
elsewhere in execution and authoring time.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---