> 1 - I had to roll my own implementation of buffering input until an end
> of line is received
> 2 - since File and Socket have different APIs I'd have to write separate
> wrappers if I wanted my JS shell to work both with stdin/stdout and over
> telnet.
IIRC, stdin/stdout is somewhat broken at the moment and is being
reworked at the moment.
> Is the plan to fill out Node with these kinds of utility classes, or are
> you keeping it lean and mean? And if you are planning to do these kinds
> of things, are you interested in contributions? :)
I think the plan is to keep Node lean. Currently there's no real module
system to load libraries (especially those written in C++) so it's all
part of node for now. Eventually these things might go into a standard
library. If this will be part of node itself or a separate project I
cannot say.
Urban
The stdin/stdout/stderr implementation is changing at the moment. Soon
it will emit events for line-buffered stdin data.
> 2 - since File and Socket have different APIs I'd have to write separate
> wrappers if I wanted my JS shell to work both with stdin/stdout and over
> telnet.
I hadn't considered doing this, but I will now. I'll get back to you.
> So basically I'm wondering what your plans are for something like Twisted's
> LineReceiver, which is a standard class that handles the basics of
> line-oriented protocols, and can be subclassed for specific protocol
> implementations. Twisted also allows you to use the same protocol
> implementation with different "transports", like TCP or stdin/out, which is
> nice.
>
> Is the plan to fill out Node with these kinds of utility classes, or are you
> keeping it lean and mean?
I lean towards no unless it's also necessary for internal usage -
which a LiveReceiver would not be.
> Are you interested in contributions? :)
Yes!
> Are you interested in contributions? :)
Yes!