3 ms·
I code in Scala for some time now. Love this language! Though I think that Node.JS is something different and has different purpose(yet to be discovered). Scala
by Slashed 17y ago
I code in Scala for some time now. Love this language! Though I think that Node.JS is something different and has different purpose(yet to be discovered). Scala as any language that runs on JVM, doesn't completely support Non-Blocking IO(this should be fixed in Java 7 though).
- riobard 17y ago"JVM, doesn't completely support Non-Blocking IO" Isn't java.nio supposed to provide non-blocking IO (at least for socket)?
- Slashed 17y agoYeah, for sockets java.nio does that just fine, not for files. Of course, it's an improvement over plain java.io but still it's not non-blocking.
- gojomo 17y agoActually, given improvements in threading, NIO doesn't give faster socket throughput in typical many-connection servers. See: http://paultyma.blogspot.com/2008/03/writing-java-multithreaded-servers.html http://paultyma.blogspot.com/2008/03/writing-java-multithrea...