Deutsch   English   Français   Italiano  
<v7dvuk$31ie5$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Buzz McCool <buzz_mccool@yahoo.com>
Newsgroups: comp.lang.forth
Subject: Re: Average of a [stack]
Date: Fri, 19 Jul 2024 08:15:32 -0700
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <v7dvuk$31ie5$1@dont-email.me>
References: <v3raig$1bhkt$1@dont-email.me>
 <1ae05d1531d54df162c500815909ee37@www.novabbs.com>
 <v6n0pr$2363u$1@dont-email.me> <668f5204$1@news.ausics.net>
 <v6p1ku$2hr48$1@dont-email.me> <6690a89a$1@news.ausics.net>
 <v6rour$34faa$1@dont-email.me> <v73lm1$pnjq$1@dont-email.me>
 <73d08b71ac0ad0d4425ade2d6915c14a@www.novabbs.com>
 <v7baf5$2f8e5$1@dont-email.me> <6699c626$1@news.ausics.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 19 Jul 2024 17:15:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="148ee059f844ea39c5723d0a0294a005";
	logging-data="3197381"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18sHenRu/M5y76wg45c751EQBCDlylzl8g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9Q9c1A5qx7PD2K+Z/vkyG2PxtSo=
In-Reply-To: <6699c626$1@news.ausics.net>
Content-Language: en-US
Bytes: 2169

On 7/18/2024 6:49 PM, dxf wrote:
> 
> While c.l.f. challenges are often couched in terms of items on a stack,
> one is more likely to be dealing with data in memory and a count.
> Shifting the operation to the stack (assuming that's even viable) strikes
> me as unnecessary.

In this instance, I was using Forth as a scientific calculator that I 
could easily show the data input, algorithm, and output results in a 
reproducible and sharable fashion.

I stumbled upon the "Average of a list" thread from last month and took 
advantage of the discussion to get the knowledgeable c.l.f denizens to 
whittle down my naive code to its essentials and learn fish for myself a 
bit better in the future. Many thanks you and all who take the time to 
teach or opine.