From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 7D1F7BBAF for ; Tue, 23 Nov 2010 16:50:54 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcBAHZx60xKfVI0kGdsb2JhbACUMjGBJIxXCBUBAQEBCQkMBxEDH4grmz+LfAEFjhMBBIVLkGA X-IronPort-AV: E=Sophos;i="4.59,242,1288566000"; d="scan'208";a="89189255" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 Nov 2010 16:50:54 +0100 Received: by wwb17 with SMTP id 17so4907854wwb.9 for ; Tue, 23 Nov 2010 07:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:organization:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=QtuqhxflkeptpQMz06f26GZjee/+ZwnJ/p8uBBdKFHo=; b=pHVPrxGZd5cL4XStBXr/KL/+kJP4KpRJBJ0KVG5GV/zMPw8D+VaRPMu3J0DAY9xFXH opkFbmvd8V7IH1vr5PihuKVcj5g2MuPzeQuMGmZbhEe6PAEq8WO1JGl+vn/36U2nKH+6 tOz4x+QiE0uSVnEFDwDtmK1/nozPelN4rTiyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:organization:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=s3+EN6lknF4qe2ujMcSTuC02iM/8IU+3stsh+IwP+EW+LA0X5gLvMBI1XQu7lZ9G3k 74Blx1MuTTgOW7p9FwIlHU9xOJAGD7ed+HsvFgX2cj754bXdEc/vcZOG/KkVUNpZ72cD XlwPx7KSm01iLHlPaJhqMDNzYp2wiJb7rl5oM= Received: by 10.227.128.211 with SMTP id l19mr7784396wbs.73.1290527452737; Tue, 23 Nov 2010 07:50:52 -0800 (PST) Received: from WinEight ([87.113.160.118]) by mx.google.com with ESMTPS id i19sm4202082wbe.17.2010.11.23.07.50.49 (version=SSLv3 cipher=RC4-MD5); Tue, 23 Nov 2010 07:50:50 -0800 (PST) From: Jon Harrop To: References: <1290434674.16005.354.camel@thinkpad> <20101123.113733.2059974256209184038.Christophe.Troestler+ocaml@umons.ac.be> In-Reply-To: <20101123.113733.2059974256209184038.Christophe.Troestler+ocaml@umons.ac.be> Subject: RE: [Caml-list] Re: Is OCaml fast? Date: Tue, 23 Nov 2010 15:50:32 -0000 Organization: Flying Frog Consultancy Message-ID: <065e01cb8b26$29e36e60$7daa4b20$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-7" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuK+osUwsdeYgPPQ7qhEvvNiJa8pQAJ+9Iw Content-Language: en-gb X-Spam: no; 0.00; ocaml:01 haskell:01 ffi:01 haskell:01 malloc:01 cheers:01 christophe:01 troestler:01 ocaml:01 beginner's:01 bug:01 bounces:98 tor:98 beginners:01 wrote:01 And almost all of the "Haskell" solutions (reverse-complement, spectral-norm, Mandelbrot, n-body, fannkuch-redux, k-nucleotide, = regex-dna) abuse GHC's FFI in order to work around Haskell. The k-nucleotide benchmark in Haskell even uses malloc! Ketil Malde = crafted a much better solution but noted: "This is considered cheating, since it is the easy and natural way to = do it." - http://www.haskell.org/haskellwiki/Shootout/Knucleotide Cheers, Jon. > -----Original Message----- > From: caml-list-bounces@yquem.inria.fr [mailto:caml-list- > bounces@yquem.inria.fr] On Behalf Of Christophe TROESTLER > Sent: 23 November 2010 10:38 > To: igouy2@yahoo.com > Cc: caml-list@inria.fr > Subject: Re: [Caml-list] Re: Is OCaml fast? >=20 > On Tue, 23 Nov 2010 02:03:48 +0000, Isaac Gouy wrote: > > > > > C version : 12.11 secs > > > OCaml version : 47.22 secs > > > OCaml version with GC parameters tuned ("interesting alternative" > > section) : 12.67 secs > > > > And of course you know because that GC tuned OCaml program is shown > > on the > > benchmarks game website ;-) > > = http://shootout.alioth.debian.org/u32/program.php?test=3Dbinarytrees& > > lang=3Docaml&id=3D1 >=20 > Since you are here, please explain why C can use memory pools and vec > tor instructions but tuning the GC of OCaml =AF although it is part of > the standard library =AF is considered an "alternative". >=20 > Best, > C. >=20 > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs