Re:Twitter accounts dropping “.eth” from usernames
by jrockway on Friday April 08, 2022 @02:01PM
(#30960441)
What's interesting to me is that there is also a contingent of people that represent hexadecimal numbers with an "h" suffix, like FACEDEEDh. I always wondered what pushed people one way or the other. I learned 0x first but see "h" most in assembly code listings (which was indeed not my first programming language) and hardware datasheets.
[ Parent
| on HN ]
Re:Twitter accounts dropping “.eth” from usernames
by 1597 on Saturday April 09, 2022 @09:00AM
(#30967677)
"h" suffix is a pain in the ass in MASM and probably other assemblers (a leading 0 is required for hex literals that begin with a letter to distinguish from identifiers e.g. mov eax, 0FACEDEEDh)
Re:Twitter accounts dropping “.eth” from usernames
by IncRnd on Friday April 08, 2022 @03:13PM
(#30961305)
That's definitely true.
I think it comes from the preference of the author of an assembler's parser regarding how to recognize a number's base - either by analyzing the string or by forcing the progammer to declare upfront.
Re:Twitter accounts dropping “.eth” from usernames
by bspammer on Saturday April 09, 2022 @06:24AM
(#30966750)
The prefix seems better to me because you read it first, and also the x is a more clear marker than h because it’s at the opposite end of the alphabet to the rest of the hexadecimal digits.