[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANN] New library stream.el in ELPA
From: |
Michael Heerdegen |
Subject: |
Re: [ANN] New library stream.el in ELPA |
Date: |
Thu, 15 Oct 2015 00:13:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Nicolas Petton <address@hidden> writes:
> If you do stream it, using `stream-first' and `stream-rest' for
> instance, you shouldn't have this issue, right?
I don't remember. Maybe your implementation is cleverer than mine was
;-)
I tried this stress test with your lib:
--8<---------------cut here---------------start------------->8---
(defun stream-append (s1 s2)
(if (stream-empty-p s1) s2
(stream-cons
(stream-first s1)
(stream-append (stream-rest s1) s2))))
(seq-elt (stream-append
(stream (cl-loop for i from 1 to 100 collect i))
(seq-filter
#'cl-oddp
(stream-append
(stream (cl-loop for i from 1 to 50000 collect i))
(seq-map #'1+ (stream (cl-loop for i from 50001 to 100001 collect
i))))))
40000)
--8<---------------cut here---------------end--------------->8---
What can I say - it work well!
BTW, is `stream-append' missing in your library, or should that be done
via some `seq' function?
Regards,
Michael.
- [ANN] New library stream.el in ELPA, Nicolas Petton, 2015/10/15
- Re: [ANN] New library stream.el in ELPA, John Wiegley, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, Nicolas Petton, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, John Wiegley, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, Nicolas Petton, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, John Wiegley, 2015/10/15
- Re: [ANN] New library stream.el in ELPA, Nicolas Petton, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, raman, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, John Wiegley, 2015/10/14
- Re: [ANN] New library stream.el in ELPA, Daniel Colascione, 2015/10/18