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.
[ Parent
| on HN ]
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.