Re:Go is amazing, period.
by casualsuperman2 on Monday March 19, 2012 @10:50AM
(#3724151)
The current weekly release has (and Go v1 will have) runtime.NumCPU() so you can do runtime.GOMAXPROCS(runtime.NumCPU())
Re:Go is amazing, period.
by saucetenuto on Monday March 19, 2012 @01:40PM
(#3725099)
Is that the default? If not, why not?
This is what Erlang does by default, GHC >= 6.12 will do it when using `+RTS -N -RTS` and Go requires explicitly setting GOMAXPROCS, the runtime defaults to single-threaded (as far as I know, GOMAXPROCS still hasn't been retired) and there is no way to have it auto-detect the core count.