English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Even at compile time 2*2=4!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-20 (08:41)
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 


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