[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams
From: |
Michael Heerdegen |
Subject: |
Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams |
Date: |
Wed, 14 Sep 2016 17:15:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
John Wiegley <address@hidden> writes:
> You could implement tail as a stream adapter that basically implements a
> sliding window:
>
> Whenever an element is requested from the tail stream, it keeps
> requesting elements from the parent stream, filling up its window
> buffer and cycling out old elements, until it reaches the end of the
> parent stream. At that point, it knows enough to start draining the
> window buffer to the caller.
Yeah, implementing it that way would be cool: if we use `stream-pop', we
would not even need to create a new stream, we would just return the
original stream `stream-pop'ped accordingly until we have found its end
- and everything wrapped inside `stream-delay' so that this is done not
before elements are requested from the returned stream.
Thanks,
Michael.
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, (continued)
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Michael Heerdegen, 2016/09/14
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Clément Pit--Claudel, 2016/09/14
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Nicolas Petton, 2016/09/15
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Michael Heerdegen, 2016/09/15
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Nicolas Petton, 2016/09/15
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Michael Heerdegen, 2016/09/15
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, John Wiegley, 2016/09/13
- Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams,
Michael Heerdegen <=
Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams, Nicolas Petton, 2016/09/13