Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If this is timesharing, give me my share right now.


devel / comp.lang.forth / Re: Handling unsupported line-endings

SubjectAuthor
* Handling unsupported line-endingsdxforth
+* Re: Handling unsupported line-endingsHeinrich Hohl
|`* Re: Handling unsupported line-endingsdxforth
| `* Re: Handling unsupported line-endingsHeinrich Hohl
|  +* Re: Handling unsupported line-endingsdxforth
|  |`- Re: Handling unsupported line-endingsdxforth
|  +* Re: Handling unsupported line-endingsminf...@arcor.de
|  |`- Re: Handling unsupported line-endingsdxforth
|  `* Re: Handling unsupported line-endingsAnton Ertl
|   +* Re: Handling unsupported line-endingsHeinrich Hohl
|   |`- Re: Handling unsupported line-endingsAnton Ertl
|   `* Re: Handling unsupported line-endingsNickolay Kolchin
|    +* Re: Handling unsupported line-endingsdxforth
|    |+* Re: Handling unsupported line-endingsdxforth
|    ||`* Re: Handling unsupported line-endingsAnton Ertl
|    || `* Re: Handling unsupported line-endingsdxforth
|    ||  +* Re: Handling unsupported line-endingsdxforth
|    ||  |`* Re: Handling unsupported line-endingsAnton Ertl
|    ||  | `* Re: Handling unsupported line-endingsdxforth
|    ||  |  +- Re: Handling unsupported line-endingsdxforth
|    ||  |  `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |   `* Re: Handling unsupported line-endingsdxforth
|    ||  |    `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |     `* Re: Handling unsupported line-endingsdxforth
|    ||  |      `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |       `* Re: Handling unsupported line-endingsdxforth
|    ||  |        `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |         `* Re: Handling unsupported line-endingsdxforth
|    ||  |          `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |           `* Re: Handling unsupported line-endingsdxforth
|    ||  |            `* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |             `* Re: Handling unsupported line-endingsdxforth
|    ||  |              +* Re: Handling unsupported line-endingsAnton Ertl
|    ||  |              |`* Re: Handling unsupported line-endingsdxforth
|    ||  |              | `* Re: Handling unsupported line-endingsRuvim
|    ||  |              |  +* Re: Handling unsupported line-endingsdxforth
|    ||  |              |  |`* Re: Handling unsupported line-endingsRuvim
|    ||  |              |  | `* Re: Handling unsupported line-endingsdxforth
|    ||  |              |  |  `- Re: Handling unsupported line-endingsRuvim
|    ||  |              |  `* Re: Handling unsupported line-endingsNickolay Kolchin
|    ||  |              |   `* Re: Handling unsupported line-endingsRon AARON
|    ||  |              |    `* Re: Handling unsupported line-endingsdxforth
|    ||  |              |     `* Re: Handling unsupported line-endingsRon AARON
|    ||  |              |      `* Re: Handling unsupported line-endingsdxforth
|    ||  |              |       `- Re: Handling unsupported line-endingsRon AARON
|    ||  |              `* Re: Handling unsupported line-endingsdxforth
|    ||  |               `- Re: Handling unsupported line-endingsdxforth
|    ||  `* Re: Handling unsupported line-endingsAnton Ertl
|    ||   `* Re: Handling unsupported line-endingsdxforth
|    ||    `- Re: Handling unsupported line-endingsAnton Ertl
|    |`* Re: Handling unsupported line-endingsNickolay Kolchin
|    | +* Re: Handling unsupported line-endingsdxforth
|    | |`* Re: Handling unsupported line-endingsNickolay Kolchin
|    | | +* Re: Handling unsupported line-endingsdxforth
|    | | |`- Re: Handling unsupported line-endingsNickolay Kolchin
|    | | +* Re: Handling unsupported line-endingsAnton Ertl
|    | | |`* Re: Handling unsupported line-endingsNickolay Kolchin
|    | | | `* Re: Handling unsupported line-endingsAnton Ertl
|    | | |  `- Re: Handling unsupported line-endingsdxforth
|    | | `* Re: Handling unsupported line-endingsHeinrich Hohl
|    | |  `* Re: Handling unsupported line-endingsNickolay Kolchin
|    | |   `* Re: Handling unsupported line-endingsRon AARON
|    | |    `* Re: Handling unsupported line-endingsNickolay Kolchin
|    | |     +* Re: Handling unsupported line-endingspahihu
|    | |     |+- Re: Handling unsupported line-endingsNickolay Kolchin
|    | |     |`- Re: Handling unsupported line-endingsRon AARON
|    | |     `* Re: Handling unsupported line-endingsRon AARON
|    | |      +* Re: Handling unsupported line-endingsNickolay Kolchin
|    | |      |`- Re: Handling unsupported line-endingsRon AARON
|    | |      `- Re: Handling unsupported line-endingsdxforth
|    | `- Re: Handling unsupported line-endingsAnton Ertl
|    +* Re: Handling unsupported line-endingsAnton Ertl
|    |`- Re: Handling unsupported line-endingsNickolay Kolchin
|    `* Re: Handling unsupported line-endingsMarcel Hendrix
|     +- Re: Handling unsupported line-endingsNickolay Kolchin
|     `* Re: Handling unsupported line-endingsAnton Ertl
|      `* Re: Handling unsupported line-endingsdxforth
|       `* Re: Handling unsupported line-endingsAnton Ertl
|        `* Re: Handling unsupported line-endingspahihu
|         +* Re: Handling unsupported line-endingsdxforth
|         |`* Re: Handling unsupported line-endingsAnton Ertl
|         | `- Re: Handling unsupported line-endingsdxforth
|         `- Re: Handling unsupported line-endingsAnton Ertl
+* Re: Handling unsupported line-endingsS Jack
|`- Re: Handling unsupported line-endingsdxforth
+* Re: Handling unsupported line-endingsBranimir Maksimovic
|`- Re: Handling unsupported line-endingsdxforth
`* Re: Handling unsupported line-endingsdxforth
 +- Re: Handling unsupported line-endingsRuvim
 `* Re: Handling unsupported line-endingsAnton Ertl
  +* Re: Handling unsupported line-endingsRuvim
  |`* Re: Handling unsupported line-endingsAnton Ertl
  | `* Re: Handling unsupported line-endingsRuvim
  |  `* Re: Handling unsupported line-endingsAnton Ertl
  |   +* Re: Handling unsupported line-endingsRuvim
  |   |`- Re: Handling unsupported line-endingsAnton Ertl
  |   `* Re: Handling unsupported line-endingsdxforth
  |    `* Re: Handling unsupported line-endingsRuvim
  |     `* Re: Handling unsupported line-endingsdxforth
  |      `* Re: Handling unsupported line-endingsRuvim
  |       `* Re: Handling unsupported line-endingsdxforth
  `* Re: Handling unsupported line-endingsdxforth

Pages:1234567
Re: Handling unsupported line-endings

<2021Nov7.160216@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.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: Handling unsupported line-endings
Date: Sun, 07 Nov 2021 15:02:16 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 16
Message-ID: <2021Nov7.160216@mips.complang.tuwien.ac.at>
References: <skjhir$jd9$1@gioia.aioe.org> <slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com> <sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com> <sm5mk4$u2d$1@dont-email.me> <a7c87e0b-a623-4e9d-b2b0-ea16371201e5n@googlegroups.com> <aafdf106-b622-4ffd-8a56-86c3175e1861n@googlegroups.com> <sm5tqv$1dco$1@gioia.aioe.org> <f2bee905-7496-45b8-bfef-8a15edf90f5fn@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="eb8ed9e9f26f71ecbd1159d890d809a6";
logging-data="29096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184vFQe8TVl7BwBf5L/YG4P"
Cancel-Lock: sha1:iPJ6g0rFfphVT57Qu7sNrwn3gfk=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 7 Nov 2021 15:02 UTC

Nickolay Kolchin <nbkolchin@gmail.com> writes:
>- lxf and gforth accept the source but silently truncate length. They shoul=
>d throw=20
>exception if line is too big for `C"`.

Somehow I doubt that anybody has used longer C" strings in production
code, but anyway, fixed in Gforth in

http://git.savannah.gnu.org/cgit/gforth.git/commit/?id=ad3e1bc66df8fc68eb2a4878981e5123afd7f0cf

- 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: Handling unsupported line-endings

<2021Nov7.160939@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Handling unsupported line-endings
Date: Sun, 07 Nov 2021 15:09:39 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 23
Message-ID: <2021Nov7.160939@mips.complang.tuwien.ac.at>
References: <skjhir$jd9$1@gioia.aioe.org> <2021Oct31.131437@mips.complang.tuwien.ac.at> <slogli$rmb$1@dont-email.me> <2021Nov1.151607@mips.complang.tuwien.ac.at> <slq260$1l9v$1@gioia.aioe.org> <slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org> <slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com> <sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="eb8ed9e9f26f71ecbd1159d890d809a6";
logging-data="29096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xraSAkSVdQJ0Z5cC/LrWO"
Cancel-Lock: sha1:c9a+F0LuJfRUsxtcR2rElNR3KzQ=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 7 Nov 2021 15:09 UTC

Nickolay Kolchin <nbkolchin@gmail.com> writes:
>Actually F79 used correct naming "packed" and F83 started using
>misleading term "counted".

Forth-79 uses "packed string" only in WORD. COUNT does not mention
either "counted string" or "packed string", but the "character count".

>IMHO, 255 bytes limitation is "blast from past" and should be lifted
>nowadays...

From <https://forth-standard.org/standard/rationale#rat:cstring>:
|Forth 94 moved toward the consistent use of the "c-addr u"
|representation of strings on the stack. The use of the alternate
|"address of counted string" stack representation is discouraged.

There is no 255-byte limitation for c-addr u strings.

- 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: Handling unsupported line-endings

<2021Nov7.162402@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.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: Handling unsupported line-endings
Date: Sun, 07 Nov 2021 15:24:02 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 20
Message-ID: <2021Nov7.162402@mips.complang.tuwien.ac.at>
References: <skjhir$jd9$1@gioia.aioe.org> <slogli$rmb$1@dont-email.me> <2021Nov1.151607@mips.complang.tuwien.ac.at> <slq260$1l9v$1@gioia.aioe.org> <slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org> <slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com> <sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com> <sm5mk4$u2d$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="eb8ed9e9f26f71ecbd1159d890d809a6";
logging-data="29096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NfofYk3ZfElHkTIxlfGsw"
Cancel-Lock: sha1:cvTEcreko2uZmyRkCe0zdNPslXI=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 7 Nov 2021 15:24 UTC

Ruvim <ruvim.pinka@gmail.com> writes:
>> IMHO, 255 bytes limitation is "blast from past" and should be lifted
>> nowadays...
>
>Forth-94 doesn't limit it by 255 bytes, it requires that this limit
>shall be *not less* than 255 bytes (i.e., the character size cannot be
>less than 8 bits).

No such limit for standard systems. But standard programs have to
obey the 255 char limit if they use counted strings.

And yes, counted strings are a blast from the past (and calling them
"packed strings" is a blast from an even earlier past).

- 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: Handling unsupported line-endings

<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:9544:: with SMTP id x65mr59657504qkd.275.1636302920915;
Sun, 07 Nov 2021 08:35:20 -0800 (PST)
X-Received: by 2002:ae9:ed50:: with SMTP id c77mr23702155qkg.187.1636302920716;
Sun, 07 Nov 2021 08:35:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!weretis.net!feeder8.news.weretis.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, 7 Nov 2021 08:35:20 -0800 (PST)
In-Reply-To: <2021Nov7.162402@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=213.21.29.203; posting-account=DoM31goAAADuzlbg5XKrMFannjkYS2Lr
NNTP-Posting-Host: 213.21.29.203
References: <skjhir$jd9$1@gioia.aioe.org> <slogli$rmb$1@dont-email.me>
<2021Nov1.151607@mips.complang.tuwien.ac.at> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
Subject: Re: Handling unsupported line-endings
From: nbkolc...@gmail.com (Nickolay Kolchin)
Injection-Date: Sun, 07 Nov 2021 16:35:20 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Nickolay Kolchin - Sun, 7 Nov 2021 16:35 UTC

On Sunday, November 7, 2021 at 6:39:34 PM UTC+3, Anton Ertl wrote:
> Ruvim <ruvim...@gmail.com> writes:
> >> IMHO, 255 bytes limitation is "blast from past" and should be lifted
> >> nowadays...
> >
> >Forth-94 doesn't limit it by 255 bytes, it requires that this limit
> >shall be *not less* than 255 bytes (i.e., the character size cannot be
> >less than 8 bits).
> No such limit for standard systems. But standard programs have to
> obey the 255 char limit if they use counted strings.
>

So, this is not portable after all?

here 2 c, 13 c, 10 c, count 2constant aaa
> And yes, counted strings are a blast from the past (and calling them
> "packed strings" is a blast from an even earlier past).

Yeh, I'm ancient.

Re: Handling unsupported line-endings

<2021Nov7.193152@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Handling unsupported line-endings
Date: Sun, 07 Nov 2021 18:31:52 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 17
Message-ID: <2021Nov7.193152@mips.complang.tuwien.ac.at>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org> <slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org> <slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com> <sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com> <sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at> <fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="eb8ed9e9f26f71ecbd1159d890d809a6";
logging-data="11700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9BOcd3RmoddGRtk+f8rOh"
Cancel-Lock: sha1:0nmLItcWifTmCO7D0KQP2jataJQ=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Sun, 7 Nov 2021 18:31 UTC

Nickolay Kolchin <nbkolchin@gmail.com> writes:
>So, this is not portable after all?
>
>here 2 c, 13 c, 10 c, count 2constant aaa

Why would you think so? AFAICS, this is standard code and portable to
standard systems. As someone else has pointed out, it's needlessly
complex and can be replaced with

here 2 13 c, 10 c, 2constant aaa

- 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: Handling unsupported line-endings

<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:7f44:: with SMTP id g4mr78375666qtk.130.1636310651679;
Sun, 07 Nov 2021 10:44:11 -0800 (PST)
X-Received: by 2002:a05:620a:29c4:: with SMTP id s4mr59738203qkp.510.1636310651449;
Sun, 07 Nov 2021 10:44:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.forth
Date: Sun, 7 Nov 2021 10:44:11 -0800 (PST)
In-Reply-To: <2021Nov7.193152@mips.complang.tuwien.ac.at>
Injection-Info: google-groups.googlegroups.com; posting-host=213.21.29.203; posting-account=DoM31goAAADuzlbg5XKrMFannjkYS2Lr
NNTP-Posting-Host: 213.21.29.203
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com> <2021Nov7.193152@mips.complang.tuwien.ac.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
Subject: Re: Handling unsupported line-endings
From: nbkolc...@gmail.com (Nickolay Kolchin)
Injection-Date: Sun, 07 Nov 2021 18:44:11 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2065
 by: Nickolay Kolchin - Sun, 7 Nov 2021 18:44 UTC

On Sunday, November 7, 2021 at 9:38:02 PM UTC+3, Anton Ertl wrote:
> Nickolay Kolchin <nbko...@gmail.com> writes:
> >So, this is not portable after all?
> >
> >here 2 c, 13 c, 10 c, count 2constant aaa
> Why would you think so? AFAICS, this is standard code and portable to
> standard systems. As someone else has pointed out, it's needlessly
> complex and can be replaced with
>
> here 2 13 c, 10 c, 2constant aaa

So `COUNT` can handle 255 chars max?

Re: Handling unsupported line-endings

<sm9gg8$qb0$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 00:29:42 +0300
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <sm9gg8$qb0$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slogli$rmb$1@dont-email.me>
<2021Nov1.151607@mips.complang.tuwien.ac.at> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 7 Nov 2021 21:29:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2cbaa8e6119cd4147a9b4fbf4f7383e4";
logging-data="26976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lASR0uuflW1BaVbvsVNzO"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:AxtN5PbUbFw2qylCDFvxgqIMIRo=
In-Reply-To: <2021Nov7.162402@mips.complang.tuwien.ac.at>
Content-Language: en-US
 by: Ruvim - Sun, 7 Nov 2021 21:29 UTC

On 2021-11-07 18:24, Anton Ertl wrote:
> Ruvim <ruvim.pinka@gmail.com> writes:
>>> IMHO, 255 bytes limitation is "blast from past" and should be lifted
>>> nowadays...
>>
>> Forth-94 doesn't limit it by 255 bytes, it requires that this limit
>> shall be *not less* than 255 bytes (i.e., the character size cannot be
>> less than 8 bits).
>
> No such limit for standard systems.

The standard establishes a requirement for minimum characters size.

3.1.2
| Characters shall [...] contain at least eight bits

3.1.3.4
| The maximum length of a counted string shall be at least 255.

They are requirements for the standard systems.

> But standard programs have to
> obey the 255 char limit if they use counted strings.

Yes. It's a consequence.

--
Ruvim

Re: Handling unsupported line-endings

<sm9gr9$1cp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 00:35:35 +0300
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <sm9gr9$1cp$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 7 Nov 2021 21:35:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2cbaa8e6119cd4147a9b4fbf4f7383e4";
logging-data="1433"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KQI4bvx89EwI4eruUe+ll"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:RfO41IbwAK3mmiuQirZn5OYsuOA=
In-Reply-To: <3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
Content-Language: en-US
 by: Ruvim - Sun, 7 Nov 2021 21:35 UTC

On 2021-11-07 21:44, Nickolay Kolchin wrote:
> On Sunday, November 7, 2021 at 9:38:02 PM UTC+3, Anton Ertl wrote:
>> Nickolay Kolchin <nbko...@gmail.com> writes:
>>> So, this is not portable after all?
>>>
>>> here 2 c, 13 c, 10 c, count 2constant aaa
>> Why would you think so? AFAICS, this is standard code and portable to
>> standard systems. As someone else has pointed out, it's needlessly
>> complex and can be replaced with
>>
>> here 2 13 c, 10 c, 2constant aaa
>
> So `COUNT` can handle 255 chars max?
>

COUNT always handles the same that C@ handles, i.e., a character.

Its max value isn't always 255. For example, in some plausible system it
can be 2^32-1.

In a standard system the character size shall be at least 8 bits (see
3.1.2 Character types).

Hence, a standard program can only rely on 8 bit characters, regardless
what their actual limit (that can be greater).

A standard program with environmental dependencies may require other
minimal character size (to handle counted strings having length greater
than 255). Although, it's more portable for such a program to use just
own implementation for "packed strings" (or alike).

--
Ruvim

Re: Handling unsupported line-endings

<sm9m91$8g7$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 10:08:16 +1100
Organization: Aioe.org NNTP Server
Message-ID: <sm9m91$8g7$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <sljml0$3qg$1@gioia.aioe.org>
<2021Oct30.192843@mips.complang.tuwien.ac.at> <slkg0f$sph$1@dont-email.me>
<2021Oct31.131437@mips.complang.tuwien.ac.at> <slogli$rmb$1@dont-email.me>
<2021Nov1.151607@mips.complang.tuwien.ac.at> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me>
<a7c87e0b-a623-4e9d-b2b0-ea16371201e5n@googlegroups.com>
<aafdf106-b622-4ffd-8a56-86c3175e1861n@googlegroups.com>
<sm5tqv$1dco$1@gioia.aioe.org>
<f2bee905-7496-45b8-bfef-8a15edf90f5fn@googlegroups.com>
<sm6dob$b1u$1@gioia.aioe.org>
<9f1acf36-65d4-4f47-8cea-9992c73ac5e9n@googlegroups.com>
<sm7j08$1kp2$1@gioia.aioe.org>
<c3f009ab-85ef-4eab-bf8d-fe8f33f05b7cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="8711"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 7 Nov 2021 23:08 UTC

On 8/11/2021 00:08, Marcel Hendrix wrote:
> On Sunday, November 7, 2021 at 5:00:11 AM UTC+1, dxforth wrote:
> [..]
>> Humans still only have two eyes and limited visual comprehension.
>> The less information presented them at once, the better. A computer
>> needs to read text only to the extent humans need to read it. When
>> a 255 char quoted string is already beyond human comprehension,
>> suggesting a computer could handle more becomes rather academic.
>
> More (than 255 chars) is needed when cutting and pasting between
> programs.

My screen editor does that. What has it to do with quoted strings?

Re: Handling unsupported line-endings

<sm9p1r$15f2$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 10:55:39 +1100
Organization: Aioe.org NNTP Server
Message-ID: <sm9p1r$15f2$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="38370"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 7 Nov 2021 23:55 UTC

On 8/11/2021 08:35, Ruvim wrote:
> On 2021-11-07 21:44, Nickolay Kolchin wrote:
>> On Sunday, November 7, 2021 at 9:38:02 PM UTC+3, Anton Ertl wrote:
>>> Nickolay Kolchin <nbko...@gmail.com> writes:
>>>> So, this is not portable after all?
>>>>
>>>> here 2 c, 13 c, 10 c, count 2constant aaa
>>> Why would you think so? AFAICS, this is standard code and portable to
>>> standard systems. As someone else has pointed out, it's needlessly
>>> complex and can be replaced with
>>>
>>> here 2 13 c, 10 c, 2constant aaa
>>
>> So `COUNT` can handle 255 chars max?
>>
>
> COUNT always handles the same that C@ handles, i.e., a character.
>
> Its max value isn't always 255. For example, in some plausible system it
> can be 2^32-1.

But not particularly useful. Same with quotes about ANS' 'addr len'
strings which ignores the whole issue of string variables. What's
significant IMO is that counted strings as an encoding method has
remained the de-facto standard for Forth and still popularly used
despite all the whinging about a "255 char limit". Perhaps Moore
wasn't quite the fool today's forthers would have him be :)

Re: Handling unsupported line-endings

<sm9vdd$17if$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 12:44:12 +1100
Organization: Aioe.org NNTP Server
Message-ID: <sm9vdd$17if$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="40527"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 8 Nov 2021 01:44 UTC

On 8/11/2021 05:31, Anton Ertl wrote:
> Nickolay Kolchin <nbkolchin@gmail.com> writes:
>>So, this is not portable after all?
>>
>>here 2 c, 13 c, 10 c, count 2constant aaa
>
> Why would you think so? AFAICS, this is standard code and portable to
> standard systems. As someone else has pointed out, it's needlessly
> complex and can be replaced with
>
> here 2 13 c, 10 c, 2constant aaa

My preference would have been:

' count build aaa 2 c, 13 c, 10 c,

as it's shorter for DTC. For lengthy data where counting is more
trouble than worth, I've grown fond of:

here

comma'd data

here over - ( 1 cells / ) 2constant bbb

Each case on its merits.

Re: Handling unsupported line-endings

<2021Nov8.090151@mips.complang.tuwien.ac.at>

  copy mid

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

  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: Handling unsupported line-endings
Date: Mon, 08 Nov 2021 08:01:51 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 29
Message-ID: <2021Nov8.090151@mips.complang.tuwien.ac.at>
References: <skjhir$jd9$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com> <sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com> <sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at> <fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com> <2021Nov7.193152@mips.complang.tuwien.ac.at> <3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com> <sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="2341d21d5f86a68657b714d9e8d0f02a";
logging-data="30503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+S2KHD1KvF+AHYhtcbQy8k"
Cancel-Lock: sha1:Kc64hErDm++X3A1SnUfUwt28wuE=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Mon, 8 Nov 2021 08:01 UTC

dxforth <dxforth@gmail.com> writes:
>What's
>significant IMO is that counted strings as an encoding method has
>remained the de-facto standard for Forth

Reality check: Uses of:

gforth SwiftForth
C" 0 26
S" 334 151
S\" 9 1

Measured with, e.g.:

gforth -e 'where s\" bye'|wc -l
sf 'where s\" bye'|grep "|"|wc -l

The output of the line for SwiftForth includes the definition, so I
subtracted 1.

Forth Gforth it's the current development version, for SwiftForth it's
3.11.0.

- 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: Handling unsupported line-endings

<smapkf$2a1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 12:11:40 +0300
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <smapkf$2a1$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Nov 2021 09:11:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="90c9a83b9251459ad57382d7ef9eab76";
logging-data="2369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1898XheYNdjdXw5yUkJMYNK"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:4A91UBQ8P9Fk/NXpaDWbOuYJriM=
In-Reply-To: <sm9p1r$15f2$1@gioia.aioe.org>
Content-Language: en-US
 by: Ruvim - Mon, 8 Nov 2021 09:11 UTC

On 2021-11-08 02:55, dxforth wrote:
> On 8/11/2021 08:35, Ruvim wrote:
>> On 2021-11-07 21:44, Nickolay Kolchin wrote:

>>> So `COUNT` can handle 255 chars max?
>>>
>>
>> COUNT always handles the same that C@ handles, i.e., a character.
>>
>> Its max value isn't always 255. For example, in some plausible system it
>> can be 2^32-1.
>
> But not particularly useful.

If you mean to reserve space for max length of counted strings — of
course, it would be inefficient.

> Same with quotes about ANS' 'addr len'
> strings which ignores the whole issue of string variables.

The problem of string variables is connected with the problem of memory
management.

> What's
> significant IMO is that counted strings as an encoding method has
> remained the de-facto standard for Forth and still popularly used
> despite all the whinging about a "255 char limit".

Yes, they are usually used internally by Forth systems, for example to
store name of definitions. Or for internal representations of constant
strings.

But they are rare in programs. By statistics in the SP-Forth repository,
'S"' is used 4855 times, 'C"' is used 95 times, that is 50 times rarer.

Actually, you can use counted strings until you face silent truncation
of a long string to 255 characters in a production. After that you
rewrite all code fragments that use counted strings and forget them for
ever.

--
Ruvim

Re: Handling unsupported line-endings

<smaq1h$3r9$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 20:18:40 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smaq1h$3r9$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<2021Nov8.090151@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="3945"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 8 Nov 2021 09:18 UTC

On 8/11/2021 19:01, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
>>What's
>>significant IMO is that counted strings as an encoding method has
>>remained the de-facto standard for Forth
>
> Reality check: Uses of:
>
> gforth SwiftForth
> C" 0 26
> S" 334 151
> S\" 9 1
>

SwiftForth is whom I had in mind. It encodes all its quoted string constants
as counted strings (including Z"). Its APPEND (string concatenate) assumes a
counted string destination; used 41 times. So too its circular buffer >QPAD.

Re: Handling unsupported line-endings

<smaufu$caa$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 21:34:37 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smaufu$caa$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="12618"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 8 Nov 2021 10:34 UTC

On 8/11/2021 20:11, Ruvim wrote:
> On 2021-11-08 02:55, dxforth wrote:
>
>> What's
>> significant IMO is that counted strings as an encoding method has
>> remained the de-facto standard for Forth and still popularly used
>> despite all the whinging about a "255 char limit".
>
> Yes, they are usually used internally by Forth systems, for example to
> store name of definitions. Or for internal representations of constant
> strings.
>
> But they are rare in programs. By statistics in the SP-Forth repository,
> 'S"' is used 4855 times, 'C"' is used 95 times, that is 50 times rarer.

Use of S" tells one nothing. The better question is how many times
S" has been used to hold strings greater than 255 characters. In the
case of SwiftForth (and presumably its users) the answer would appear
to be zero.

Re: Handling unsupported line-endings

<smb1q7$v20$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 14:31:17 +0300
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <smb1q7$v20$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Nov 2021 11:31:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="90c9a83b9251459ad57382d7ef9eab76";
logging-data="31808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oe6u3nbRVHhIh9OACIvIS"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:yE+r3c0O8yLZqOYnEzs/sStWGiQ=
In-Reply-To: <smaufu$caa$1@gioia.aioe.org>
Content-Language: en-US
 by: Ruvim - Mon, 8 Nov 2021 11:31 UTC

On 2021-11-08 13:34, dxforth wrote:
> On 8/11/2021 20:11, Ruvim wrote:
>> On 2021-11-08 02:55, dxforth wrote:
>>
>>> What's
>>> significant IMO is that counted strings as an encoding method has
>>> remained the de-facto standard for Forth and still popularly used
>>> despite all the whinging about a "255 char limit".
>>
>> Yes, they are usually used internally by Forth systems, for example to
>> store name of definitions. Or for internal representations of constant
>> strings.
>>
>> But they are rare in programs. By statistics in the SP-Forth repository,
>> 'S"' is used 4855 times, 'C"' is used 95 times, that is 50 times rarer.

Just for reference, the commands for gather these statistics are:

ag -c ' S" ' | cut -d ':' -f2 | dc -e '0 0 [+?z1<m]dsmxp'
ag -c ' C" ' | cut -d ':' -f2 | dc -e '0 0 [+?z1<m]dsmxp'

(add '-i' option to 'ag' or use lower case to match case-insensitively)

>
> Use of S" tells one nothing.  The better question is how many times
> S" has been used to hold strings greater than 255 characters.

This question doesn't make any sense. In standard programs 'S"' cannot
be used for string literals having more than ~ 120 characters, due to
limitation of a line length in source files. And it's quite rare when
you need so long string literal.

Also, replacing
S" X"
by
C" X" COUNT
doesn't make any sense.

'S"' is used instead of 'C"' not due to an internal representation, but
since many other words consume character strings represented by (c-addr
u). In their turn, they consume (c-addr u) to don't limit the string
length by 255 characters.

--
Ruvim

Re: Handling unsupported line-endings

<smb7sh$10mt$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 00:14:57 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smb7sh$10mt$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="33501"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Mon, 8 Nov 2021 13:14 UTC

On 8/11/2021 22:31, Ruvim wrote:
> On 2021-11-08 13:34, dxforth wrote:
>>
>> Use of S" tells one nothing.  The better question is how many times
>> S" has been used to hold strings greater than 255 characters.
>
> This question doesn't make any sense. In standard programs 'S"' cannot
> be used for string literals having more than ~ 120 characters, due to
> limitation of a line length in source files.

Use of S" isn't restricted to standard programs. The question stands.

> 'S"' is used instead of 'C"' not due to an internal representation, but
> since many other words consume character strings represented by (c-addr
> u). In their turn, they consume (c-addr u) to don't limit the string
> length by 255 characters.

That's not the reason ANS gave (A.6.1.2165). However there definitely
exists a prejudice against the '255 char limit'. Does your S" have
such a limit?

Re: Handling unsupported line-endings

<smbiji$kpf$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 03:17:53 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smbiji$kpf$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="21295"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Mon, 8 Nov 2021 16:17 UTC

On 9/11/2021 00:14, dxforth wrote:
> On 8/11/2021 22:31, Ruvim wrote:
>> On 2021-11-08 13:34, dxforth wrote:
>>>
>>> Use of S" tells one nothing.  The better question is how many times
>>> S" has been used to hold strings greater than 255 characters.
>>
>> This question doesn't make any sense. In standard programs 'S"' cannot
>> be used for string literals having more than ~ 120 characters, due to
>> limitation of a line length in source files.
>
> Use of S" isn't restricted to standard programs. The question stands.

This test should work on any system:

here 500 dup allot 2constant foo : bar [ foo ] sliteral nip . ; bar

If the result is something other than 500 then it's likely the system
uses counted strings for storage, irrespective of external representation.
Mine returned 255 as expected.

Re: Handling unsupported line-endings

<smbnd8$esn$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Mon, 8 Nov 2021 17:39:37 +0000
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <smbnd8$esn$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Nov 2021 17:39:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ac4d2c9daf95a7a512e03afd24c1998b";
logging-data="15255"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zPicH2pLuAn32n5343Q394d+1/Fmy+PM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:dOBFRoHdxXfZVRm6M2Qv7zQ2Z0Q=
In-Reply-To: <smbiji$kpf$1@gioia.aioe.org>
 by: Gerry Jackson - Mon, 8 Nov 2021 17:39 UTC

On 08/11/2021 16:17, dxforth wrote:
> On 9/11/2021 00:14, dxforth wrote:
>> On 8/11/2021 22:31, Ruvim wrote:
>>> On 2021-11-08 13:34, dxforth wrote:
>>>>
>>>> Use of S" tells one nothing.  The better question is how many times
>>>> S" has been used to hold strings greater than 255 characters.
>>>
>>> This question doesn't make any sense. In standard programs 'S"' cannot
>>> be used for string literals having more than ~ 120 characters, due to
>>> limitation of a line length in source files.
>>
>> Use of S" isn't restricted to standard programs.  The question stands.
>
> This test should work on any system:
>
>  here 500 dup allot 2constant foo : bar [ foo ] sliteral nip . ; bar
>
> If the result is something other than 500 then it's likely the system
> uses counted strings for storage, irrespective of external representation.
> Mine returned 255 as expected.

That's interesting. Given the following code (there's probably a simpler
way to demonstrate the issue but this suffices)

: a 128 32 do i c, loop ;
: b 3 0 do a loop ;
0. 2value c
here 128 32 - 3 * to c
b : d [ c ] sliteral cr type ;

If the following two lines in a Forth system don't display the same long
string that system is not compliant with ANS/Forth2012.

c cr type
d

Gforth, my system and Alex McDonald's wf32 all worked correctly.
VFX Forth hung when executing d
SwiftForth fails to compile d

Of course in practice this is unlikely to cause a problem.

--
Gerry

Re: Handling unsupported line-endings

<65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a37:a8e:: with SMTP id 136mr2131840qkk.395.1636410603047;
Mon, 08 Nov 2021 14:30:03 -0800 (PST)
X-Received: by 2002:a05:6214:d8e:: with SMTP id e14mr2558062qve.37.1636410602851;
Mon, 08 Nov 2021 14:30:02 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.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: Mon, 8 Nov 2021 14:30:02 -0800 (PST)
In-Reply-To: <smbnd8$esn$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f14:600:8886:e67:72f1:efb9;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f14:600:8886:e67:72f1:efb9
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org> <dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me> <4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com> <2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com> <sm9gr9$1cp$1@dont-email.me>
<sm9p1r$15f2$1@gioia.aioe.org> <smapkf$2a1$1@dont-email.me>
<smaufu$caa$1@gioia.aioe.org> <smb1q7$v20$1@dont-email.me>
<smb7sh$10mt$1@gioia.aioe.org> <smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>
Subject: Re: Handling unsupported line-endings
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Mon, 08 Nov 2021 22:30:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Marcel Hendrix - Mon, 8 Nov 2021 22:30 UTC

On Monday, November 8, 2021 at 6:39:54 PM UTC+1, Gerry Jackson wrote:
> On 08/11/2021 16:17, dxforth wrote:
> > On 9/11/2021 00:14, dxforth wrote:
> >> On 8/11/2021 22:31, Ruvim wrote:
> >>> On 2021-11-08 13:34, dxforth wrote:
> >>>>
[..]
> That's interesting. Given the following code (there's probably a simpler
> way to demonstrate the issue but this suffices)
>
> : a 128 32 do i c, loop ;
> : b 3 0 do a loop ;
> 0. 2value c
> here 128 32 - 3 * to c
> b
> : d [ c ] sliteral cr type ;
>
> If the following two lines in a Forth system don't display the same long
> string that system is not compliant with ANS/Forth2012.
>
> c cr type
> d

FORTH> : a 128 32 do i c, loop ; ok
FORTH> : b 3 0 do a loop ; ok
FORTH> 0. dvalue c ok
FORTH> here 128 32 - 3 * to c ok
FORTH> b ok
FORTH> : d [ c ] sliteral cr type ;
Error -64
quoted string should be less than 256 characters ?
FORTH> c .s
Data: 20176896 288 ---
System: ---
Float: --- ok

A bug. Thanks.

-marcel

Re: Handling unsupported line-endings

<smchl6$29k$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 12:07:50 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smchl6$29k$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="2356"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 9 Nov 2021 01:07 UTC

On 9/11/2021 04:39, Gerry Jackson wrote:
> On 08/11/2021 16:17, dxforth wrote:
>> On 9/11/2021 00:14, dxforth wrote:
>>> On 8/11/2021 22:31, Ruvim wrote:
>>>> On 2021-11-08 13:34, dxforth wrote:
>>>>>
>>>>> Use of S" tells one nothing.  The better question is how many times
>>>>> S" has been used to hold strings greater than 255 characters.
>>>>
>>>> This question doesn't make any sense. In standard programs 'S"' cannot
>>>> be used for string literals having more than ~ 120 characters, due to
>>>> limitation of a line length in source files.
>>>
>>> Use of S" isn't restricted to standard programs.  The question stands.
>>
>> This test should work on any system:
>>
>>  here 500 dup allot 2constant foo : bar [ foo ] sliteral nip . ; bar
>>
>> If the result is something other than 500 then it's likely the system
>> uses counted strings for storage, irrespective of external representation.
>> Mine returned 255 as expected.
>
> That's interesting. Given the following code (there's probably a simpler
> way to demonstrate the issue but this suffices)
>
> : a 128 32 do i c, loop ;
> : b 3 0 do a loop ;
> 0. 2value c
> here 128 32 - 3 * to c
> b
> : d [ c ] sliteral cr type ;
>
> If the following two lines in a Forth system don't display the same long
> string that system is not compliant with ANS/Forth2012.
>
> c cr type
> d

I'd be surprised if SLITERAL didn't factor in counted strings that's how
many/most forth systems worked internally at the time and still do.

>
> Gforth, my system and Alex McDonald's wf32 all worked correctly.
> VFX Forth hung when executing d
> SwiftForth fails to compile d

Why SLITERAL should include a 255 UMIN or THROW if it's going to store
as a counted string.

>
> Of course in practice this is unlikely to cause a problem.
>

Just unanticipated. Folks forgive their own stupidity but not that of
others :)

Re: Handling unsupported line-endings

<smckdh$sc6$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 12:54:57 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smckdh$sc6$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
<65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="29062"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Tue, 9 Nov 2021 01:54 UTC

On 9/11/2021 09:30, Marcel Hendrix wrote:
> On Monday, November 8, 2021 at 6:39:54 PM UTC+1, Gerry Jackson wrote:
>> On 08/11/2021 16:17, dxforth wrote:
>> > On 9/11/2021 00:14, dxforth wrote:
>> >> On 8/11/2021 22:31, Ruvim wrote:
>> >>> On 2021-11-08 13:34, dxforth wrote:
>> >>>>
> [..]
>> That's interesting. Given the following code (there's probably a simpler
>> way to demonstrate the issue but this suffices)
>>
>> : a 128 32 do i c, loop ;
>> : b 3 0 do a loop ;
>> 0. 2value c
>> here 128 32 - 3 * to c
>> b
>> : d [ c ] sliteral cr type ;
>>
>> If the following two lines in a Forth system don't display the same long
>> string that system is not compliant with ANS/Forth2012.
>>
>> c cr type
>> d
>
> FORTH> : a 128 32 do i c, loop ; ok
> FORTH> : b 3 0 do a loop ; ok
> FORTH> 0. dvalue c ok
> FORTH> here 128 32 - 3 * to c ok
> FORTH> b ok
> FORTH> : d [ c ] sliteral cr type ;
> Error -64
> quoted string should be less than 256 characters ?
> FORTH> c .s
> Data: 20176896 288 ---
> System: ---
> Float: --- ok
>
> A bug. Thanks.

Looks fine to me.

Re: Handling unsupported line-endings

<smda4j$a6d$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 08:05:39 +0000
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <smda4j$a6d$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
<65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>
<smckdh$sc6$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 9 Nov 2021 08:05:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="da3fed8d64fbc6247235a9b0e96c3191";
logging-data="10445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lxpS5G21CpD2HK5IxErjNN1ccW//6OZ4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:xA/Ry5ueh5tIeXbZtzbp4Z3qKbE=
In-Reply-To: <smckdh$sc6$1@gioia.aioe.org>
 by: Gerry Jackson - Tue, 9 Nov 2021 08:05 UTC

On 09/11/2021 01:54, dxforth wrote:
> On 9/11/2021 09:30, Marcel Hendrix wrote:
>> On Monday, November 8, 2021 at 6:39:54 PM UTC+1, Gerry Jackson wrote:
>>> On 08/11/2021 16:17, dxforth wrote: > On 9/11/2021 00:14, dxforth
>>> wrote: >> On 8/11/2021 22:31, Ruvim wrote: >>> On 2021-11-08 13:34,
>>> dxforth wrote: >>>>
>> [..]
>>> That's interesting. Given the following code (there's probably a
>>> simpler way to demonstrate the issue but this suffices)
>>> : a 128 32 do i c, loop ; : b 3 0 do a loop ; 0. 2value c here 128 32
>>> - 3 * to c b : d [ c ] sliteral cr type ;
>>> If the following two lines in a Forth system don't display the same
>>> long string that system is not compliant with ANS/Forth2012.
>>> c cr type d
>>
>> FORTH> : a 128 32 do i c, loop ;  ok
>> FORTH> : b 3 0 do a loop ;  ok
>> FORTH> 0. dvalue c  ok
>> FORTH> here 128 32 - 3 * to c  ok
>> FORTH> b  ok
>> FORTH> : d [ c ] sliteral cr type ;
>> Error -64
>> quoted string should be less than 256 characters ?
>> FORTH> c .s
>>    Data: 20176896 288 ---
>> System: ---
>>   Float: --- ok
>>
>> A bug. Thanks.
>
> Looks fine to me.

A warning would be better than a misleading error message given that
it is perfectly valid ANS Forth

--
Gerry

Re: Handling unsupported line-endings

<smdd8r$1ijc$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!7AktqsUqy5CCvnKa3S0Dkw.user.46.165.242.75.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 19:59:08 +1100
Organization: Aioe.org NNTP Server
Message-ID: <smdd8r$1ijc$1@gioia.aioe.org>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
<65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>
<smckdh$sc6$1@gioia.aioe.org> <smda4j$a6d$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="51820"; posting-host="7AktqsUqy5CCvnKa3S0Dkw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 9 Nov 2021 08:59 UTC

On 9/11/2021 19:05, Gerry Jackson wrote:
> On 09/11/2021 01:54, dxforth wrote:
>> On 9/11/2021 09:30, Marcel Hendrix wrote:
>>> On Monday, November 8, 2021 at 6:39:54 PM UTC+1, Gerry Jackson wrote:
>>>> On 08/11/2021 16:17, dxforth wrote: > On 9/11/2021 00:14, dxforth
>>>> wrote: >> On 8/11/2021 22:31, Ruvim wrote: >>> On 2021-11-08 13:34,
>>>> dxforth wrote: >>>>
>>> [..]
>>>> That's interesting. Given the following code (there's probably a
>>>> simpler way to demonstrate the issue but this suffices)
>>>> : a 128 32 do i c, loop ; : b 3 0 do a loop ; 0. 2value c here 128 32
>>>> - 3 * to c b : d [ c ] sliteral cr type ;
>>>> If the following two lines in a Forth system don't display the same
>>>> long string that system is not compliant with ANS/Forth2012.
>>>> c cr type d
>>>
>>> FORTH> : a 128 32 do i c, loop ;  ok
>>> FORTH> : b 3 0 do a loop ;  ok
>>> FORTH> 0. dvalue c  ok
>>> FORTH> here 128 32 - 3 * to c  ok
>>> FORTH> b  ok
>>> FORTH> : d [ c ] sliteral cr type ;
>>> Error -64
>>> quoted string should be less than 256 characters ?
>>> FORTH> c .s
>>>    Data: 20176896 288 ---
>>> System: ---
>>>   Float: --- ok
>>>
>>> A bug. Thanks.
>>
>> Looks fine to me.
>
> A warning would be better than a misleading error message given that
> it is perfectly valid ANS Forth
>

The '-64 error' is confusing and I'd leave out 'quoted'.
I would hope it's valid ANS but couldn't find an SLITERAL length limit
in the spec or I missed it.

Re: Handling unsupported line-endings

<smdl91$nft$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Handling unsupported line-endings
Date: Tue, 9 Nov 2021 11:15:44 +0000
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <smdl91$nft$1@dont-email.me>
References: <skjhir$jd9$1@gioia.aioe.org> <slq260$1l9v$1@gioia.aioe.org>
<slr3k0$ct2$1@dont-email.me> <slt808$2u9$1@gioia.aioe.org>
<slteso$ibs$1@dont-email.me> <slts1o$u8v$1@gioia.aioe.org>
<sm36k3$sb2$1@gioia.aioe.org>
<dc79b2c0-767c-4508-99d2-34ab786e7c86n@googlegroups.com>
<sm5jar$a3c$1@dont-email.me>
<4980ce08-fd38-4f33-9736-ae7f7c13bdc8n@googlegroups.com>
<sm5mk4$u2d$1@dont-email.me> <2021Nov7.162402@mips.complang.tuwien.ac.at>
<fd958973-5910-4b19-b297-42be062ffbcfn@googlegroups.com>
<2021Nov7.193152@mips.complang.tuwien.ac.at>
<3b3d3a78-5509-4d90-8555-7ec088d137fan@googlegroups.com>
<sm9gr9$1cp$1@dont-email.me> <sm9p1r$15f2$1@gioia.aioe.org>
<smapkf$2a1$1@dont-email.me> <smaufu$caa$1@gioia.aioe.org>
<smb1q7$v20$1@dont-email.me> <smb7sh$10mt$1@gioia.aioe.org>
<smbiji$kpf$1@gioia.aioe.org> <smbnd8$esn$1@dont-email.me>
<65ff4f4c-54e5-47da-a9a1-e4e684812fb0n@googlegroups.com>
<smckdh$sc6$1@gioia.aioe.org> <smda4j$a6d$1@dont-email.me>
<smdd8r$1ijc$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 9 Nov 2021 11:15:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="de6d1f1f8a55e439162787d3fd96d661";
logging-data="24061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v7SH1lTBgu+/NWnzU8DnvDXRtBWR+4Ig="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:+gK4NrL5LeCvWvdA+TCMo2pWpRI=
In-Reply-To: <smdd8r$1ijc$1@gioia.aioe.org>
 by: Gerry Jackson - Tue, 9 Nov 2021 11:15 UTC

On 09/11/2021 08:59, dxforth wrote:
> On 9/11/2021 19:05, Gerry Jackson wrote:
>> On 09/11/2021 01:54, dxforth wrote:
>>> On 9/11/2021 09:30, Marcel Hendrix wrote:
>>>> On Monday, November 8, 2021 at 6:39:54 PM UTC+1, Gerry Jackson wrote:
>>>>> On 08/11/2021 16:17, dxforth wrote: > On 9/11/2021 00:14, dxforth
>>>>> wrote: >> On 8/11/2021 22:31, Ruvim wrote: >>> On 2021-11-08 13:34,
>>>>> dxforth wrote: >>>>
>>>> [..]
>>>>> That's interesting. Given the following code (there's probably a
>>>>> simpler way to demonstrate the issue but this suffices)
>>>>> : a 128 32 do i c, loop ; : b 3 0 do a loop ; 0. 2value c here 128
>>>>> 32 - 3 * to c b : d [ c ] sliteral cr type ;
>>>>> If the following two lines in a Forth system don't display the same
>>>>> long string that system is not compliant with ANS/Forth2012.
>>>>> c cr type d
>>>>
>>>> FORTH> : a 128 32 do i c, loop ;  ok
>>>> FORTH> : b 3 0 do a loop ;  ok
>>>> FORTH> 0. dvalue c  ok
>>>> FORTH> here 128 32 - 3 * to c  ok
>>>> FORTH> b  ok
>>>> FORTH> : d [ c ] sliteral cr type ;
>>>> Error -64
>>>> quoted string should be less than 256 characters ?
>>>> FORTH> c .s
>>>>    Data: 20176896 288 ---
>>>> System: ---
>>>>   Float: --- ok
>>>>
>>>> A bug. Thanks.
>>>
>>> Looks fine to me.
>>
>>    A warning would be better than a misleading error message given that
>> it is perfectly valid ANS Forth
>>
>
> The '-64 error' is confusing and I'd leave out 'quoted'.

Yes, in Forth 2012 -64 is the exception code for DELETE-FILE

> I would hope it's valid ANS but couldn't find an SLITERAL length limit
> in the spec or I missed it.

I don't think there is any limit specified for SLITERAL

--
Gerry


devel / comp.lang.forth / Re: Handling unsupported line-endings

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor