rust-atomics-and-locks
rust-atomics-and-locks copied to clipboard
A couple less "concrete" suggestions
The content that the question is about
No response
The question
Here are a couple of other notes that I took while going through the book that are more general feedback/suggestions about particular sections (vs typos etc):
- Chapter 3 - the explanation of fences feels like it could have been fleshed out a bit more, I came away slightly confused as to what exactly it guarantees and why/how
- Chapter 5: I could use a bit more of an explanation of the stuff around
Channel<T>
beingSync
ifT: Send
(I've read aboutSend
/Sync
but feel a bit fuzzy on those generally) eg why exactly is it ok to implementSync
under those conditions and how exactly does that flow through the code to give us the desired/expected use of the channel across threads?
(no need to try and explain these here unless you feel very compelled to, more just suggestions for those sections of the book)
I found the book to be written at a very high level of quality throughout, I appreciated how "focused" and "sober" it was, so thank you!