4 ms·
"like channels and goroutines" Channels and goroutines advertised as the poster child of Go language features for simplifying concurrency since the beginning.
by mda 11y ago
"like channels and goroutines"
Channels and goroutines advertised as the poster child of Go language features for simplifying concurrency since the beginning. When I tried to use them I was surprised how difficult actually it is to use them correctly, so many subtleties to deal with.
Yes they are addictive, but I suspect beginners really are not using them correctly.
- fauigerzigerk 11y agoBeginners don't remain beginners forever. My yardstick for whether or not I like a particular approach is looking at old code that I have written months ago. The more quickly I can get back into it without fear of breaking things, the better the design is. By that admittedly subjective standard, goroutines and channels have been a big success (compared to asynchronous code).
- danieldk 11y agoBy that admittedly subjective standard, goroutines and channels have been a big success (compared to asynchronous code). Well, your barrier is also very low :). Try e.g. Erlang's actor model.
- deleted 11y ago[deleted]
- fauigerzigerk 11y agoWhat puts me off Erlang is its dynamic typing and lack of speed for algorithmic code. I'm just not smart enough for dynamically typed languages it seems (even though I do like some of them -- Python).