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 FAA05494; Sun, 23 Nov 2003 05:29:40 +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 FAA05387 for ; Sun, 23 Nov 2003 05:29:39 +0100 (MET) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAN4Tb113926 for ; Sun, 23 Nov 2003 05:29:38 +0100 (MET) Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1ANlsG-0004Vt-00; Sat, 22 Nov 2003 20:29:28 -0800 Date: Sat, 22 Nov 2003 20:29:28 -0800 From: David Brown To: Nicolas Cannasse Cc: David Brown , skaller , sylvain.le-gall@polytechnique.org, Martin Jambon , caml-list@inria.fr Subject: Re: [Caml-list] Building large and portable projects Message-ID: <20031123042928.GA17316@davidb.org> References: <20031120195614.GB441@gallu.homelinux.org> <000f01c3afd1$30033c90$0274a8c0@PWARP> <20031121052549.GA8599@davidb.org> <008301c3aff3$1030e760$0274a8c0@PWARP> <20031121064950.GA836@gallu.homelinux.org> <1069431167.5426.45.camel@pelican> <20031122170852.GA15144@davidb.org> <003e01c3b171$71b4a1f0$0274a8c0@PWARP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003e01c3b171$71b4a1f0$0274a8c0@PWARP> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 0900,:01 cannasse:01 hashing:01 hash:01 hashing:01 compiles:01 comile:01 ocaml:01 ocaml:01 recompile:01 nicolas:01 nov:01 compile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, Nov 23, 2003 at 12:25:13PM +0900, Nicolas Cannasse wrote: > > Older is incorrect, as well. The program should run cc on the .c > > That's true doing a hashing is nice for C, but ocaml compilation is fast > enough so maybe the time difference between making the hash and compiling is > not so big. Another issue is storing the hashing in a temp file, while you Saying "older" is wrong not because it just compiles too often, but because it also doesn't compile things it should. Think of someone moving files around without changing timestamps, and then putting the old files back. Normal make won't recompile them. It is better to comile when you shouldn't than it is to not compile when you need to. And compiling ocaml isn't always fast. The code I'm working on doesn't compile the ocaml code any faster than the C code. Dave ------------------- 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