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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id EC7FAD15E for ; Sun, 24 Jul 2005 19:33:56 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6OHXuaZ006054 for ; Sun, 24 Jul 2005 19:33:56 +0200 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 TAA04931 for ; Sun, 24 Jul 2005 19:33:55 +0200 (MET DST) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6OHXrpC013550; Sun, 24 Jul 2005 19:33:54 +0200 Received: from rosella (ppp9-20.lns1.syd3.internode.on.net [59.167.9.20]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id j6OHXhjn088839; Mon, 25 Jul 2005 03:03:44 +0930 (CST) (envelope-from skaller@users.sourceforge.net) Subject: Re: [Caml-list] How to do this properly with OCaml? From: skaller To: Xavier Leroy Cc: Michael Alexander Hamburg , Thomas Fischbacher , caml-list@inria.fr In-Reply-To: <42E2393B.5030209@inria.fr> References: <42E2393B.5030209@inria.fr> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-jAzZpsE61QiiifGW2UEC" Date: Mon, 25 Jul 2005 03:33:43 +1000 Message-Id: <1122226423.9027.23.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Miltered: at nez-perce with ID 42E3D104.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42E3D101.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 avoided:01 heap:01 heap:01 sidewalk:98 needle:98 wrote:01 sourceforge:01 sourceforge:01 functions:01 supported:01 implemented:02 element:02 suggestion:03 X-Attachments: type="application/pgp-signature" name="signature.asc" X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 --=-jAzZpsE61QiiifGW2UEC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2005-07-23 at 14:34 +0200, Xavier Leroy wrote: > In other terms: >=20 > " I was walking in the city the other day. I saw a syringe lying on > the sidewalk. I stuck the needle in my forearm. That was a classy > neighborhood, so the use of the syringe seemed justified. " >=20 > Sorry for being sarcastic, but I strongly feel that any suggestion > to use Obj functions should be avoided on this list.=20 > Coming back to the initial question, I would first warn against > premature optimization: quite possibly the overhead of the "option" > solution is negligible. If not, just ask the user to pass an initial > value of the heap element type to the "create heap" function. I would appreciate an officially supported variable=20 length array a lot: it can't be efficiently implemented=20 *without* Obj.magic.=20 --=20 John Skaller --=-jAzZpsE61QiiifGW2UEC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBC49D2sRp8/9aGVGsRAiWUAJ9Xf0ggIurwvESD+e8m+I/mfcZBjgCeJcHs esWTbpdrxGPvT6nc/20mjcU= =MaL2 -----END PGP SIGNATURE----- --=-jAzZpsE61QiiifGW2UEC--