Re:Clear defensive programming with Go using Verifier library
by Groxx on Thursday August 09, 2018 @12:31PM
(#17725674)
Just to +1 this: it aligns with very nearly all Go-core-team concurrency/parallelism stances I've seen. Go intends to support concurrency, not parallelism, and they go to great lengths to remind people that they're not the same thing.
Re:Clear defensive programming with Go using Verifier library
by supernovae on Thursday August 09, 2018 @01:41PM
(#17726490)
Who said anything about parallelism? Concurrency still works beautifully on multicore CPUs. I'm writing jobs that have lots of tasks, not jobs that parallelyze a single task...
Re:Clear defensive programming with Go using Verifier library
by pcwalton on Thursday August 09, 2018 @02:07PM
(#17726778)
Concurrency works just as beautifully on single-core CPUs. :)
Re:Clear defensive programming with Go using Verifier library
by supernovae on Thursday August 09, 2018 @05:54PM
(#17728892)
yup, it works great on both :)
Goroutines and channels are best used as concurrency primitives, not parallelism tools.