Streams are a simple concept, but they are actually really weird if think about it.
A stream is a sequence of elements. An example of a stream is file, where each element is a byte.
Element types could be…
The reader of a stream only see a sequence of elements. Something else determines the order.
Reading a stream could…
The writer of a stream submits one element at a time.
Writing a stream could…
Elements in stream could be…
Streams themselves are can be input into other functions.
Streams could be…
Streams are weird because so many things are just streams with another name. With our stream goggles on, we can even reconceptualise “random memory access” as two streams. A stream of load address commands and another stream of memory values.
Do you want to learn all the ways streams are weird? You’re in luck, Battlefy is hiring.