Posted by ibobev 5 days ago
It’s a controversial trade-off to be sure, but it’s not like there isn’t a sound logic to it.
One can browse other blog entries so it really doesnt matter too much.
brutal. hope major compiler vendors throw in a flag that can bring some sanity to this
In other words, I am mentally well.
1. An infinite busy loop.
2. A thread yield/sleep.
It is by definition undefined behavior. You don't know what you're going to get!
In a lot of cases, you might insert some 'wait-for-interrupt' type instruction in the loop that halts the CPU more 'cleanly' (and in a lower power mode), and usually this will appear as a side-effect and keep the behaviour defined. But this is not always desirable or possible.
So yes, it is good for Rust.