Finally switching over to terse types, like Jeff uses. Really like them. s32/u32 is nicer than int32/uint32. Shoulda switched long ago!
-
-
Replying to @cmuratori
@cmuratori the whole "signed" vs "unsigned" kinda rankles, though. It might be time to revoke "unsigned"'s status as numbers...1 reply 0 retweets 0 likes -
Replying to @danl2620
@cmuratori rather than strings of bits. MLton and others had the right idea: there are integers and words. C lib and size_t are the anchors1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori using uintptr_t? It's drastic, but I say no arithmetic or comparison involving unsigned. They're a relic of bygone era.
1 reply 0 retweets 0 likes -
Replying to @danl2620
@cmuratori by comparison I mean < and >. == still makes sense...1 reply 0 retweets 0 likes -
Replying to @cmuratori
@danl2620 (namely that it can move your pointers backward)1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@danl2620 Any brief snippets/links to show how uintptr_t moves pointers? Thought they were kosher since sizeof==8 and unsigned :(1 reply 0 retweets 0 likes
@michaelbartnett @danl2620 Sure. If you want to move a pointer backwards by one byte, just set your uintptr_t to 0xFFFFFFFFFFFFFFFF.
-
-
Replying to @cmuratori
@cmuratori@michaelbartnett colloquially known as -1LL :p1 reply 0 retweets 0 likes -
Replying to @danl2620
@danl2620@cmuratori@michaelbartnett -1LL has a signed type. 0xFFFFFFFFFFFFFFFF has an unsigned type (per the standard, at least)1 reply 0 retweets 0 likes - Show replies
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.