← Back to context

Comment by tveita

12 years ago

> In particular I'm delighted to see both the definite and indefinite streams of things.

Why? I can see the advantages of either one, but I don't see what having both gets you.

In my experience the implementation advantages of having length-prefixed lists disappear if you have to support indefinite lengths anyway.

I want to use the same data structures for

- Passing small messages around

- Doing streaming of large content (occasionally)

I'm probably doing these over different pipes, but the data shares a lot of the same characteristics and I don't want to use two totally different APIs to get the job done.

"Large" can be "I need to transfer something on the order of megabytes using a 4K intermediate buffer."