Live data from Hacker News

Node.js 0.2.0 released

groups.google.com

21–26 of 26 posts

Re: Node.js 0.2.0 released

#21
post #2

Finally, a (hopefully) frozen API for 0.2.x! I hope Ubuntu 10.10 Maverick gets a stable 0.2.x version of Node.

If you want to keep track of hot, fresh node-y goodness independently of the Ubuntu release cycle (as I do), then please enjoy my nodejs PPA builds.

They're built for lucid, but run fine on maverick, and like everything else in that PPA, are used in production (thus I have an incentive to maintain them well).

  https://launchpad.net/~jdub/+archive/ppa
Enjoy!

(Note: I build a static version of node built against the internal copy of libraries it ships, rather than the dynamic build used by the main Debian and Ubuntu node packages. I really only do this to avoid maintaining those libraries in my PPA as well, and ryah keeps up with their updates anyway.)

Re: Node.js 0.2.0 released

#22
post #21
post #2

Finally, a (hopefully) frozen API for 0.2.x! I hope Ubuntu 10.10 Maverick gets a stable 0.2.x version of Node.

If you want to keep track of hot, fresh node-y goodness independently of the Ubuntu release cycle (as I do), then please enjoy my nodejs PPA builds. They're built for lucid, but run fine on maverick, and like everything else in that PPA, are used in production (thus I have an incentive to maintain them well). https://launchpad.net/~jdub/+archive/ppa Enjoy! (Note: I build a static version of node built against the int…

Thanks for doing this. Any idea if they'll ever make it into the official reps?

I've avoided installing much from PPA (never sure about security / stability there), but this may break my habit.

Re: Node.js 0.2.0 released

#24
post #7
post #6

Earlier quoted context omitted.

let's see.. ascii is 4 bit. UTF8 is 8 bit. Is this really an issue on todays computers?

ASCII is 7-bit (encoded in 8 bits - the high bit is ignored) and UTF-8 takes 8 bits for most characters, but can take 16+ bits for some characters. Node is built for massive scalability on applications that (mostly) pass text from one source to another. Thus, having to convert the encoding of every string that passes through node can be a bottlenck. Felixge has a good writeup of this: http://debuggable.com/posts/stre…

Felix doesn't seem to realize that JavaScript already has native functions for this. All of his code can be simplified to decodeURIComponent(escape(utf8ByteString)).

Re: Node.js 0.2.0 released

#25

What types of projects have you used node.js with?

A lot of projects where I would have used python twisted (http://twistedmatrix.com) in the past, I now use node.js.

It's all projects where I need to connect different protocols together. Like amqp & websockets for example.

Re: Node.js 0.2.0 released

#26
post #10
post #5

Earlier quoted context omitted.

I got the impression that was a performance trade-off. UTF-8 decoding/encoding isn't free.

I know it's a trade-off, but IMHO it's a very poor one. That's premature optimisation. API is forever. This decision sacrificed easy internationalisation and correctness of data for minor performance benefit in current implementation. It's a big deal, because node.js isn't merely encoding-ignorant (like PHP), it actually removes higher bits. If you forget to specify encoding somewhere, your text will be malformed.

UTF8 seems to be the default encoding. I think he had just forgotten to update the docs for .write:

http://github.com/ry/node/commit/7fc794a8ec55bd9d137c4888404...

Post reply on HN