arcfide / chez-srfi

SRFIs for Chez Scheme
Other
94 stars 36 forks source link

Avoid the use of make-coroutine-generator in srfi-158 #55

Closed amirouche closed 3 years ago

amirouche commented 3 years ago

With Chez Scheme, make-coroutine-generator is slow compared to the same code that does not rely on call/cc and call/1cc.

Those can be implemented without make-coroutine-generator

Maybe make-unfold-generator can be implemented without make-coroutine-generator

amirouche commented 3 years ago

I do not see how to implement make-for-each-generator without make-coroutine-generator some for unfold.

Fixed gtake in https://github.com/arcfide/chez-srfi/pull/63

arcfide commented 3 years ago

I'll go ahead and close this then as mostly done. Feel free to submit a PR for make-for-each-generator if you figure it out.