From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA26700; Fri, 11 Oct 2002 11:27:16 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA26508 for ; Fri, 11 Oct 2002 11:27:15 +0200 (MET DST) Received: from mailhost.tni.fr (firewall.tni.fr [195.25.255.61]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9B9RE504036; Fri, 11 Oct 2002 11:27:14 +0200 (MET DST) Received: from groscool.tni.fr ([195.25.255.1]) by mailhost.tni.fr (Netscape Messaging Server 3.62) with SMTP id 1963; Fri, 11 Oct 2002 11:26:51 +0200 Received: from 192.168.7.60 by groscool.tni.fr (InterScan E-Mail VirusWall NT); Fri, 11 Oct 2002 11:26:51 +0200 (Paris, Madrid (heure d'été)) Message-ID: <3DA69959.1E2480BB@tni-valiosys.com> Date: Fri, 11 Oct 2002 11:26:49 +0200 From: Sebastien Furic Organization: TNI X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.18-6mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: Pierre Weis CC: frisch@clipper.ens.fr, caml-list@inria.fr Subject: Re: [Caml-list] Num library References: <200210101708.TAA06448@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Pierre Weis wrote: > > > I made some benchmarks with Dolphin Smalltalk (a pure Smalltalk > > bytecode interpreter) and O'Caml (using ocamlopt) a few months ago. To > > my great surprise, Dolphin Samlltalk outperformed O'Caml by a factor of > > 4 over various tests IIRC. I think the same results may be obtained with > > other modern big numbers implementations against O'Caml's one. > [...] > > What do you know about Caml big numbers library ? Are you sure to have > used the proper layer of the library tuned to performance or have you > used the casual layer tuned to coding facility ? > > What do you know of the Smalltalk big numbers library ? In which > language is it written ? What are the algorithms used ? > > What were your benchmark programs ? What are your figures ? > > Be serious on such a topic please! Comparing arithmetic packages is > not a trivial task and you cannot state ``Dolphin Samlltalk > outperformed O'Caml by a factor of 4'' without strong arguments and > evidence that this is indeed true. > > Pierre Weis My intention was not to begin a flame war. Dolphin's numerical algorithms are written in assembly language, like all time-critical parts of the interpreter. Unfortunately, Dolphin's team just announced "new faster algorithms" (and didn't give information about the algorithms they use). Of course, I tried to tune my O'Caml code but I couldn't beat Dolphin's implementation (despite the use of Nat etc.). Dolphin's bignums are natively supported by the language and there is no way to hack them. This is however very convenient for occasional users like me because I don't have many time to "hack" numerical packages. Please note that I'm perfectly happy with O'Caml though. Regards, Sebastien. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners