[Edu-sig] The Great Computer Language Shootout

Kirby Urner pdx4d@teleport.com
Sun, 03 Jun 2001 10:00:29 -0700


At 06:35 PM 6/3/2001 +0400, you wrote:
>On Sun, 3 Jun 2001, L. Humbert wrote:
>
>>Hi,
>>
>>after all it's worth to take a look at:
>>http://www.bagley.org/~doug/shootout/
>>
>>There you'll find a benchmark comparison of a number of programming
>>languages, done by
>>Doug Bagley
>>
>>Yes, Python is mentioned and compared there, too.
>>
>>python:
>>ackermann ary ary2 echo except fibo hash hash2
>>heapsort lists matrix methcall moments nestedloop

>2. ocaml is very promising language:

agreed.

in caml interactive you can write a function to compose
two functions, i.e. build r(x) from f(g(x)) or g(f(x)).

  #let compose f g = function x -> f(g(x));;
  val compose : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b = <fun>
 
  #let cos2 = compose square cos;;
  val cos2 : float -> float = <fun>

Drawing a blank this AM re how to do this in Python, trying
various things with little lambda.

Clues?

Kirby