This idiocy "if two have distinct single provenance, the result has empty provenance" invalidates real code w/no althttps://twitter.com/bmastenbrook/status/725048588053655554 …
@ch3root In-place algorithms on data structures where you only have one modifiable pointer-size slot.
-
-
@ch3root "XOR swap" on the other hand is cargo-cult-"optimization" BS.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@RichFelker compilers could simply disallow casts between ptr and integer if the CPU does not support it anyway -
@tyroxxxx Cast is mandated (impl-defined) but not required to be meaningful or round-tripable unless [u]intptr_t is defined (optional). -
@RichFelker oh I did not know that. So it is already as I said. The cast to uintptr_t does not compile because it does not exist. -
@tyroxxxx Exactly. For all other impl-defined ptr/int conversions you an simply define the results as 0/NULL for all inputs.
End of conversation
New conversation -
-
-
@RichFelker@ch3root somewhat related,@paulmckrcu has been threatening to write a paper to allow tagged pointers in the language! -
@jfbastien@RichFelker@ch3root I don't make threats! :-) -
@paulmckrcu@RichFelker@ch3root more seriously we should write that paper in Oulu. No evenings, I'm told! - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.