<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2020, at 2:42 AM, Jason Tribbeck <<a href="mailto:jason@tribbeck.com" class="">jason@tribbeck.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">That sort of reminds me of a friend of mine who was using a CPU (and compiler) whose NULL address was 0x80000000.<div dir="auto" class=""><br class=""></div><div dir="auto" class="">Caused no end of trouble when porting code from programmers who instead of comparing a pointer with NULL just checked it against zero...</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">I.e. they did this:</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">if (my_pointer) address_is_valid();</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Instead of:</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">if (my_pointer != NULL) address_is_valid();</div></div></div></blockquote></div><div class=""><br class=""></div>Classic. <facepalm><div class=""><br class=""></div><div class="">Perhaps it's just me but when I see numbers like "0x80000000" I cringe, grit my teeth, and feel my eyes glaze over. I never could see very well but that is absolutely illegiible. Are there any languages/IDEs/whatever that can put some commas in there and still compile without an error?</div><div class=""><br class=""></div><div class="">I started out using hex In 6502 and 6811 assembler (with the "$" prefix) so to me that's $80000000. I prefer hexadecimal over every other "commonly" used numeric base. Not only do I find it to be the "easiest" for doing "computer stuff" but after working with CEEMAC for a while I discovered that bases that are *even* powers of two are the most "elegant". CEEMAC is basically a parameter generator for creating abstract animation and I did a lot of tweaking constants by multiplying/dividing by 1.5 and 3. Once I got the hang of doing that I was truly in love with hex.<div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Terry Bowman, KA4HJH<br class="">"The Mac Doctor”<br class=""><br class="">Who is still dreaming of creating a new version of Brooke Boering's (RIP) CEEMAC</div>
</div>
<br class=""></div></div></body></html>