Re: [PATCH] add SRFI: srfi-121; generators

2021-01-25 Thread Marc Nieper-Wißkirchen
Am Di., 26. Jan. 2021 um 08:08 Uhr schrieb Linus Björnstam < linus.bjorns...@veryfast.biz>: > Hi Y'all! > > I have an efficient, almost done implementation of srfi-121. I believe it > lacks generator-unfold, but that is all. make-coroutine-generator is > implemented using delimited continuations a

Re: [PATCH] add SRFI: srfi-121; generators

2021-01-25 Thread Linus Björnstam
Sorry, I though this was in the guile mailing list. -- Linus Björnstam On Tue, 26 Jan 2021, at 07:48, Linus Björnstam wrote: > Hi Y'all! > > I have an efficient, almost done implementation of srfi-121. I believe > it lacks generator-unfold, but that is all. make-coroutine-generator is > imp

Re: [PATCH] add SRFI: srfi-121; generators

2021-01-25 Thread Linus Björnstam
Hi Y'all! I have an efficient, almost done implementation of srfi-121. I believe it lacks generator-unfold, but that is all. make-coroutine-generator is implemented using delimited continuations and runs a lot faster than the one in the reference implementation, with the caveat that it is appar

Re: [PATCH] add SRFI: srfi-121; generators

2021-01-25 Thread John Cowan
Note that 121 is withdrawn, so people should implement 158. On Sat, Jan 23, 2021 at 1:38 AM Mark H Weaver wrote: > Hi Arthur, > > "Arthur A. Gleckler" writes: > > It's not a bad idea for the sample implementation to be as clear as > > possible at the expense of performance. > > I agree that it'