News for hackers. Stuff that matters.
Re:Would Rust have prevented Heartbleed? Another look by slimsag on Tuesday March 17, 2015 @03:33PM (#9220660)
Why can't you transfer buffers as []byte or []float32 etc to another goroutine over a channel? Hint: that doesn't copy the buffer, it just transfers "ownership" of it.
Re:Would Rust have prevented Heartbleed? Another look by surrealize on Tuesday March 17, 2015 @04:41PM (#9221294)
What if the buffer is aliased? In rust, when you transfer ownership, you can statically guarantee that there's no aliasing. But AFAIK that's not possible in go.
Re:Would Rust have prevented Heartbleed? Another look by TheDong on Tuesday March 17, 2015 @09:46PM (#9223064)
"ownership" was in quotes because what he really means is "logical, but not language guaranteed, ownership". Both sides of the channel still can touch the underlying data and cause races.