link to the code: http://code.google.com/p/multi-language-bench/
This is a great resource to learn the different languages.
(I had never seen C++ template programming used in practice before)
Challenge to the pythonistas: rewrite the python version so it uses the C++ code under the hood using scipy weave