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 JAA11494; Wed, 20 Nov 2002 09:41:55 +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 JAA11575 for ; Wed, 20 Nov 2002 09:41:54 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a105.tin.it [62.211.4.105]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gAK8frX16751 for ; Wed, 20 Nov 2002 09:41:53 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 2B7F62739C for ; Wed, 20 Nov 2002 09:42:16 +0100 (CET) Message-ID: <3DDB4AE8.10703@baretta.com> Date: Wed, 20 Nov 2002 09:42:16 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: Re: [Caml-list] Even at compile time 2*2=4! References: <200211200031.BAA03544@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Pierre Weis wrote: > (The constants written at compile time in the executable are stored to > disk anyway and have to be read back when launching the program: in > the case of the CAS program, loading those huge constants with the > executable was slower than loading a small executable that re-computed > them from scratch!) > > Life is not that simple... > > Pierre Weis I agree. This method is only useful if computational complexity is much greater than space complexity. Besides, even complexity is actually a fairly volatile concept in this case, because we are talking about computing a constant function (no input). To be honest, I can't think of a situtation where I'd use my own hack. I wonder what was Jakob's reason for posting originally. Alex ------------------- 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