Deutsch   English   Français   Italiano  
<32b260f4dc1df7ae6f030a05b06b2387@www.novabbs.com>

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

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: Operator =?UTF-8?B?b3ZlcmxvYWRpbmc/?=
Date: Thu, 25 Jul 2024 14:49:55 +0000
Organization: novaBBS
Message-ID: <32b260f4dc1df7ae6f030a05b06b2387@www.novabbs.com>
References: <a1aab44ee3b1b56c2f54f2606e98d040@www.novabbs.com> <pzvvwo76lx5kh.fsf@barkhauseninstitut.org> <698bd09c6db27738ab6a1c3222aba1e1@www.novabbs.com> <0c72aa3f18201b4672ed0fc3500bd236@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="320994"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="0+ejqm+s29REto3A2x2P4fP+XaUXf51pZgtYBR0nEqI";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
X-Rslight-Site: $2y$10$6HN3niHuXc/fzDJA.4E8TOhWG63GoWSE9hEiZqRvaoA20.8YZifvC
Bytes: 1781
Lines: 16

On Thu, 25 Jul 2024 9:06:03 +0000, mhx wrote:

> DO you mean something like the below? The code stays the
> same but it is possible to choose a different type of
> variable (from BYTE to arbitrary precision).

Thank you! Yes, something like that.

If I understand correctly, the intelligence is within LET
which decides which operator matches the type of the operands.

I have also dynamic vector and array types. And 24-bit floats..
The other discussion in the automatic differentiation thread
introduces dual fp-numbers, etc. Overall, working with many
different types would explode the number of type-dependent
operators. So it becomes a natural idea to smarten up the
compiler in this respect.