[sdiy] Programming Language Recommendation

Eric Honour autophage at gmail.com
Thu Dec 10 01:13:18 CET 2020


>
> 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'm not aware of any out of the box, but in most compiled languages you
could add a build step that strips them away - and some development
environments are sufficiently customizable that you might even be able to
coerce one to display commas that aren't actually in the "real" source file
(or set up some other way of differentiating - for example changing the
text color every 3 digits in a row).

On Wed, Dec 9, 2020 at 5:58 PM KA4HJH <ka4hjh at gmail.com> wrote:

>
> 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
>
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20201209/966008c1/attachment.htm>


More information about the Synth-diy mailing list