Browse thread
[Caml-list] Even at compile time 2*2=4!
-
Jakob Lichtenberg
-
Alessandro Baretta
-
Pierre Weis
- Alessandro Baretta
-
Pierre Weis
- Daniel de Rauglaudre
-
Alessandro Baretta
[
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: | -- (:) |
| From: | Alessandro Baretta <alex@b...> |
| Subject: | Re: [Caml-list] Even at compile time 2*2=4! |
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