3 ms·
> it would be great if the language could make the sort utilise all the available cores on the machine. I'm not sure how I feel about this, because a single pr
by anonacct37 9y ago
> it would be great if the language could make the sort utilise all the available cores on the machine.
I'm not sure how I feel about this, because a single program doesn't own the machine. I don't necessarily want a language to automatically use all the cores any more than I want the language to automatically use all my memory or bandwidth.
I think the GOMAXPROCS approach kind of makes sense. You can spin up as many serial independent tasks as you want, and go will use up to GOMAXPROCS threads.