Re:Introducing a new data structure, streams, in Javascript
by Sephr on Sunday September 11, 2011 @11:58AM
(#2983986)
This is nothing like a real byte stream, and is very misleading. The name implies that it's for data i/o, when in reality it's for mathematics.
[ Parent
| on HN ]
Re:Introducing a new data structure, streams, in Javascript
by zzzeek on Sunday September 11, 2011 @12:04PM
(#2984000)
Agree, i thought the name is awful as I expected to see something related to I/O and buffering of content. It looks like a handy list object and seeing "stream" everywhere was just blinding.
However, right at the bottom the etymology of the name is made clear:
> The name 'stream' is used in Scheme, a LISP dialect that supports these features.
So the name is from the FP community. Given the cultural issues, a name change seems unlikely...
Re:Introducing a new data structure, streams, in Javascript
by anderse on Sunday September 11, 2011 @12:10PM
(#2984020)
Here's a helpful two-part Berkeley lecture on the topic: http://academicearth.org/lectures/streams-i
Re:Introducing a new data structure, streams, in Javascript
by telemachos on Sunday September 11, 2011 @09:02PM
(#2985419)
I didn't know that series of lectures, so thanks a hundred times. (Just spend the evening watching the first two hours and bought Harvey's book as well.)
Re:Introducing a new data structure, streams, in Javascript
by xyzzyz on Monday September 12, 2011 @04:25AM
(#2986301)
It's also used in Ocaml and SML, as far as I remember.
Re:Introducing a new data structure, streams, in Javascript
by raganwald on Sunday September 11, 2011 @03:51PM
(#2984621)
Don't you think that a data stream is a special case of this kind f stream that just happens to have a bunch f idiosyncratic names in it's API? It's not like these streams are a completely different idea.