Lab 4 - Call by name extremely slow

88 views
Skip to first unread message

Santiago Munín González

unread,
Mar 5, 2014, 7:31:03 AM3/5/14
to proglang-c...@googlegroups.com
Hello,

my lab partner and I noticed that the examples good6.fun and good7.fun are extremely slow if they are interpreted using the call by name strategy. In our case, changing the argument of the good6.fun to 25 (instead of 30), it took 11 minutes to evaluate.

I guess this is not desirable but wanted to ask here because asking another class mates they told us they have similar problems with these two examples. Some hints about how to detect what could be the error would be appreciated.

Thank you ver much.

Aarne Ranta

unread,
Mar 5, 2014, 8:30:29 AM3/5/14
to proglang-c...@googlegroups.com
Effects like this were indeed expected - as a pedagogical demonstration of the two strategies! As long as every good example works fine with at least one strategy, there is no reason to change the other one.

  Aarne.
Reply all
Reply to author
Forward
0 new messages