Login
You're viewing the felin.social public feed.
  • Oct 22, 2026, 8:46 PM

    @thephd One of the bigger changes i would like to see in C is to push a bunch of "undefined behaviour" to "a bunch of bits are produced". float to unsigned produces undefined behaviour. No one except someone with a PhD in GCC optimisations wants that. What programmers would be okay with is "a bunch of bits are produced" and stuffed into your unsigned int. There are probably hundreds of these in the standard. And it is, i believe, what 1990s C programmers _expected_ the compiler to do. And it did, until the "advanced compiler optimisation" people came along and claimed undefined behaviour for their own. Obviously my suggested change affects no correct C program.

    💬 0🔄 0⭐ 0