From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D0C72BC69 for ; Fri, 1 Jun 2007 13:43:32 +0200 (CEST) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l51BhSag001373 for ; Fri, 1 Jun 2007 13:43:31 +0200 Received: (qmail 3299 invoked from network); 1 Jun 2007 11:43:43 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 1 Jun 2007 11:43:43 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 952F42FF4E for ; Fri, 1 Jun 2007 21:43:26 +1000 (EST) Date: Fri, 1 Jun 2007 21:43:26 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Comparison of OCaml and MLton for numerics Message-Id: <20070601214326.e0a939a6.mle+ocaml@mega-nerd.com> In-Reply-To: <891bd3390706010429g2ac722bfmc6932b15393a62b9@mail.gmail.com> References: <5195a210705302250u6a9e5adey4ed857480f9e5cd8@mail.gmail.com> <200705311008.16662.jon@ffconsultancy.com> <5195a210705310222p6aa8482fr70e7bf2b2b631b72@mail.gmail.com> <200705311127.28639.jon@ffconsultancy.com> <465F3E8C.10404@inria.fr> <1180660974.15528.126.camel@rosella.wigram> <465FAF0B.5060700@inria.fr> <891bd3390706010429g2ac722bfmc6932b15393a62b9@mail.gmail.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 46600660.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 yaron:01 minsky:01 functors:01 functors:01 lri:01 signoles:01 wrote:01 caml-list:01 writes:01 modules:02 modules:02 erik:04 erik:04 Yaron Minsky wrote: > I could not agree with this sentiment more. Stephen actually now works at > Jane Street, and since his arrival he's taught us a number of techniques > for using modules and functors to organize and factor code more > effectively. Some of these techniques were obviously born in the context of > Mlton, where they have no performance penalty. It's downright annoying to > have to avoid these techniques in performance-sensitive code in OCaml. In > other words, factoring out with functors and modules is good style, but > OCaml penalizes you for it. Can the defunctorizor help? http://www.lri.fr/~signoles/ocamldefun/manual.html Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "He who writes the code gets to choose his license, and nobody else gets to complain" -- Linus Torvalds