Skip to content

Commit 9d0103d

Browse files
committed
blog: More streams2 wordsmithing
1 parent 0c867ae commit 9d0103d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

doc/blog/feature/streams2.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: A New Streaming API for Node v0.10
22
author: Isaac Z. Schlueter
3-
date: Fri Dec 21 00:08:22 UTC 2012
3+
date: Fri Dec 21 00:45:13 UTC 2012
44
slug: streams2
55
category: feature
66

@@ -11,7 +11,7 @@ category: feature
1111
* A new Stream implementation is coming in 0.10, that has gotten the
1212
nickname "streams2".
1313
* Readable streams have a `read()` method that returns a buffer or
14-
null.
14+
null. (More documentation included below.)
1515
* `'data'` events, `pause()`, and `resume()` will still work as before
1616
(except that they'll actully work how you'd expect).
1717
* Old programs will **almost always** work without modification, but
@@ -50,44 +50,44 @@ v0.8. In a nutshell:
5050

5151
Common simple tasks should be easy, or we aren't doing our job.
5252
People often say that Node is better than most other platforms at this
53-
stuff, but in my opinion, that just is an indictment of the current
54-
state of software more than a compliment. Being better than the next
55-
guy isn't enough; we have to be the best imaginable, and while it was
56-
a big step in the right direction, the Streams in Node up until now
57-
leave a lot wanting.
53+
stuff, but in my opinion, that is less of a compliment and more of an
54+
indictment of the current state of software. Being better than the
55+
next guy isn't enough; we have to be the best imaginable. While they
56+
were a big step in the right direction, the Streams in Node up until
57+
now leave a lot wanting.
5858

5959
So, just fix it, right?
6060

61-
Well, we are now sitting on the results of several years of explosive
62-
growth in the Node community, so any chnages have to be made very
61+
Well, we are sitting on the results of several years of explosive
62+
growth in the Node community, so any changes have to be made very
6363
carefully. If we break all the Node programs in 0.10, then no one
6464
will ever want to upgrade to 0.10, and it's all pointless. We had
65-
this streams conversation around 0.4, then again around 0.6, then
66-
again around 0.8. Every time, the conclusion was "Too much work, too
67-
hard to make backwards-compatible", and we always had other more
68-
pressing problems to solve.
65+
this conversation around 0.4, then again around 0.6, then again around
66+
0.8. Every time, the conclusion has been "Too much work, too hard to
67+
make backwards-compatible", and we always had more pressing problems
68+
to solve.
6969

7070
In 0.10, we cannot put it off any longer. We've bitten the bullet and
7171
are making a significant change to the Stream implementation. You may
7272
have seen conversations on twitter or IRC or the mailing list about
7373
"streams2". I also gave [a talk in
7474
November](https://dl.dropbox.com/u/3685/presentations/streams2/streams2-ko.pdf)
7575
about this subject. A lot of node module authors have been involved
76-
with the development of streams2 (and of course the node core team),
77-
and at this point, I'm confident that it's an improvement over what
78-
we've got.
76+
with the development of streams2 (and of course the node core team).
7977

8078
## streams2
8179

8280
The feature is described pretty thoroughly in the documentation, so
8381
I'm including it below. Please read it, especially the section on
84-
"compatibility".
82+
"compatibility". There's a caveat there that is unfortunately
83+
unavoidable, but hopefully enough of an edge case that it's easily
84+
worked around.
8585

8686
The first preview release with this change will be 0.9.4. I highly
8787
recommend trying this release and providing feedback before it lands
8888
in a stable version.
8989

90-
As of this writing, there are some known performance regressions,
90+
As of writing this post, there are some known performance regressions,
9191
especially in the http module. We are fanatical about maintaining
9292
performance in Node.js, so of course this will have to be fixed before
9393
the v0.10 stable release. (Watch for a future blog post on the tools
@@ -97,10 +97,10 @@ There may be minor changes as necessary to fix bugs and improve
9797
performance, but the API at this point should be considered feature
9898
complete. It correctly does all the things we need it to do, it just
9999
doesn't do them quite well enough yet. As always, be wary of running
100-
unstable releases in production, of course, but I would like to
101-
encourage you to try it out and see what you think. Especially, if
102-
you have tests that you can run on your modules and libraries, that
103-
would be extremely useful feedback.
100+
unstable releases in production, of course, but I encourage you to try
101+
it out and see what you think. Especially, if you have tests that you
102+
can run on your modules and libraries, that would be extremely useful
103+
feedback.
104104

105105
--------
106106

0 commit comments

Comments
 (0)