News for hackers. Stuff that matters.
Re:New Relic now supports Node.js by tshadwell on Thursday October 24, 2013 @02:48PM (#6607108)
Is the best reason to use Node.js really just that it supports asynchrony? I'm sure Go also has that and Erlang has existed for a long time. There are many other options, so why Node?
Re:New Relic now supports Node.js by rads on Thursday October 24, 2013 @03:56PM (#6607525)
Some advantages:

- Yes, built-in async support is very important

- Everyone has to write JS at some point anyways -- it helps to take advantage of what everyone already knows

- You can easily share code between the client and the server

- There are tons of modules available on NPM already

- The compile-to-JS languages are getting more practical every day, and you can integrate them with existing JS code

If you consider time spent learning a platform compared to what you get out of it, Node.js is probably the best bang for your buck today.

Re:New Relic now supports Node.js by city41 on Thursday October 24, 2013 @03:29PM (#6607336)
Node came at a time when client side JS was really starting to take off. I can't speak much about Go or Erlang, but I suspect a lot of it has to do with marketing and some lucky momentum.

It also helps that tools like Grunt are Node based, causing frontend devs to look to Node when they need to stand up a back end. At least, Grunt was a pathway into Node for me anyway.

Re:New Relic now supports Node.js by demands on Thursday October 24, 2013 @03:27PM (#6607325)
Node allows you to write JavaScript on the server, which is pretty awesome if you're interested in sharing code (validation, etc) on a client-heavy web app.

I don't have any experience with Go or Erlang, but Node's particular brand of asynchrony is all about non-blocking IO. There are no threads -- all instructions happen in one thread.

Re:New Relic now supports Node.js by stewbrew on Thursday October 24, 2013 @03:30PM (#6607346)
The way I see it, go & erlang is rather about concurrency (and parallelism). async the node way is single threaded.

Anyway, the reason probably has rather to do with JavaScript (V8's speed) and node's eco-system (tools, libraries).