4 ms·
Monadic composition of futures for nonblocking servers is the way to go, but in javascript? With no for comprehension syntax? With no ability to express the asy
by pkinsky 13y ago
Monadic composition of futures for nonblocking servers is the way to go, but in javascript? With no for comprehension syntax? With no ability to express the asynchronous nature of your code via the type system using Future[T]?
Node.js does some amazing things, but it builds on very unsound soil, namely javascript.
Edit: to end on a positive note, Scala is doing some great things with nonblocking systems. Check out the play framework, finagle, Future and Promise types in the core library, etc. It's not quite Haskell, but it has the advantage of running on the JVM with easy Java interop.