Remaining work on SRFI 178 John Cowan (16 Aug 2020 02:36 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (16 Aug 2020 16:07 UTC)
Re: Remaining work on SRFI 178 Arthur A. Gleckler (16 Aug 2020 22:49 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (17 Aug 2020 00:22 UTC)
Re: Remaining work on SRFI 178 John Cowan (17 Aug 2020 00:24 UTC)
Re: Remaining work on SRFI 178 Arthur A. Gleckler (17 Aug 2020 00:50 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 05:44 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 06:00 UTC)
Re: Remaining work on SRFI 178 John Cowan (17 Aug 2020 14:48 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 15:04 UTC)
Re: Remaining work on SRFI 178 John Cowan (17 Aug 2020 15:05 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 15:17 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (18 Aug 2020 04:28 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (18 Aug 2020 05:59 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (18 Aug 2020 15:43 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (18 Aug 2020 15:59 UTC)
Re: Remaining work on SRFI 178 John Cowan (18 Aug 2020 16:01 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (18 Aug 2020 16:22 UTC)
Re: Remaining work on SRFI 178 Arthur A. Gleckler (18 Aug 2020 18:36 UTC)
Re: Remaining work on SRFI 178 John Cowan (18 Aug 2020 19:10 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (18 Aug 2020 19:49 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (18 Aug 2020 20:13 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (18 Aug 2020 20:28 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (18 Aug 2020 20:40 UTC)
Re: Remaining work on SRFI 178 John Cowan (18 Aug 2020 22:03 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (19 Aug 2020 08:58 UTC)
Re: Remaining work on SRFI 178 John Cowan (20 Aug 2020 12:45 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (20 Aug 2020 13:15 UTC)
Re: Remaining work on SRFI 178 John Cowan (20 Aug 2020 14:41 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (20 Aug 2020 14:54 UTC)
Re: Remaining work on SRFI 178 John Cowan (20 Aug 2020 15:25 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (20 Aug 2020 15:52 UTC)
Re: Remaining work on SRFI 178 John Cowan (20 Aug 2020 16:03 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (20 Aug 2020 16:55 UTC)
Re: Remaining work on SRFI 178 John Cowan (20 Aug 2020 17:05 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (20 Aug 2020 18:32 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (21 Aug 2020 04:56 UTC)
Re: Remaining work on SRFI 178 Shiro Kawai (21 Aug 2020 05:14 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (21 Aug 2020 08:00 UTC)
Re: Remaining work on SRFI 178 Shiro Kawai (21 Aug 2020 09:15 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (21 Aug 2020 09:19 UTC)
Re: Remaining work on SRFI 178 John Cowan (21 Aug 2020 15:55 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (21 Aug 2020 16:56 UTC)
Re: Remaining work on SRFI 178 John Cowan (21 Aug 2020 21:03 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (21 Aug 2020 22:38 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (22 Aug 2020 06:27 UTC)
Re: Remaining work on SRFI 178 John Cowan (22 Aug 2020 16:23 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (24 Aug 2020 15:45 UTC)
Re: Remaining work on SRFI 178 John Cowan (24 Aug 2020 18:01 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (24 Aug 2020 18:15 UTC)
Re: Remaining work on SRFI 178 John Cowan (18 Aug 2020 20:25 UTC)
Re: Remaining work on SRFI 178 Arthur A. Gleckler (17 Aug 2020 06:22 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 06:30 UTC)
Re: Remaining work on SRFI 178 Arthur A. Gleckler (17 Aug 2020 06:45 UTC)
Re: Remaining work on SRFI 178 John Cowan (17 Aug 2020 14:04 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (17 Aug 2020 15:10 UTC)
Re: Remaining work on SRFI 178 Marc Nieper-Wißkirchen (17 Aug 2020 15:42 UTC)
Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe (17 Aug 2020 16:33 UTC)

Re: Remaining work on SRFI 178 Wolfgang Corcoran-Mathe 21 Aug 2020 16:55 UTC

On 2020-08-21 11:55 -0400, John Cowan wrote:
> The reason to have a special vector flavor of unfold is that vectors aren't
> extensible whereas lists are.  Therefore, it's better if the *vector-unfold
> procedure knows in advance how long the output can get, so that it can
> create the vector to begin with.  If you want a standard unfold, use a list
> unfold and convert to a vector at the end.  Defining this essentially
> compound form as the canonical *vector-unfold imposes that storage
> inefficiency on every caller.

It seems fairly simple: structures that are inductively-defined have
"true", corecursive unfolds.  Those that are not have iterative
("vector-style") unfolds, which take a length rather than a stop?
predicate.

> It's true that strings are also inelastic and string-unfold is the standard
> unfold, but them's the breaks.

It's especially unfortunate that all the string SRFIs follow SRFI 13
in this, since I doubt it's what anyone wants.  Scheme strings/texts
are no longer lists in disguise, and should have an iterative unfold.
As a result of this structural mismatch, I suspect that all existing
string unfolds are unfolding a list and calling list->string, which is
about as good as having no string unfold at all.

This is getting rather far afield, but I think a tiny SRFI to offer an
iterative unfold for strings and texts might be a Good Thing.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"The most important computer is the one that rages in our skulls
and ever seeks that satisfactory external emulator." --Alan J. Perlis