[ANN] Nile: a trait-based stream library

stephane ducasse stephane.ducasse at free.fr
Thu May 3 18:34:03 UTC 2007


On 2 mai 07, at 21:50, Keith Hodges wrote:

>> Yes, pipes of streams.
>>
>> s := GzipStream on: (Base64Stream on: (WriteStream on: String new))
>> s nextPutAll: 'foobar'
>>
>> s contents would return a string of 'foobar' zipped and converted  
>> to BASE64.
> This would be great!
>
> Rio uses this form for gzip support and it makes sense to add  
> further adaptors like this.  In Rio I made a stream to stream  
> copyTo: function, so you can compress, by copying from a readStream  
> to a writeStream configured as above.
>
> Do you have a stream to stream copy function? If not I added one to  
> Stream, you could steal it from Rio.
>
> I do not know if you are aware that Flow is now available in 3.9,  
> and since this is a streams based implementation it may make more  
> sense to use Flows primitives for file/socket support.

We tried Flow in 3.2 but it was not clear what we could reuse from it.
So you are suggesting the primitives... good.
Do you know if we can load it without destroying the current streams?
Who ported it to 3.9? Is craig working on it again?

Stef



More information about the Squeak-dev mailing list