Benchmarks are merciless

JavaScript vs. PythonPHP vs. Python A number 1/4 for A vs. B means that B is 4 times slower than A. The Computer Language Benchmarks Game is more a community benchmark than a programming language benchmark. You get some ballpark figures that confirm what you already know beforehand: C++ is faster than Ruby :-) But it's still depressing to see that a current implementation of JavaScript is faster than Python.

2009-05-28 14:18:00Z · Last edited: 2009-08-27 20:04:12Z

Hey, let's deploy this Python Web Application!

Please choose: Apache + mod_pythonWSGICGIFastCGIPython webserver Python webserver behind ProxySCGIjust give upBackground: A customer's hosting service has a nice table with all features that are available. Packet A and B don't allow Python and Ruby. But packet C does. Nice! Nice? They don't tell you which version of Python or how to use/deploy it.

2009-01-20 19:29:00Z · Last edited: 2009-08-27 20:04:12Z

Fan of Harry Potter and Python?

$ sudo ln -s `which python` /usr/local/bin/parseltongue

2008-05-03 20:28:00Z · Last edited: 2009-08-27 20:04:12Z

Batteries included

The imports of a current project at work: $ grep -h import *.py|sort -u from __future__ import with_statement from cStringIO import StringIO from ftplib import FTP from xml.etree import ElementTree import ConfigParser import csv import glob import logging, logging.handlers import os import sys import time import traceback import zipfile Small program (500 lines, w/o empty lines and comments), but a lot of things get done. You don't have to download and install a single additional library for this....

2008-03-28 18:58:00Z · Last edited: 2009-08-27 20:04:52Z

Migrating Python 2.4 to 2.5 isn't always fun

$ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO >>> x = StringIO.StringIO(u"m\xf6p") >>> import cStringIO >>> x = cStringIO.StringIO(u"m\xf6p") >>> $ python2.5 Python 2.5 (release25-maint, Dec 9 2006, 14:35:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO >>> x = StringIO....

2007-07-26 12:37:00Z · Last edited: 2009-08-27 20:04:52Z

Programming Language Harmony

You can find some snippets to make Python work with Haskell on PythonVsHaskell. The code is for Windows, but it shouldn't be difficult to adapt this to Unix. Finding this on a X vs Y page gives you some hope in humanity again. :-) In the real world it isn't about which one is the ultimate programming language. When you think beyond this, you can choose more freely and combine the best of all the available tools for the job....

2007-02-25 20:22:00Z · Last edited: 2009-08-27 20:01:38Z

Some crazy guy announced a Python implementation in Common Lisp!

Willem Broekema announced CLPython in his news posting <> today. That's really crazy shit! (Meant in a good way! :-) A Python implementation in Common Lisp. At the moment it's Allegro only, but in the future we could perhaps compile CLPython with Python to run Python ... (CMUCL's compiler is called Python, too. :-) Sound's like fun. By the way: There's a similar approach called Python-on-lisp. This project uses the real Python and builds a bridge to it....

2006-07-05 01:21:00Z · Last edited: 2009-08-16 21:34:49Z