--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
2010/9/17 Stephen Belanger <cyruz...@gmail.com>:
> nodejs.
> You are asking this on the nodejs mailing list, were you expecting an
> unbiased response?
> nodejs is c++ and V8 which is very speedy, while Netty is Java-based which
> tends to be slower. I haven't used it personally, so I can't comment on it's
> functionality, but I would bet node would be the pants off it in terms of
> performance.
> I'd recommend looking at the documentation for both and deciding for
> yourself what fits your coding style best.
>
Questions like this and answers like the one Stephen gave are always
funny to me. Define "best". If you define "best" as "way faster"
then node probably wins. If you define best as "fast enough, plus
access to a huge library of battle tested libraries" then Netty beats
the pants off node because it's on the jvm. I define "best" as "don't
have to write java". Hence, node wins hands down.
But seriously, I've only messed with netty in a tinkering type of
way. It works, and it's pretty fast. But it's a painful dev process
unless you're very comfortable with java. I realized I didn't have
the patience for it anymore.
Sorry, I just realized this isn't very helpful :)
i agree having nodes api moved to rhino could be interesting, however,
most of the tools in java just dont sync with node. Java is based
largely on the idea that threaded systems are great (look at the
synchronized keyword). It's APIs are blocking except NIO (which has
virtually no optimization). You could give the node implementation on
it a single thread per async call, but then its just doing what Java
would do to begin with.