[gambit-list] Does gambit-c have call/ec?
feeley at iro.umontreal.ca
Wed Jun 27 08:35:16 EDT 2007
On 25-Jun-07, at 4:27 PM, naruto canada wrote:
> Does gambit-c have call/ec? Thanks.
Call/ec is not predefined. You can define it yourself like this:
(define call/ec call/cc)
Obviously, in this case the implementation of call/ec is not as fast
as it could be. On the other hand, Gambit's implementation of
continuations is one of the most efficient. For example, on the ctak
benchmark which uses call/cc extensively, Gambit is about 2 orders of
magnitude faster than MzScheme. It would be interesting to see how
MzScheme fairs when call/cc is replaced by call/ec in that benchmark
(I can't run the test because my usual work machine is out of
order). See http://www.iro.umontreal.ca/~gambit/bench.html for other
benchmark results (fibc also uses continuations extensively).
More information about the Gambit-list