[sdiy] Programming Language Recommendation

KA4HJH ka4hjh at gmail.com
Wed Dec 9 23:55:29 CET 2020


> On Dec 8, 2020, at 2:42 AM, Jason Tribbeck <jason at tribbeck.com> wrote:
> 
> That sort of reminds me of a friend of mine who was using a CPU (and compiler) whose NULL address was 0x80000000.
> 
> Caused no end of trouble when porting code from programmers who instead of comparing a pointer with NULL just checked it against zero...
> 
> I.e. they did this:
> 
> if (my_pointer) address_is_valid();
> 
> Instead of:
> 
> if (my_pointer != NULL) address_is_valid();


Classic. <facepalm>

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?

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.


Terry Bowman, KA4HJH
"The Mac Doctor”

Who is still dreaming of creating a new version of Brooke Boering's (RIP) CEEMAC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20201209/c11d6d2f/attachment.htm>


More information about the Synth-diy mailing list