Re: ANN: stream-stream 0.2.0

2012-12-12 Thread Stephen Compall
On Wed, 2012-12-12 at 19:57 -0800, Frank Siebenlist wrote: > In your example you have bs = (read-block-seq r), > where "bs is a lazy seq of Java char arrays…" > > Does that imply that bs is an immutable seq? > That I can reread - peek at the first chars without consuming? Absolutely. > Also, can

Re: ANN: stream-stream 0.2.0

2012-12-12 Thread Ambrose Bonnaire-Sergeant
Lovely, glad that Typed Clojure helps clarify things. Exciting to see it being used in real code! Thanks, Ambrose On Thu, Dec 13, 2012 at 10:10 AM, Stephen Compall wrote: > This is the second release of a simple data-conversion library between > input streams, output streams, and purely lazy li

Re: ANN: stream-stream 0.2.0

2012-12-12 Thread Frank Siebenlist
Thanks Stephen - that's helpful. Just a few more Qs: In your example you have bs = (read-block-seq r), where "bs is a lazy seq of Java char arrays…" Does that imply that bs is an immutable seq? That I can reread - peek at the first chars without consuming? Also, can it be used with stdin? Can I

Re: ANN: stream-stream 0.2.0

2012-12-12 Thread Stephen Compall
On Wed, 2012-12-12 at 18:41 -0800, Frank Siebenlist wrote: > Could you give a few use cases that shows what your library can be used > for? Sure; it is, after all, a little abstract. The library helps you separate I/O from pure, composable functions, while retaining performance. It does for inpu

Re: ANN: stream-stream 0.2.0

2012-12-12 Thread Frank Siebenlist
Hi Stephen, Could you give a few use cases that shows what your library can be used for? Is it only for those of us that require a stream/seq of single bytes/chars? Would that make it easier to generate sha1's for example? Is it useful for sound/video-like streams? Sorry if I missed the point c