3 ms·
One might say that passing raw pointers around is against the point of CSP. As I understand it go does exactly what the Singularity OS does, pass over ownership
by nickik 13y ago
One might say that passing raw pointers around is against the point of CSP. As I understand it go does exactly what the Singularity OS does, pass over ownership instead of copy or raw pointer.
This seams more idimotic, and more CSPish to me.
(Passing around pointer/references to immutables is of course ok)
- masklinn 13y ago> As I understand it go does exactly what the Singularity OS does, pass over ownership instead of copy or raw pointer. I may misunderstand what you're talking about, but as far as I know Go more or less passes a raw pointer (or a copy thereof) over pointer channels. It has no concept of ownership, and the pointer (and pointee) on the sender side remains valid: http://play.golang.org/p/E1bqrVFxZ6 http://play.golang.org/p/E1bqrVFxZ6
- deleted 13y ago[deleted]
- nickik 13y agoI mixed up go and rust. Go send around raw pointers.
- nickik 13y agoMixed up go and rust.