Losing the magic
Losing the magic
Posted Dec 6, 2022 18:03 UTC (Tue) by Wol (subscriber, #4433)In reply to: Losing the magic by khim
Parent article: Losing the magic
> The big trouble (and also what makes them truly hopeless) is that hardware is often buggy, it very much contains lots of UBs (especially if you use raw prototypes) but because it's physical thing, UBs are limited. Something doesn't become set when it should, or you need a delay, of if you do something too quickly (or too slowly!) there's a crash… but it rarely happens that issue in one part of you device affects another, completely unrelated part (except if you are developing something like modern 100-billion transistors CPU/GPU… but that's not embedded and I'm not even sure you may classify what these people are doing as “hardware” novadays).
In other words, with C's assumption that UB is impossible, we now have a conundrum if we want to write Operating Systems in C!
Which has been my problem ALL ALONG. I want to be able to reason, SANELY, in the face of UB without the compiler screwing me over. If that's an O_PONY then we really are fscked.
Cheers,
Wol
