Simpler implementation with R7RS parameters?
Adam Nelson
(27 Apr 2020 20:50 UTC)
|
||
(missing)
|
||
Re: Simpler implementation with R7RS parameters?
Adam Nelson
(04 Jun 2020 18:13 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Marc Nieper-Wißkirchen
(04 Jun 2020 18:16 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Shiro Kawai
(05 Jun 2020 01:05 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Marc Nieper-Wißkirchen
(05 Jun 2020 06:16 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Shiro Kawai
(05 Jun 2020 07:07 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Marc Nieper-Wißkirchen
(05 Jun 2020 07:37 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Shiro Kawai
(05 Jun 2020 09:14 UTC)
|
||
Re: Simpler implementation with R7RS parameters?
Marc Nieper-Wißkirchen
(28 Apr 2020 06:27 UTC)
|
||
Re: Simpler implementation with R7RS parameters? Marc Nieper-Wißkirchen (05 May 2020 14:56 UTC)
|
Am Di., 28. Apr. 2020 um 08:27 Uhr schrieb Marc Nieper-Wißkirchen <xxxxxx@nieper-wisskirchen.de>: I should have also emphasized another point, which should end up in the Rationale of this SRFI: While the sample implementation uses syntax parameters and identifier macros, a specific implementation that is being shipped by a particular Scheme system doesn't have to. In fact, this is a reasonable thing for those systems, for which MAKE-COROUTINE-GENERATOR from SRFI 121/SRFI 158 is slow because CALL/CC is slow in these systems (unfortunately, such systems exist). As COROUTINE-GENERATOR of SRFI 190 is just syntax and offers no more than Python's generator functions (note that Python doesn't have CALL/CC), those systems can translate it directly into fast code that does not have to rely on first-class continuations. For this translation to be easy (and no more difficult than that what CPython has to do), it is very good thing that YIELD is lexically scoped (and thus confined to the expanded body of the coroutine). Replacing YIELD with a dynamically bound thing would make things worse.