News for hackers. Stuff that matters.
Re:Updating the Go Memory Model by twotwotwo on Monday July 12, 2021 @09:06PM (#27816777)
Just in theory: pointer/capacity pair is atomic, then you read len non-atomically and check it's less than cap before using it. Slice header today puts len before cap, but, like, if we're dreaming.

You'd probably hit other walls. I'm def. not trying to say it's straightforward!

There are no comments on this comment yet.