[TUHS] STREAMS performance

Anthony Martin ality at pbrane.org
Mon Apr 13 13:00:20 AEST 2020


Rob Pike <robpike at gmail.com> once said:
> It did? I think a version of streams showed up at some point, and were
> replaced; of that you are correct. But it certainly didn't begin with
> anything like streams. It began with a file system mux.

I realize you would probably know better, but ...

I didn't mean that streams was the first thing in Plan 9, just that the
I/O system for pipes, network devices, etc. was descended from streams.
That was the case at least as far back as 1990.

Look at the early Plan 9 code for the pipe¹ and ethernet² devices, the
code for Streams, Queues, and Blocks in port/stream.c³ and power/dat.h⁴,
and tell me that doesn't descend from v8 streams. :)

Also, thanks for Plan 9. It's lovely.

  Anthony

1. https://github.com/0intro/9hist/blob/13601b6f49db83aa369e382f5242927a46d2a433/port/devpipe.c
2. https://github.com/0intro/9hist/blob/13601b6f49db83aa369e382f5242927a46d2a433/port/devlance.c#L256
3. https://github.com/0intro/9hist/blob/13601b6f49db83aa369e382f5242927a46d2a433/port/stream.c
4. https://github.com/0intro/9hist/blob/13601b6f49db83aa369e382f5242927a46d2a433/power/dat.h#L338


More information about the TUHS mailing list