Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Ada is PL/I trying to be Smalltalk. -- Codoso diBlini


devel / comp.lang.forth / Re: 64-bit Forth opinion?

SubjectAuthor
* Re: 64-bit Forth opinion?Kip Ingram
+- Re: 64-bit Forth opinion?Marcel Hendrix
`* Re: 64-bit Forth opinion?Anton Ertl
 +* Re: 64-bit Forth opinion?S Jack
 |+* Re: 64-bit Forth opinion?Myron Plichota
 ||`- Re: 64-bit Forth opinion?Myron Plichota
 |`* Re: 64-bit Forth opinion?Paul Rubin
 | +- Re: 64-bit Forth opinion?S Jack
 | `* Re: 64-bit Forth opinion?minf...@arcor.de
 |  +* Re: 64-bit Forth opinion?Anton Ertl
 |  |+* Re: 64-bit Forth opinion?minf...@arcor.de
 |  ||`- Re: 64-bit Forth opinion?Anton Ertl
 |  |`* Re: 64-bit Forth opinion?Marcel Hendrix
 |  | +* Re: 64-bit Forth opinion?Stephen Pelc
 |  | |`* Re: 64-bit Forth opinion?minf...@arcor.de
 |  | | `- Re: 64-bit Forth opinion?Marcel Hendrix
 |  | `- Re: 64-bit Forth opinion?Anton Ertl
 |  `* Re: 64-bit Forth opinion?Stephen Pelc
 |   `- Re: 64-bit Forth opinion?Anton Ertl
 `- Re: 64-bit Forth opinion?none

1
Re: 64-bit Forth opinion?

<t2tk6t$qo7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17556&group=comp.lang.forth#17556

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: kip.ing...@gmail.com.invalid (Kip Ingram)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Sun, 10 Apr 2022 03:50:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <t2tk6t$qo7$1@dont-email.me>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
Reply-To: Kip Ingram <kip.ingram@protonmail.ch>
Injection-Date: Sun, 10 Apr 2022 03:50:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a2cf314e014446fd5599fd38420277d4";
logging-data="27399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HxSTdgpahASPpd98Ri+ISXtJE6pdPkZk="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:CigY4rlmKIsN/sFosrVyWPmg1a0=
 by: Kip Ingram - Sun, 10 Apr 2022 03:50 UTC

On 2017-08-22, minforth@arcor.de <minforth@arcor.de> wrote:
> Just musing whether I should engage on this road or not:
>
> 16/32 bit is adequate enough for ~ 98% of Forth applications. After all Forth is not in the same ballpark league as SciPy for example.
>
> OTOH sometimes speed matters, e.g. image processing or analyzing big data files.
>
> But for this a full 64-bit system is not really needed. Code size is never that large.
> It would suffice to being able to address the larger address range of > 4GB.
> E.g. by special new cperators a la CQ@ ( quad-adr -- char ).
>
> Or am i missing something here???
>
> P.S. as 64-bit CPUs seem to use only 48 bit, quad addresses would fit into the mantissa of floating poiint numbers. But I fear such overloading would make
> the thing too slow...

My own home-grown Forth is a 64/32 bit system. The data stacks, variables, and so on are 64 bits - all of the "internals" of the system
(cells in definition lists, CFAs, PFAs, etc.) are 32 bits. I'm currently using a Fedora 34 system, but I first wrote thhis Forth under
MacOS, and Apple's MACHO executable format requires code to be fully relocatable. I dealth with this by having all "address specifying"
entities in the system be offsets - either from the base of the word "bodies" or the base of the "headers." I keep both of those quantities
in registers, so I just do a quick register add to offsets, as appropriate, to get addresses.

Once an address lands on the stack, it's a right and proper 64-bit address (i.e., the "dovar" handler adds the right base address and so on).

I've been quite happy with this structure so far. I get 64-bit data and calculations, but the systems not so bloated as it would be if
EVERYTHING were 64 bits.

My reasonging on this was that this allows me to have self-contained Forth operation over a 4 GB span, and I just can't imagine ever filling
that up. On the other hand, I can at least IMAGINE filling up 64k, though we all know how compact Forth is, so it might take a while.

Anyway, just thought I'd inject here that such a "hybrid" system can work quite well, and sort of "straddles the fence."

Re: 64-bit Forth opinion?

<c13f2ea1-2a6c-450a-92a3-1b21b7d7cebdn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17558&group=comp.lang.forth#17558

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:2552:b0:67b:32e2:2400 with SMTP id s18-20020a05620a255200b0067b32e22400mr17550520qko.768.1649574282145;
Sun, 10 Apr 2022 00:04:42 -0700 (PDT)
X-Received: by 2002:aed:3148:0:b0:2ed:55a5:7a92 with SMTP id
66-20020aed3148000000b002ed55a57a92mr1491880qtg.104.1649574282022; Sun, 10
Apr 2022 00:04:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 10 Apr 2022 00:04:41 -0700 (PDT)
In-Reply-To: <t2tk6t$qo7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.30.53.30; posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 84.30.53.30
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c13f2ea1-2a6c-450a-92a3-1b21b7d7cebdn@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Sun, 10 Apr 2022 07:04:42 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 27
 by: Marcel Hendrix - Sun, 10 Apr 2022 07:04 UTC

On Sunday, April 10, 2022 at 5:50:55 AM UTC+2, Kip Ingram wrote:
> On 2017-08-22, minf...@arcor.de <minf...@arcor.de> wrote:
> > Just musing whether I should engage on this road or not:
> >
> > 16/32 bit is adequate enough for ~ 98% of Forth applications. After all Forth
> > is not in the same ballpark league as SciPy for example.

Then you're doing it wrong :--)

> > OTOH sometimes speed matters, e.g. image processing or analyzing big data files.
> >
> > But for this a full 64-bit system is not really needed. Code size is never that large.
> > It would suffice to being able to address the larger address range of > 4GB.

Not a bad assumption. The problem is that you might be isolating yourself from
others, be it Forth or foreign libraries, and it might limit you to certain hardware.

The first versions of iForth had a single 64k segment for code and many
segments for data (so address where 32bit), and I tried a few variants of
that. It worked fine, but none of that code I can, or will, use anymore (the
limitation influenced the source code).

If it is possible to *completely* hide the limited code size in the software,
it is of course a different matter. E.g., are constants, variables and values
32bit or 64bit? What about hardcoded offsets? Will external code be able
to do a callback to your Forth?

-marcel

Re: 64-bit Forth opinion?

<2022Apr10.092209@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17559&group=comp.lang.forth#17559

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Sun, 10 Apr 2022 07:22:09 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 47
Message-ID: <2022Apr10.092209@mips.complang.tuwien.ac.at>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="475276b09171678866ab4d3ac4f25c13";
logging-data="10808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j0tYr/Vhor5prn/EWE2uJ"
Cancel-Lock: sha1:X8zZW1TpKbUctsmww8SM5l1ImFU=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 10 Apr 2022 07:22 UTC

Kip Ingram <kip.ingram@gmail.com.invalid> writes:
>I've been quite happy with this structure so far. I get 64-bit data and calculations, but the systems not so bloated as it would be if
>EVERYTHING were 64 bits.

True, but how bloated is that. Here are a few metrics from IA-32
vs. AMD64 gforth without assembler/disassembler:

IA-32 AMD64
261132 478240 dictionary space used after startup (in bytes)
444412 441329 gforth-fast native code size (in bytes)

There is quite a bit of relative difference in the dictionary space,
true, but the absolute savings is small compared to the memory size on
a 64-bit machine (and for a hybrid 32/64-bit system it would be even
smaller). So do you really care? Even on the first 64-bit machine I
worked on, an Alpha with 128MB in 1995, the "bloat" of 64-bit Gforth
never was a problem.

>My reasonging on this was that this allows me to have self-contained Forth operation over a 4 GB span, and I just can't imagine ever filling
>that up.

It's easy to imagine data space sizes >4GB. E.g., just load a big
file. We replaced one 32GB machine with a 128GB machine, because the
32GB machine became too small for using Emacs on my some of my email
files (which contain emails I stored in the last 30 years). Email
seems a common problem: A collegue works with email in a completely
different setup (using some MacOS X program), and he bought a new Mac
because the RAM of the old Mac became too small for his emails.

Data bases, video and photo processing are also reasons for large data
spaces. And in this group we talked about 7GB data spaces alredy 17
years ago <2005Apr1.151240@mips.complang.tuwien.ac.at>, although we
actually managed to keep the needed space within the 4GB limit
(probably mostly by necessity, because physical memory on the machine
I used was 8GB, and I could not occupy that much on this shared
machine for jobs that ran on the order of days).

As for dictionary size, yes, if the dictionary is limited to 4GB, we
can work around that by ALLOCATEing data space. But is the reduction
in size worth that complication?

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: 64-bit Forth opinion?

<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17567&group=comp.lang.forth#17567

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ae9:f444:0:b0:67e:7985:8331 with SMTP id z4-20020ae9f444000000b0067e79858331mr18535404qkl.465.1649597437960;
Sun, 10 Apr 2022 06:30:37 -0700 (PDT)
X-Received: by 2002:a05:620a:751:b0:69b:f13d:b80f with SMTP id
i17-20020a05620a075100b0069bf13db80fmr6046751qki.571.1649597437786; Sun, 10
Apr 2022 06:30:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 10 Apr 2022 06:30:37 -0700 (PDT)
In-Reply-To: <2022Apr10.092209@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:8d59:14b5:e745:597d;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:8d59:14b5:e745:597d
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Sun, 10 Apr 2022 13:30:37 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: S Jack - Sun, 10 Apr 2022 13:30 UTC

First time I dumped a 32-bit Forth I wanted to puke; where's the code, nothing but a bunch of zero's
and small splattering of one's!
Yes, 32- 64- bit is fine for data space but keep code space to 16-bits (no program needs to be
larger than 640K).
There was a Forth 16-bit system that used doubles on the data stack; something I avoided at the
time. Hope someone with the time would explore building one maybe with a separate 64-bit wide
data stack and a 16-bit wide code stack and see if it could be made workable (palatable).
--
me

Re: 64-bit Forth opinion?

<32e79ef5-3cfc-45e2-a275-5b0e4bdb415bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17576&group=comp.lang.forth#17576

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:7fc6:0:b0:2e1:ce3e:b491 with SMTP id b6-20020ac87fc6000000b002e1ce3eb491mr22980199qtk.287.1649605934766;
Sun, 10 Apr 2022 08:52:14 -0700 (PDT)
X-Received: by 2002:a05:6214:1c8a:b0:443:bc78:25ef with SMTP id
ib10-20020a0562141c8a00b00443bc7825efmr24011698qvb.2.1649605934618; Sun, 10
Apr 2022 08:52:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 10 Apr 2022 08:52:14 -0700 (PDT)
In-Reply-To: <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=199.48.66.218; posting-account=zkoivgoAAABqROvHfKJPu3S9NWXITnSr
NNTP-Posting-Host: 199.48.66.218
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <32e79ef5-3cfc-45e2-a275-5b0e4bdb415bn@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: myronpli...@gmail.com (Myron Plichota)
Injection-Date: Sun, 10 Apr 2022 15:52:14 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: Myron Plichota - Sun, 10 Apr 2022 15:52 UTC

On Sunday, April 10, 2022 at 9:30:38 AM UTC-4, S Jack wrote:
> First time I dumped a 32-bit Forth I wanted to puke; where's the code, nothing but a bunch of zero's
> and small splattering of one's!
> Yes, 32- 64- bit is fine for data space but keep code space to 16-bits (no program needs to be
> larger than 640K).
> There was a Forth 16-bit system that used doubles on the data stack; something I avoided at the
> time. Hope someone with the time would explore building one maybe with a separate 64-bit wide
> data stack and a 16-bit wide code stack and see if it could be made workable (palatable).
> --
> me
Why don't you spend the time developing a solution that doesn't make you puke?

- Myron

Re: 64-bit Forth opinion?

<e3fd7f5f-9f3f-4a1f-a704-391a092956f0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17577&group=comp.lang.forth#17577

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:620a:1023:b0:69b:fcca:479e with SMTP id a3-20020a05620a102300b0069bfcca479emr4022669qkk.645.1649606503676;
Sun, 10 Apr 2022 09:01:43 -0700 (PDT)
X-Received: by 2002:a0c:e053:0:b0:443:d1e5:fa0e with SMTP id
y19-20020a0ce053000000b00443d1e5fa0emr23492683qvk.87.1649606503363; Sun, 10
Apr 2022 09:01:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 10 Apr 2022 09:01:43 -0700 (PDT)
In-Reply-To: <32e79ef5-3cfc-45e2-a275-5b0e4bdb415bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=199.48.66.218; posting-account=zkoivgoAAABqROvHfKJPu3S9NWXITnSr
NNTP-Posting-Host: 199.48.66.218
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <32e79ef5-3cfc-45e2-a275-5b0e4bdb415bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e3fd7f5f-9f3f-4a1f-a704-391a092956f0n@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: myronpli...@gmail.com (Myron Plichota)
Injection-Date: Sun, 10 Apr 2022 16:01:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Myron Plichota - Sun, 10 Apr 2022 16:01 UTC

On Sunday, April 10, 2022 at 11:52:15 AM UTC-4, Myron Plichota wrote:
> On Sunday, April 10, 2022 at 9:30:38 AM UTC-4, S Jack wrote:
> > First time I dumped a 32-bit Forth I wanted to puke; where's the code, nothing but a bunch of zero's
> > and small splattering of one's!
> > Yes, 32- 64- bit is fine for data space but keep code space to 16-bits (no program needs to be
> > larger than 640K).
> > There was a Forth 16-bit system that used doubles on the data stack; something I avoided at the
> > time. Hope someone with the time would explore building one maybe with a separate 64-bit wide
> > data stack and a 16-bit wide code stack and see if it could be made workable (palatable).
> > --
> > me
> Why don't you spend the time developing a solution that doesn't make you puke?
>
> - Myron
PS Jimbo is not James Bond

Re: 64-bit Forth opinion?

<87a6csakeo.fsf@nightsong.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17581&group=comp.lang.forth#17581

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Sun, 10 Apr 2022 11:00:15 -0700
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <87a6csakeo.fsf@nightsong.com>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me>
<2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f855ca14c2f0f76db1a5c0631bdd3a10";
logging-data="3595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188nVsYJAI0f95M7C/ZOLMg"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:t58U1PARpQ8t+TNXnSQgd4mOT2s=
sha1:/bFVHGxsY6OFVZEEzmzT+93pDac=
 by: Paul Rubin - Sun, 10 Apr 2022 18:00 UTC

S Jack <sdwjack69@gmail.com> writes:
> First time I dumped a 32-bit Forth I wanted to puke; where's the code,
> nothing but a bunch of zero's and small splattering of one's!

I believe the commercial implementations moved from threaded code to
native compilation along with the switch to 32 bits, in order to
increase code density, for the reason you describe.

Re: 64-bit Forth opinion?

<f4858599-6f0d-47f2-9a36-08c19dadfd04n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17584&group=comp.lang.forth#17584

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:7281:0:b0:2ee:ed60:777a with SMTP id v1-20020ac87281000000b002eeed60777amr663464qto.197.1649641596163;
Sun, 10 Apr 2022 18:46:36 -0700 (PDT)
X-Received: by 2002:ad4:5f05:0:b0:440:ea8c:c439 with SMTP id
fo5-20020ad45f05000000b00440ea8cc439mr25546956qvb.69.1649641596011; Sun, 10
Apr 2022 18:46:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 10 Apr 2022 18:46:35 -0700 (PDT)
In-Reply-To: <87a6csakeo.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:3f7a:20d0:8170:c526:90b:ef92;
posting-account=V5nGoQoAAAC_P2U0qnxm2kC0s1jNJXJa
NNTP-Posting-Host: 2600:1700:3f7a:20d0:8170:c526:90b:ef92
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f4858599-6f0d-47f2-9a36-08c19dadfd04n@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: sdwjac...@gmail.com (S Jack)
Injection-Date: Mon, 11 Apr 2022 01:46:36 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: S Jack - Mon, 11 Apr 2022 01:46 UTC

On Sunday, April 10, 2022 at 1:00:17 PM UTC-5, Paul Rubin wrote:
> S Jack <sdwj...@gmail.com> writes:
> > First time I dumped a 32-bit Forth I wanted to puke; where's the code,
> > nothing but a bunch of zero's and small splattering of one's!
> I believe the commercial implementations moved from threaded code to
> native compilation along with the switch to 32 bits, in order to
> increase code density, for the reason you describe.
Thanks, I learned something.
--
me

Re: 64-bit Forth opinion?

<79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17589&group=comp.lang.forth#17589

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:e66:b0:441:7695:8eb7 with SMTP id jz6-20020a0562140e6600b0044176958eb7mr25547453qvb.127.1649663116365;
Mon, 11 Apr 2022 00:45:16 -0700 (PDT)
X-Received: by 2002:a05:622a:14cd:b0:2e1:d83a:6fdd with SMTP id
u13-20020a05622a14cd00b002e1d83a6fddmr24766853qtx.401.1649663116226; Mon, 11
Apr 2022 00:45:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 00:45:16 -0700 (PDT)
In-Reply-To: <87a6csakeo.fsf@nightsong.com>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 11 Apr 2022 07:45:16 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: minf...@arcor.de - Mon, 11 Apr 2022 07:45 UTC

Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
> S Jack <sdwj...@gmail.com> writes:
> > First time I dumped a 32-bit Forth I wanted to puke; where's the code,
> > nothing but a bunch of zero's and small splattering of one's!
> I believe the commercial implementations moved from threaded code to
> native compilation along with the switch to 32 bits, in order to
> increase code density, for the reason you describe.

May be. I guess that it has also to do with the complexity of the compiler
back-end for 64-bit CPUs with their plethora of registers and operators.

Given the typical smallish Forth applications it is just not worth while
to develop your own 64-bit back-end - and maintain it over CPU generations.

Re: 64-bit Forth opinion?

<2022Apr11.104958@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17590&group=comp.lang.forth#17590

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Mon, 11 Apr 2022 08:49:58 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 41
Message-ID: <2022Apr11.104958@mips.complang.tuwien.ac.at>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="ce035ca74fd4b146be216bf8e6b1a182";
logging-data="2534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hZBI+2VrGJNnFpUNRotnu"
Cancel-Lock: sha1:0dNu4oiHvkekTzhGX8ukCt9hNfs=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 11 Apr 2022 08:49 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
>Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
>> I believe the commercial implementations moved from threaded code to
>> native compilation along with the switch to 32 bits, in order to
>> increase code density, for the reason you describe.
>
>May be. I guess that it has also to do with the complexity of the compiler
>back-end for 64-bit CPUs with their plethora of registers and operators.

Why should the switch to native code when moving from 16-bit to 32-bit
have anything to do with 64-bit CPUs? MPE and Forth, Inc. switched
to native code around 1996 or 1997, 64-bit CPUs for PCs were only
introduced in 2003.

Marcel Hendrix and Stephen Pelc can tell you more about it, but I see
no reason that 64-bit code generation should be any more complex than
32-bit code generation. The bigger problem is probably flushing out
all the 32-bit assumptions in the Forth system.

>Given the typical smallish Forth applications it is just not worth while
>to develop your own 64-bit back-end - and maintain it over CPU generations.

Concerning native-code compilers, Marcel Hendrix and Stephen Pelc
probably disagree that it's not worthwhile.

Concerning maintenance: The cool thing about computer architectures
such as AMD64 is that they provide a single interface to different CPU
implementations, whether marketing sells them as generations or not;
e.g., a Gforth binary that first ran on an Athlon 64 (from AMD) also
runs on a Core 2 (from Intel), a Xeon-W 1370P (Intel), a Ryzen 7 5800X
(AMD), a Celeron J3455 (Intel), and many other CPUs, all with
different microarchitectures and implementations.

So, there is no need for maintenance for new CPU generations.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: 64-bit Forth opinion?

<a9d83226-ce08-41c3-a47e-4c589e74f2e6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17591&group=comp.lang.forth#17591

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ad4:5bc2:0:b0:443:901b:39a with SMTP id t2-20020ad45bc2000000b00443901b039amr26216236qvt.78.1649670547745;
Mon, 11 Apr 2022 02:49:07 -0700 (PDT)
X-Received: by 2002:a05:620a:4547:b0:67d:674e:f182 with SMTP id
u7-20020a05620a454700b0067d674ef182mr21093101qkp.99.1649670547601; Mon, 11
Apr 2022 02:49:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 02:49:07 -0700 (PDT)
In-Reply-To: <2022Apr11.104958@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com>
<79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a9d83226-ce08-41c3-a47e-4c589e74f2e6n@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 11 Apr 2022 09:49:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: minf...@arcor.de - Mon, 11 Apr 2022 09:49 UTC

Anton Ertl schrieb am Montag, 11. April 2022 um 11:06:14 UTC+2:
> "minf...@arcor.de" <minf...@arcor.de> writes:
> >Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
> >> I believe the commercial implementations moved from threaded code to
> >> native compilation along with the switch to 32 bits, in order to
> >> increase code density, for the reason you describe.
> >
> >May be. I guess that it has also to do with the complexity of the compiler
> >back-end for 64-bit CPUs with their plethora of registers and operators.
> Why should the switch to native code when moving from 16-bit to 32-bit
> have anything to do with 64-bit CPUs?

I stand corrected, having not read close enough that 32 bit architectures were
in the discussion.

> So, there is no need for maintenance for new CPU generations.

My experience is different. But agreed that it had been more in the 90s
which in the end drove us to replace (most) assembly code with C.

Re: 64-bit Forth opinion?

<3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17596&group=comp.lang.forth#17596

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:4cc4:0:b0:2ee:bc5a:a7da with SMTP id l4-20020ac84cc4000000b002eebc5aa7damr2005246qtv.382.1649672774118;
Mon, 11 Apr 2022 03:26:14 -0700 (PDT)
X-Received: by 2002:a0c:c587:0:b0:443:cec4:5b55 with SMTP id
a7-20020a0cc587000000b00443cec45b55mr26582588qvj.25.1649672774016; Mon, 11
Apr 2022 03:26:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 03:26:13 -0700 (PDT)
In-Reply-To: <2022Apr11.104958@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=176.74.235.101; posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 176.74.235.101
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
<ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com>
<79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Mon, 11 Apr 2022 10:26:14 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Marcel Hendrix - Mon, 11 Apr 2022 10:26 UTC

On Monday, April 11, 2022 at 11:06:14 AM UTC+2, Anton Ertl wrote:
> "minf...@arcor.de" <minf...@arcor.de> writes:
> >Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
> >> I believe the commercial implementations moved from threaded code to
> >> native compilation along with the switch to 32 bits, in order to
> >> increase code density, for the reason you describe.

> So, there is no need for maintenance for new CPU generations.

Well, I needed to fool around an hour with sse2 to implement register
locals (your sha-512 challenge of late), and I plan some months when
AVX512 becomes usable. I will definitely want to have native
quad-floats when they are made available (somebody, please, write
a killer game that needs quadruple precision :--)

-marcel

Re: 64-bit Forth opinion?

<t31082$bme$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17600&group=comp.lang.forth#17600

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: step...@vfxforth.com (Stephen Pelc)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Mon, 11 Apr 2022 10:34:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <t31082$bme$1@dont-email.me>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Apr 2022 10:34:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2964c4ac88842704704fc09958f9d6bb";
logging-data="11982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NfIQMalQBKaOFAQFX7rPW"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:M6AJ1R4qRwWqHFQwDlmPLxA6wvg=
X-Usenapp: v1.19/l - Full License
 by: Stephen Pelc - Mon, 11 Apr 2022 10:34 UTC

On 11 Apr 2022 at 09:45:16 CEST, "minforth@arcor.de" <minforth@arcor.de>
wrote:

> Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
>> S Jack <sdwj...@gmail.com> writes:
>>> First time I dumped a 32-bit Forth I wanted to puke; where's the code,
>>> nothing but a bunch of zero's and small splattering of one's!
>> I believe the commercial implementations moved from threaded code to
>> native compilation along with the switch to 32 bits, in order to
>> increase code density, for the reason you describe.
>
> May be. I guess that it has also to do with the complexity of the compiler
> back-end for 64-bit CPUs with their plethora of registers and operators.
>
> Given the typical smallish Forth applications it is just not worth while
> to develop your own 64-bit back-end - and maintain it over CPU generations.

Given the difference in performance of a good Forth code generator over a
mediocre one, it's well worth while writing one. Given for x86 we have had16,
32
and 64 bit in 40 years, it's not such a big deal. Similarly for ARM32 and
ARM64
in (say) 20/30 years.

The bigger problem is that ISAs have become baroque in the last 10 years or
so.
RISC-V is no better than the rest!

Stephen

--
Stephen Pelc, stephen@vfxforth.com
MicroProcessor Engineering, Ltd. - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, +44 (0)78 0390 3612, +34 649 662 974
http://www.mpeforth.com - free VFX Forth downloads

Re: 64-bit Forth opinion?

<nnd$522de9c0$777eee4c@609cdbb89bf64331>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17601&group=comp.lang.forth#17601

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$522de9c0$777eee4c@609cdbb89bf64331>
Organization: KPN B.V.
Date: Mon, 11 Apr 2022 12:35:44 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abe005.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 31
Injection-Date: Mon, 11 Apr 2022 12:35:44 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2082
 by: none - Mon, 11 Apr 2022 10:35 UTC

In article <2022Apr10.092209@mips.complang.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>Kip Ingram <kip.ingram@gmail.com.invalid> writes:
>>I've been quite happy with this structure so far. I get 64-bit data and calculations, but the systems not so bloated as it would be if
>>EVERYTHING were 64 bits.
>
>True, but how bloated is that. Here are a few metrics from IA-32
>vs. AMD64 gforth without assembler/disassembler:
>
>IA-32 AMD64
>261132 478240 dictionary space used after startup (in bytes)
>444412 441329 gforth-fast native code size (in bytes)
>
>There is quite a bit of relative difference in the dictionary space,
>true, but the absolute savings is small compared to the memory size on
>a 64-bit machine (and for a hybrid 32/64-bit system it would be even
>smaller). So do you really care? Even on the first 64-bit machine I
>worked on, an Alpha with 128MB in 1995, the "bloat" of 64-bit Gforth
>never was a problem.

I agree completely. This discussion should be over by now.

>M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html

--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Re: 64-bit Forth opinion?

<t310gd$dnt$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17602&group=comp.lang.forth#17602

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: step...@vfxforth.com (Stephen Pelc)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Mon, 11 Apr 2022 10:39:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <t310gd$dnt$1@dont-email.me>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at> <3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Apr 2022 10:39:10 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2964c4ac88842704704fc09958f9d6bb";
logging-data="14077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/33o/4yDSZHf0ZL2M8UNYA"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:m6EoYKmKO8Hu29xpQOIgef1jz0w=
X-Usenapp: v1.19/l - Full License
 by: Stephen Pelc - Mon, 11 Apr 2022 10:39 UTC

On 11 Apr 2022 at 12:26:13 CEST, "Marcel Hendrix" <mhx@iae.nl> wrote:
>
> Well, I needed to fool around an hour with sse2 to implement register
> locals (your sha-512 challenge of late), and I plan some months when
> AVX512 becomes usable. I will definitely want to have native
> quad-floats when they are made available (somebody, please, write
> a killer game that needs quadruple precision :--)
>
On of the surprises in the AMD64 development was that all our clients
wanted their 80 bit floats back. So it's going back in. 128 bit float will
probably fix all those issues for for my and my clildren's lives.

Stephen

--
Stephen Pelc, stephen@vfxforth.com
MicroProcessor Engineering, Ltd. - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, +44 (0)78 0390 3612, +34 649 662 974
http://www.mpeforth.com - free VFX Forth downloads

Re: 64-bit Forth opinion?

<403de5ca-c24a-46e9-a1ef-d439f824d509n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17603&group=comp.lang.forth#17603

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:5754:0:b0:2e1:eee8:be0b with SMTP id 20-20020ac85754000000b002e1eee8be0bmr25050878qtx.349.1649678441972;
Mon, 11 Apr 2022 05:00:41 -0700 (PDT)
X-Received: by 2002:a0c:efc8:0:b0:444:3393:cc4c with SMTP id
a8-20020a0cefc8000000b004443393cc4cmr8315748qvt.46.1649678441517; Mon, 11 Apr
2022 05:00:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 05:00:41 -0700 (PDT)
In-Reply-To: <t310gd$dnt$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=79.224.111.239; posting-account=AqNUYgoAAADmkK2pN-RKms8sww57W0Iw
NNTP-Posting-Host: 79.224.111.239
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at>
<3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com> <t310gd$dnt$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <403de5ca-c24a-46e9-a1ef-d439f824d509n@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: minfo...@arcor.de (minf...@arcor.de)
Injection-Date: Mon, 11 Apr 2022 12:00:41 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: minf...@arcor.de - Mon, 11 Apr 2022 12:00 UTC

Stephen Pelc schrieb am Montag, 11. April 2022 um 12:39:12 UTC+2:
> On 11 Apr 2022 at 12:26:13 CEST, "Marcel Hendrix" <m...@iae.nl> wrote:
> >
> > Well, I needed to fool around an hour with sse2 to implement register
> > locals (your sha-512 challenge of late), and I plan some months when
> > AVX512 becomes usable. I will definitely want to have native
> > quad-floats when they are made available (somebody, please, write
> > a killer game that needs quadruple precision :--)
> >
> On of the surprises in the AMD64 development was that all our clients
> wanted their 80 bit floats back. So it's going back in. 128 bit float will
> probably fix all those issues for for my and my clildren's lives.

Elliptic curve crypto-currency mining algorithms will drive the demand
for CPUs with fatter floats soon enough.

Re: 64-bit Forth opinion?

<9f59fe4c-a9dc-4179-9d3f-7535bde9e14dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17607&group=comp.lang.forth#17607

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:71cb:0:b0:2ed:3c3d:f472 with SMTP id i11-20020ac871cb000000b002ed3c3df472mr525136qtp.61.1649701354784;
Mon, 11 Apr 2022 11:22:34 -0700 (PDT)
X-Received: by 2002:a05:620a:85e:b0:69b:e5f5:df1c with SMTP id
u30-20020a05620a085e00b0069be5f5df1cmr523911qku.272.1649701354647; Mon, 11
Apr 2022 11:22:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Mon, 11 Apr 2022 11:22:34 -0700 (PDT)
In-Reply-To: <403de5ca-c24a-46e9-a1ef-d439f824d509n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f14:600:78fe:e785:26cd:9865;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f14:600:78fe:e785:26cd:9865
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com>
<79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at>
<3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com> <t310gd$dnt$1@dont-email.me>
<403de5ca-c24a-46e9-a1ef-d439f824d509n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f59fe4c-a9dc-4179-9d3f-7535bde9e14dn@googlegroups.com>
Subject: Re: 64-bit Forth opinion?
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Mon, 11 Apr 2022 18:22:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 18
 by: Marcel Hendrix - Mon, 11 Apr 2022 18:22 UTC

On Monday, April 11, 2022 at 2:00:43 PM UTC+2, minf...@arcor.de wrote:
> Stephen Pelc schrieb am Montag, 11. April 2022 um 12:39:12 UTC+2:
> > On 11 Apr 2022 at 12:26:13 CEST, "Marcel Hendrix" <m...@iae.nl> wrote:
[..]
> Elliptic curve crypto-currency mining algorithms will drive the demand
> for CPUs with fatter floats soon enough.

I didn't believe it at first, but indeed ...

"Many common processors possess floating-point hardware that can be
used to implement prime field arithmetic. A fast method presented by
Bernstein using floating-point methods is outlined in ยง5.1.2."

'Guide to elliptic curve cryptography', Darrel Hankerson, Alfred J. Menezes,
Scott Vanstone. ISBN 0-387-95273-X

-marcel

Re: 64-bit Forth opinion?

<2022Apr11.224700@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17608&group=comp.lang.forth#17608

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Mon, 11 Apr 2022 20:47:00 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 28
Message-ID: <2022Apr11.224700@mips.complang.tuwien.ac.at>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at> <3f3ea2c6-029d-4d94-a7a8-3d79aafb90aan@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="ce035ca74fd4b146be216bf8e6b1a182";
logging-data="15679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iCm24xBj1Okzq+67dxKyP"
Cancel-Lock: sha1:sXvslYq2e6CUlFfiD8BWSF+j9SY=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 11 Apr 2022 20:47 UTC

Marcel Hendrix <mhx@iae.nl> writes:
>On Monday, April 11, 2022 at 11:06:14 AM UTC+2, Anton Ertl wrote:
>> "minf...@arcor.de" <minf...@arcor.de> writes:
>> >Paul Rubin schrieb am Sonntag, 10. April 2022 um 20:00:17 UTC+2:
>> >> I believe the commercial implementations moved from threaded code to
>> >> native compilation along with the switch to 32 bits, in order to
>> >> increase code density, for the reason you describe.
>
>> So, there is no need for maintenance for new CPU generations.
>
>Well, I needed to fool around an hour with sse2 to implement register
>locals (your sha-512 challenge of late), and I plan some months when
>AVX512 becomes usable.

AVX-512 is a new architectural feature that you may choose to use or
ignore.

SSE2 has been available on all AMD64 CPUs since the beginning. If you
chose not to use it, this supports my statement above:-). If you then
decide to use it, it is certainly notmaintenance for new CPU
generations.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: 64-bit Forth opinion?

<2022Apr11.225324@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17609&group=comp.lang.forth#17609

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Mon, 11 Apr 2022 20:53:24 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 32
Message-ID: <2022Apr11.225324@mips.complang.tuwien.ac.at>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <t31082$bme$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="ce035ca74fd4b146be216bf8e6b1a182";
logging-data="15679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A5t7oTSw7D8YJ6CdUm6UD"
Cancel-Lock: sha1:cYAMgWwfAYXn0fxCnKLMiPi6L7w=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 11 Apr 2022 20:53 UTC

Stephen Pelc <stephen@vfxforth.com> writes:
>The bigger problem is that ISAs have become baroque in the last 10 years or
>so.
>RISC-V is no better than the rest!

Anything in particular about RISC-V? My impression is that they are
relatively spartan. In particular, they make it a philosophy not to
add architectural features if they can avoid it, in particular with
instruction fusion (e.g., instead of an indexed addressing mode, fuse
a shift, an add and a load into an indexed-load micro-instruction).

However, looking at the disassembler sizes (in lines) does not really
support this impression:

610 amd64/disasm.fs

523 arm64/disasm.fs

289 riscv/disasm.fs
60 riscv/inst16.fs
177 riscv/inst32.fs
526 total

Ok, the latter includes two additional file boilerplates, but even
considering that, riscv is not much smaller.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

Re: 64-bit Forth opinion?

<2022Apr12.123645@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17620&group=comp.lang.forth#17620

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: 64-bit Forth opinion?
Date: Tue, 12 Apr 2022 10:36:45 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2022Apr12.123645@mips.complang.tuwien.ac.at>
References: <e892d5ca-c217-438c-99ba-86e2524a43e3@googlegroups.com> <t2tk6t$qo7$1@dont-email.me> <2022Apr10.092209@mips.complang.tuwien.ac.at> <ed5b52d3-2c50-46c2-8e12-c60aba420fccn@googlegroups.com> <87a6csakeo.fsf@nightsong.com> <79f68719-d993-4af4-a439-0302c725c67fn@googlegroups.com> <2022Apr11.104958@mips.complang.tuwien.ac.at> <a9d83226-ce08-41c3-a47e-4c589e74f2e6n@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="441397f7d199c44b694ed5c2421d39c7";
logging-data="15710"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ki8yqB5PJk5+hDQu3Nrp/"
Cancel-Lock: sha1:K7LgC04yDhv7bR4MSdpL6VF+020=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Tue, 12 Apr 2022 10:36 UTC

"minf...@arcor.de" <minforth@arcor.de> writes:
>My experience is different. But agreed that it had been more in the 90s
>which in the end drove us to replace (most) assembly code with C.

What is your experience?

90s would be from the 486 to the Pentium III and the Athlon, maybe
starting from code for the 386 or earlier. Of course, if you start
with 16-bit code (286) and want to switch to 32-bit code, you
certainly have to do something. The rest is mainly performance
issues, but that is icing on the cake rather than necessary. I have
certainly used code built on a 486 on a Pentium, a K6-2, and an
Athlon.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2021: https://euro.theforth.net/2021

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor