SRFI 196 ready for finalization? John Cowan (27 Jul 2020 22:57 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (28 Jul 2020 00:24 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (29 Jul 2020 06:59 UTC)
Re: SRFI 196 ready for finalization? John Cowan (29 Jul 2020 14:32 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (29 Jul 2020 17:52 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (29 Jul 2020 18:56 UTC)
Re: SRFI 196 ready for finalization? Arthur A. Gleckler (30 Jul 2020 05:50 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (30 Jul 2020 17:03 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (30 Jul 2020 18:34 UTC)
Re: SRFI 196 ready for finalization? Arthur A. Gleckler (30 Jul 2020 20:17 UTC)
Re: SRFI 196 ready for finalization? John Cowan (30 Jul 2020 23:44 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (31 Jul 2020 06:14 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (31 Jul 2020 17:33 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (31 Jul 2020 18:01 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (31 Jul 2020 18:49 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (01 Aug 2020 06:55 UTC)
Re: SRFI 196 ready for finalization? John Cowan (01 Aug 2020 17:20 UTC)
Re: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (01 Aug 2020 19:14 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (04 Aug 2020 22:35 UTC)
(missing)
Fwd: SRFI 196 ready for finalization? Marc Nieper-Wißkirchen (26 Aug 2020 19:12 UTC)
Re: Fwd: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (26 Aug 2020 21:03 UTC)
Re: SRFI 196 ready for finalization? John Cowan (05 Aug 2020 02:02 UTC)
Re: SRFI 196 ready for finalization? John Cowan (05 Aug 2020 02:28 UTC)
Re: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe (05 Aug 2020 02:35 UTC)

Re: Fwd: SRFI 196 ready for finalization? Wolfgang Corcoran-Mathe 26 Aug 2020 21:02 UTC

Marc,

Apologies.  I wish I'd forwarded this to the ml when I received it.

On 2020-08-26 21:12 +0200, Marc Nieper-Wißkirchen wrote:
> I would turn "end" into the upper limit, which doesn't have to be
> reached exactly. So, (numeric-range 0 10 11) would produce the
> one-element sequence "0". In other words, you do some rounding down in
> the (end - start) / step calculation. (You have to do some rounding
> anyway due to the possible inexactness.)

This makes sense to me.

> > I do think that we've gone into something of a rat-hole in trying to
> > take into account the possible behavior of inexact numbers under range
> > operations.
>
> What rat hole? The solution is simple (using composed indexers). And
> you can drop the special indexer constraint completely.

I'm willing to switch the implementation back to composed indexers
if that's the consensus.  Nothing important will need to be changed
in the SRFI; we can drop the constraints on indexers completely (as
well as range-lower-bound), at the expense of a small amount of
efficiency.  Composed indexers will probably be hard for a compiler
to optimize.  Consider:

    (range-drop (range b len INDEXER) n)

which is equivalent to

    (range b (- len n) (lambda (b i) (+ (INDEXER b i) n))) .

It seems to me very unlikely that INDEXER will get inlined here.

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

"In the military more is not better." --_Sun Tzu_