I think about C99 strict aliasing rules
8 fanf2 1 5/16/2025, 8:42:03 PM alanwu.space ↗
Comments (1)
thasso · 1h ago
Systems languages have these weird semantics to allow writing performant low-level code and abstracting over the hardware at the same time (unsafe Rust too, check out its memory model for example). This doesn’t make any sense. Either you want a high level language to write correct code on many machines, or, if you want to make code fast, you want a language that allows writing for a specific platform. The C standard is stupid, just turn on -fno-strict-aliasing like any sane person would and get on with it.