<br><div class="gmail_quote">El 5 de mayo de 2010 17:21, Christian Jaeger <span dir="ltr"><<a href="mailto:chrjae@gmail.com">chrjae@gmail.com</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">> Thanks again for the explanation. Is your implementation sharable or maybe<br>
> you could give me some pointers?<br>
<br>
</div><a href="https://mercure.iro.umontreal.ca/pipermail/gambit-list/2007-May/001435.html" target="_blank">https://mercure.iro.umontreal.ca/pipermail/gambit-list/2007-May/001435.html</a><br>
<div class="im"><br>
> I'm currently trying out with this other approach (the hashtable), different<br>
> from force/delay.<br>
> <a href="http://community.schemewiki.org/?memoization" target="_blank">http://community.schemewiki.org/?memoization</a><br>
<br>
</div>The text on this page is not very bright, in fact it seems to be<br>
confusing you. If you need to map a set of values to a computation,<br>
then promises don't help you, exactly because they don't provide for<br>
any mapping. As I said, Scheme implementations are not required to,<br>
and usually do not, detect when a computation (even if wrapped in a<br>
delay) has been done previously with the same context values. A new<br>
promise is created every time.<br>
<br>
Ch.<br></blockquote><div><br></div><div>Yes, what I understood (wrongly, apparently) from the text is that force/delay idioms can be used to memoize the value of a function output given some arguments. If a new promise is created every time it cannot be used directly as a way to put the work of memoization on the compiler (which is what I wanted). I don't look for a call-by-need mechanism, but something to avoid recalculating a procedure every time I pass the same arguments. Anyway I think I have a better picture now.</div>

<div><br></div><div>Best regards,</div><div><br></div><div>Álvaro</div><div><br></div><div> </div></div><br>