From Ruby to Go: a rewrite for the future - http://blog.scoutapp.com/articles/2014/09/25/from-ruby-to-go-a-rewrite-for-the-future …
@ScoutApp Or, if you like:
def go() Thread.new { yield } end
urls.map {|u| go { open(u).body } }.map(&:value)
-
-
-
@raykrueger@ScoutApp This is not a CPU-bound operation. If the question is whether they will run concurrently, the answer is yes :) -
-
@raykrueger@ScoutApp 1) by default, Go uses GOMAXPROCS=1, which uses one core. 2) please explain the nature of the gotcha? -
New conversation -
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.