|
|
|
|
|
by xorblurb
3208 days ago
|
|
This seems like an interesting book but a few points are dangerous, especially if it is used for teaching. 1. Concurrent access to a variable out of a critical section is qualified as not being dangerous. This actually can't be decided without knowing about the memory model you are considering, and both in the general case and in practical implementations (C++) this is UB. 2. This sentence is maybe only trying to be funny, but discouraging formal proofs in 2016 can very well end up borderline criminal (depending on the application):
"The only alternative is to examine the code carefully and “prove” that it is correct. I put “prove” in quotation marks because I don’t mean, necessarily, that you have to write a formal proof (although there are zealots who encourage such lunacy)." Especially if this is stated right after a rather simple algorithm. I can absolutely not recommend a book about a critical topic, which contains that kind of defects. |
|
Huh. I had heard of nasal demons before but I had never seen this abbreviation "UB"
TIL, UB and IB
https://stackoverflow.com/questions/2766731/what-exactly-do-...