10 ms·
"More bugs in Go code are related to message passing than shared memory" and "Go's message passing reduces the number of bugs in code" are not necessarily contr
by lalaithion 7y ago
"More bugs in Go code are related to message passing than shared memory" and "Go's message passing reduces the number of bugs in code" are not necessarily contradictory statements. It's entirely possible that the code which can be implemented by message passing would have been the most difficult to deal with even if it were done with another concurrency framework, and would have had more bugs in that case.
How does Go's message passing compare to an implementation in C/C++ using shared memory? What about using a modern async/await framework, like in Javascript or C#? What about using Software Transactional Memory? None of these questions are answered.