I love `urls.map { |u| Thread.new { http.get(u) } }.map(&:value)` in Ruby. Simple parallelization of blocking I/O (`http.get` is an example)
-
-
@wycats what's your opinion on finagle’s (or is it netty’s?) everything-returns-a-future approach to network apps? could rack do this? -
@markov_twain futures are less relevant when you have sync I/O but can still be very convenient when combined (`all`, `choose`, etc.) -
@wycats ah, hence their impl of twitter.util.Future (instead of java.util.concurrent.Future) — filter, flatMap, select, etc.? interesting
End of conversation
New conversation -
-
-
@wycats@markov_twain the future then `then` ;)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.