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