Re: [streams] New proposal for byte stream uses cases (#289)

I wrote out a pretty long exploration of readable byte streams today. I didn't get to the other parts I planned quite yet. But it does cover, in a lot more detail than done previously, how both file- and socket-backed readable byte streams would work, and how generic readable stream processors can transparently use readable byte streams. It is based on the proposal in the OP, although I adopted @tyoshino's suggestion of naming the method `pull`.

https://gist.github.com/domenic/65921459ef7a31ec2839

I'd really appreciate a read-through. The issues noted in "Reading a byte stream into ArrayBuffers" are interesting, and I am curious how bad they are in practice.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/289#issuecomment-76494675

Received on Friday, 27 February 2015 23:52:22 UTC