Not as fast ? Again, no one acknowledges psyco.
Which i said that for the difflib speed it up JUST as fast as C.
Want examples? Here is a COMPLETE package of MINE with the pure python difflib and the C-python difflib.
You should compare the speed of: pure python, psyco-python, and C-python. You will have to download kernel source (which is used as the test data).
Obtain psyco (i386 only) at psyco.sf.net , then simply drop it in /usr/lib/python2.2/site-packages.
My file compare.py has commented out code that gets psyco running (which is as simple as: import psyco psyco.bind(function_name) and all functions called from this will be recursively optimized.
MY POINT: your comments that python is slower than php are based in reaction and not fact. Your comments that php is designed for the web is true, however it is mereley a coment, not an argument.
In my 1st email i show 3 content-management systems for python. THere are even wikis built on top of these. (1 on twisted, 1 on zope, and 1 on plain python cgi which is sped up by mod_python, something that causes python to have the "built for web" feature that php has, namely that only 1 process runs inside apache, instead of a new one for each request.)
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Hunter Peress wrote:
Not as fast ? Again, no one acknowledges psyco.
Which i said that for the difflib speed it up JUST as fast as C.
Want examples? Here is a COMPLETE package of MINE with the pure python difflib and the C-python difflib.
You should compare the speed of: pure python, psyco-python, and C-python. You will have to download kernel source (which is used as the test data).
Obtain psyco (i386 only) at psyco.sf.net , then simply drop it in /usr/lib/python2.2/site-packages.
My file compare.py has commented out code that gets psyco running (which is as simple as: import psyco psyco.bind(function_name) and all functions called from this will be recursively optimized.
MY POINT: your comments that python is slower than php are based in reaction and not fact. Your comments that php is designed for the web is true, however it is mereley a coment, not an argument.
In my 1st email i show 3 content-management systems for python. THere are even wikis built on top of these. (1 on twisted, 1 on zope, and 1 on plain python cgi which is sped up by mod_python, something that causes python to have the "built for web" feature that php has, namely that only 1 process runs inside apache, instead of a new one for each request.)
You know, I just don't remember saying anything about pythons speed. Please remind me which e-mail i said that on, I can't recall, i don't think I said anything about it's speed. I might have forgotter, so if you ever find those words, please let me know.
And as I said, python sounds like very nice language, i just don't see the reason to switch to it. Yes I know you have mod_python.. and there's mod_perl too... and you know.. I still see no reason to switch, there is CMS's written in perl, ruby, python, c, c++, asp, jsp, and tons of other languages.... like i said the language makes no difference really. what makes a difference is how much code we already have written and *working* on a live site. Oh and im sure your difflib is fantastic.. but i see no reason for me to download it.
Oh, and is the MIT license psyco is under GPL compatible?? hehe.. for a minute i thought you were calling me psycho and forgot the H.
Lightning
Hunter-
Not as fast ? Again, no one acknowledges psyco.
If you want to rewrite the Wikipedia engine in Python, you are welcome to do so. Tim is doing a rewrite in Perl. Maybe Tomasz will do a rewrite in Ocaml. And hey, perhaps good old Jonathan Walther will come back here 3 years from now and tell us that his mod_wiki implementation in C is finished. The more implementations we can choose from eventually the better.
I am happy to see rewrite projects and might even participate in the ones I find interesting. I am also happy to see contributions to our existing codebase. Frankly, I have not seen much from you in either department yet.
Discussing the merits or disadvantages of various programming languages here is completely pointless and off-topic. If you want to do that, please take it off the list.
Regards,
Erik
wikitech-l@lists.wikimedia.org