Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
I think about C99 strict aliasing rules (alanwu.space)
10 points by fanf2 9 months ago | hide | past | favorite | 1 comment


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: