10 ms·
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 ton
by batista 15y ago
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.
- ricardobeat 15y agoNode 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.
- moe 15y agoNode is nearing 10k published libraries. And ruby has 38237 gems. 99,9% of which are garbage. Library-count is a terrible metric.
- juiceandjuice 15y agoHave you ever programmed in Java? That's a strange question to ask if you have. http://mvnrepository.com/ http://mvnrepository.com/ Whatever libraries node has is a drop in the bucket compared to java.
- ricardobeat 15y agoI haven't, thats why I asked. Node is just 2 years old. You'll get 90% of garbage on any open package manager.