Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Data races on an underlying array buffer due to simultaneous accesses from multiple threads do not have "a small chance" of occurring in virtually any language where it's allowed.

You can argue that a borrow checker isn't a good fit for Golang, and I'd even agree with you on that, but let's be candid about the frequency of data races in the wild.



In reasonably written message-passing Go code it's not likely. It's no different from any other situation where you've got a slice that isn't supposed to be modified anymore.

> let's be candid about the frequency of data races in the wild.

Wow.


I think we should assume by default that code is not reasonably written.

Tool chains that check properties for us are incredibly useful.


Have you used Go and ran into problems with people overwriting data in slices underneath you? Was it to such a degree that it took precedence over other bugs and slowed down development in the effort to catch these mistakes manually?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: