Can you post the results of your findings with Webware (mod_webkit?) vs mod_php? Every benchmark I've seen shows mod_php killing mod_python and I was considering moving back to php based on those tests.

Jarosław Zabiełło wrote:

W środa 8 października 2003 o godz. 05:41:41
[EMAIL PROTECTED] <[EMAIL PROTECTED]> napisał(a):



I knot PHP very well and Cheetah do not resemble PHP at all.


Yes it does resemble PHP.


...


The Cheetah syntax is anti-python.



I am afraid you did not know what you were saying. Look at the following basic example for Cheetah, PSP and PHP:

Cheetah:
<html>
<head><title>$title</title></head>
<body>

<table>
#for $client in $service.clients
<tr>
<td>$client.surname, $client.firstname</td>
<td><a href="mailto:$client.email"; >$client.email</a></td>
</tr>
#end for
</table>

</body>
</html>

<!-- PSP: -->

<html>
<head><title><%=title%></title></head>
<body>

<table>
<% for client in service.clients(): %>
<tr>
<td><%=client.surname()%>, <%=client.firstname()%></td>
<td><a href="mailto:<%=client.email()%>"><%=client.email()%></a></td>
</tr>
<%end%>
</table>

</body>
</html>

<!-- PHP: -->
<html>
<head><title><?=$title?></title></head>
<body>

<table>
<? for ($service->clients as $client) {?>
<tr>
<td><?=$client->surname()?>, <?=$client->firstname()?></td>
<td><a href="mailto:<?=$client->email()?>"><?=$client->email()?></a></td>
</tr>
<?}?>
</table>

</body>
</html>

Which one more resemples PHP? :)

I think you do not distinguish PSP as template system from Python as
Webware servlet. When you wrote:



for author in authors:
self.write(author.person)
if author != authors[-1]:
self.write(', ')



you meant pure Webware servlet, *not* PSP! PSP is a template system with all those awfull <%...%> tags (very similar to PHP, which was first invented as a template system only).

I am using pure Python servlet code, but without this nonsens
self.wite('html tags'). Python code should be used for business logic
only. For writing HTML code you should use template system, not
writing HTML code directly from Webware servlet with self.write()
method. It is very poor idea. You do not understand the concept of
separation logic from presentation layer.

Cheetah is not limited (like PSP or PHP) to HTML. HTML-style tags are
hard to distinguish from real HTML tags, HTML-style tags are not
visible in rendered HTML when something goes wrong, HTML-style tags
often lead to invalid HTML (e.g., <img src="<template-directive>">),
Cheetah tags are less verbose and easier to understand than HTML-style
tags, and HTML-style tags aren't compatible with most WYSIWYG editors.
Cheetah is also more powerfull, because it has it's own simple yet
powerfull caching system. PSP has nothing similar.



Sounds like servlets and server pages.



Because Cheetah can works as independent servlet or can be used as a template system for Webware servlets. I prefer tha last one.

BTW, I did some performance test of my Webware & Cheetah application
versus PHP & Smarty. Webware is much more (event up to 6 times!)
faster than PHP. :)







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to