News for hackers. Stuff that matters.
Re:Vert.x – JVM Polyglot Alternative to Node.js by kyleburton on Friday May 04, 2012 @11:43AM (#3928883)
I am talking about the cultures surrounding these languages and frameworks. Node's community rejects blocking libraries. Java's does not. I've used the non-blocking frameworks in Perl (POE and my own), C (select, and some of the poll variants), Ruby (event machine) and they are fine if you can avoid blocking libraries -- in these communities it is generally acceptable to write blocking libraries. I don't see it as a technical hurdle, I see it as a cultural one.
Re:Vert.x – JVM Polyglot Alternative to Node.js by Locke1689 on Friday May 04, 2012 @12:56PM (#3929286)
You need to start backing up your claims with actual data. What networking libraries are blocking in Node.js that are not blocking in Twisted? Moreover, what can't you do with a Twisted Deferred that you can do in Node.js?

There are two main things that block in computing:

* I/O

* CPU

You better believe that Node blocks on CPU, so what I/O does Node not block on that Twisted does?

Re:Vert.x – JVM Polyglot Alternative to Node.js by batista on Friday May 04, 2012 @12:07PM (#3929010)
I am talking about the cultures surrounding these languages and frameworks. Node's community rejects blocking libraries. Java's does not.

So what?

You get tons of Java libs to use, a majority of blocking ones and lots of non blocking on one hand, or you restrict yourself to the fewer non-blocking libs of varying quality available for Node.

With Java you can also turn blocking libs to non blocking with a wrapper and threads, whereas with Node.js if it's blocking you're screwing, because the js engine is single-threaded.

Re:Vert.x – JVM Polyglot Alternative to Node.js by ricardobeat on Friday May 04, 2012 @05:34PM (#3930445)
Node is nearing 10k published libraries. Is there a comprehensive site listing Java libraries?

It's trivial to offload blocking operations to other processes in node too, it's just not the preferred option.

Re:Vert.x – JVM Polyglot Alternative to Node.js by moe on Friday May 04, 2012 @06:35PM (#3930635)
Node is nearing 10k published libraries.

And ruby has 38237 gems. 99,9% of which are garbage.

Library-count is a terrible metric.

Re:Vert.x – JVM Polyglot Alternative to Node.js by juiceandjuice on Friday May 04, 2012 @06:36PM (#3930639)
Have you ever programmed in Java? That's a strange question to ask if you have.

http://mvnrepository.com/

Whatever libraries node has is a drop in the bucket compared to java.

Re:Vert.x – JVM Polyglot Alternative to Node.js by ricardobeat on Saturday May 05, 2012 @09:55PM (#3933888)
I haven't, thats why I asked. Node is just 2 years old. You'll get 90% of garbage on any open package manager.
Re:Vert.x – JVM Polyglot Alternative to Node.js by soc88 on Friday May 04, 2012 @12:08PM (#3929022)
You make it sound like "rejecting blocking libraries" was some noble principle. Due to the severe limitations of JavaScript, there is no other choice.