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 EAA20204; Tue, 10 Dec 2002 04:10:15 +0100 (MET) 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 EAA20632 for ; Tue, 10 Dec 2002 04:10:14 +0100 (MET) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBA3ADX24416 for ; Tue, 10 Dec 2002 04:10:13 +0100 (MET) Received: from tw304h3 oleg_inconnu@smtp-send.myrealbox.com [156.111.84.180] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.15 $ on Novell NetWare via secured & encrypted transport (TLS); Mon, 09 Dec 2002 20:10:11 -0700 Content-Type: text/plain; charset="us-ascii" From: Oleg To: caml-list@inria.fr Subject: [Caml-list] labels overhead Date: Mon, 9 Dec 2002 22:09:31 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212092209.31850.oleg_inconnu@myrealbox.com> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi In his book Paradigms of AI Programming, P. Norvig mentions that Lisp=20 functions with keyword arguments [1] suffer a large degree of overhead an= d=20 that this may also be true for optional and rest arguments, although to a= =20 lesser degree [2], depending on the platform [3].=20 I'm wondering if the same is true for O'Caml. I'm guessing that it's not,= =20 since complete function applications using labels can be transformed into= =20 "normal" function calls at compile time. Am I right? Thanks, Oleg [1] Called "arguments with labels" in O'Caml [2] In Lisp, optional arguments do not have labels associated with them [3] Chapter 10.3 ------------------- 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