🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #82

Re: Optimization by programmers

#82
From: Niklas Holsti
Date: Tue, 13 Oct 2026 17:02
21 lines
1940 bytes
On 2026-10-13 19:09, Andy Valencia wrote:
> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> hex \ change to base #16
>> add \ is this a dictionary word, or a number?
>>
>> The classic ways to avoid this has been to
>>
>> 1) prefix hex numbers with 0 if they would otherwise start with a
>>     letter.  Dictionary words rarely start with digits, and when they
>>     do, they don't conflict with hex numbers.
> 
> Alternately, Forth could adopt practices which have become broad,
> de facto standards.  So, referencing above, instead hex numbers
> have a 0xadd prefix, and you don't switch the base of the system.
> 
> While you're at it, start the transition to "//" as the comment
> token.  From memory, who's holding out?  Only Forth, Smalltalk, and
> COBOL come to mind.

Ada uses "--".
Technical Details
Message-ID: <nj76h5FnesuU2@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <11aiqc0$3kr94$3@dont-email.me> <179190779286.25645.14465927900754526737@media.vsta.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Newsgroups: comp.arch
Subject: Re: Optimization by programmers
Date: Tue, 13 Oct 2026 20:02:29 +0300
Organization: Tidorum Ltd
Lines: 21
Message-ID: <nj76h5FnesuU2@mid.individual.net>
References: <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me>
 <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me>
 <11aiqc0$3kr94$3@dont-email.me>
 <179190779286.25645.14465927900754526737@media.vsta.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net VAcoBKNokcCxi6Lq8/FnDwnW2hhX8kq2sMSjLd7eWO/tBBkBgb
Cancel-Lock: sha1:rkx39uXfURy+qniTqMhv9gCPE+E= sha256:Kb2eqzGqgJLgOTxwhJ7JMCX1/qamdSOyNZQLVZ8woqk=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <179190779286.25645.14465927900754526737@media.vsta.org>