Re:The end of the kernel Rust experiment
by kevin_thibedeau on Wednesday December 10, 2025 @03:13PM
(#46223091)
C doesn't require convertibility to an integer and recognizes that pointers may have atypical representations. Casting to integer types has always been implementation defined. [u]intptr_t is optional specifically to allow such platforms to claim standard conformance.
[ Parent
| on HN ]
Re:The end of the kernel Rust experiment
by torginus on Wednesday December 10, 2025 @04:02PM
(#46223804)
I know, but from what you wrote, Rust kinda assumes pointers are ints (because they are the same type as array indices)
So as to not only hate on Rust, I want to remark, that baking in the idea that pointers can be used for arithmetic isn't a good one as well.