Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.setup,comp.os.linux.advocacy,sci.physics Subject: Re: I think in FORTH & program in C/C++. Date: Fri, 1 Oct 2021 20:20:59 -0600 Lines: 44 Message-ID: References: <8vD5J.60686$jm6.47519@fx07.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net dg0vKmEPqhKsncpOp/VqRw0YhLhbVD4IYxojPahCtfaWRtrg1e Cancel-Lock: sha1:K9x8C9CFunqZbYNMG+nFuPQwqPg= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 In-Reply-To: Xref: csiph.com comp.os.linux.setup:4554 comp.os.linux.advocacy:595026 sci.physics:833453 On 10/01/2021 12:18 PM, Branimir Maksimovic wrote: > On 2021-10-01, rbowman wrote: >> On 10/01/2021 06:51 AM, Branimir Maksimovic wrote: >>> On 2021-10-01, chrisv wrote: >>>> rbowman wrote: >>>> >>>>> chrisv wrote: >>>>>> >>>>>> Have you seen Relf's code? It's intentionally cryptic. It's >>>>>> horrible. >>>>> >>>>> I've seen enough terrible things in my life... We had a programmer that >>>>> fell in love with macros. There really wasn't any code there until you >>>>> ran it through a compiler. >>>>> >>>>> I think it was Ritchie who said that allowing macros in the language was >>>>> one of his worst mistakes. It was such an innocent little idea... >>>> >>>> It should not surprise you, then, to learn that Relf uses macros a >>>> *lot*. >>>> >>> >>> problem with macros is that they are just text replacements and they >>> confuse people reading source... >>> >>> >> >> When used creatively they are a lot more than text replacements. MAX(a, >> b) is just the start of the slippery slope. >> >> I remember one project where macros were used in a macroassembler to the >> point where the source text looked like C. >> >> Then there is the old joke that FORTH is a language that uses the >> programmer as a preprocessor. > Assemble should look like assembler, therefore attempts to make > it look like different F|aiLED :P > That's my feeling but I spent too much time with microcontrollers like the 8049. 2K of ROM and 128 bytes of RAM you damn well better know where every byte is.