Browse thread
[Caml-list] Building large and portable projects
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-23 (18:22) |
From: | skaller <skaller@o...> |
Subject: | Re: [Caml-list] Building large and portable projects |
On Sun, 2003-11-23 at 14:25, Nicolas Cannasse wrote: > 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 > can compare directly time stamps of the object with the source. Actually the > only case were hashing is useful compare to timestamps is when a file is > only touched ( am I wrong ? ). This is not an average case, and when it's > happening juste compiling only this file (without a bunch of .h) seems fast > enough. Perhaps we should create a Sourceforge project? Or add a new CVS module to ExtLib project? BTW: one use of hashing is a language specific *content* hash. This is something that can ignore whitespaces and comments for example. For C and C++, the compiler is slow and hashing could be worth it. For Ocaml, the compiler is fast BUT there is a strict ordering requirement not present in C which means a file close to the "start" of a dependency graph is worth hashing to avoid recompiling not just that file .. but all the others after it: Ocaml separate compilation isn't quite as 'separate' as C's :-) ------------------- 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