Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's always sad when the fleas leave, because that means your dog is dead. -- Wesley T. Williams


devel / comp.lang.forth / Use of SAVE-INPUT and RESTORE-INPUT

SubjectAuthor
* Use of SAVE-INPUT and RESTORE-INPUTRuvim
+- Re: Use of SAVE-INPUT and RESTORE-INPUTMarcel Hendrix
+* Re: Use of SAVE-INPUT and RESTORE-INPUTGerry Jackson
|`* Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
| `* Re: Use of SAVE-INPUT and RESTORE-INPUTGerry Jackson
|  +* Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
|  |`* Re: Use of SAVE-INPUT and RESTORE-INPUTnone
|  | `* Re: Use of SAVE-INPUT and RESTORE-INPUTHans Bezemer
|  |  `- Re: Use of SAVE-INPUT and RESTORE-INPUTnone
|  `* Re: Use of SAVE-INPUT and RESTORE-INPUTnone
|   `- Re: Use of SAVE-INPUT and RESTORE-INPUTHans Bezemer
+* Re: Use of SAVE-INPUT and RESTORE-INPUTnone
|`- Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
`* Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
 +* Re: Use of SAVE-INPUT and RESTORE-INPUTnone
 |`- Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
 `* Re: Use of SAVE-INPUT and RESTORE-INPUTdxforth
  `* Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
   `* Re: Use of SAVE-INPUT and RESTORE-INPUTGerry Jackson
    +- Re: Use of SAVE-INPUT and RESTORE-INPUTRuvim
    `* Re: Use of SAVE-INPUT and RESTORE-INPUTdxforth
     `* Re: Use of SAVE-INPUT and RESTORE-INPUTAnton Ertl
      `- Re: Use of SAVE-INPUT and RESTORE-INPUTdxforth

1
Use of SAVE-INPUT and RESTORE-INPUT

<trc5pq$3vi3m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Use of SAVE-INPUT and RESTORE-INPUT
Date: Tue, 31 Jan 2023 22:47:22 +0000
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <trc5pq$3vi3m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 Jan 2023 22:47:22 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e5032f9cc66095fe0d6bf737d5cecaf2";
logging-data="4180086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195UMNUeMFZHu1Smae8SzMf"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:y5oC4RGWqr463mym9Fu6gvj0xIg=
Content-Language: en-US
 by: Ruvim - Tue, 31 Jan 2023 22:47 UTC

It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.

They are like FILE-POSITION and REPOSITION-FILE, but they work for the
current input source.

Did anybody use them in programs/libraries? (not in system internals)

I can only imagine their application in an interpretive loops
implementation.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<da9a626f-282e-4edb-98d5-9e1abcdfcff4n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:ac8:7f16:0:b0:3ae:d88a:7d1d with SMTP id f22-20020ac87f16000000b003aed88a7d1dmr55683qtk.538.1675212284025;
Tue, 31 Jan 2023 16:44:44 -0800 (PST)
X-Received: by 2002:a25:ae93:0:b0:7d1:5a92:eb5c with SMTP id
b19-20020a25ae93000000b007d15a92eb5cmr119871ybj.166.1675212283808; Tue, 31
Jan 2023 16:44:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.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: Tue, 31 Jan 2023 16:44:43 -0800 (PST)
In-Reply-To: <trc5pq$3vi3m$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:1c05:2f18:6d00:7d3f:ba5f:c451:7b46;
posting-account=-JQ2RQoAAAB6B5tcBTSdvOqrD1HpT_Rk
NNTP-Posting-Host: 2001:1c05:2f18:6d00:7d3f:ba5f:c451:7b46
References: <trc5pq$3vi3m$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da9a626f-282e-4edb-98d5-9e1abcdfcff4n@googlegroups.com>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
From: mhx...@iae.nl (Marcel Hendrix)
Injection-Date: Wed, 01 Feb 2023 00:44:44 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 4544
 by: Marcel Hendrix - Wed, 1 Feb 2023 00:44 UTC

On Tuesday, January 31, 2023 at 11:47:25 PM UTC+1, Ruvim wrote:
> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>
> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
> current input source.
>
> Did anybody use them in programs/libraries? (not in system internals)
>
> I can only imagine their application in an interpretive loops
> implementation.

I didn't find anything in SwiftForth and Vfx. The below is cute, but
rather pointless as such (by Wil Baden or Neil Bawd?).

-marcel

-- --------------
ANEW -rt

NEEDS -ran-next

\ *******************************************************************
\ * *
\ * Linear Congruential Sequence *
\ * *
\ * A linear congruential sequence (LCS) depends on four magic *
\ * numbers: X[0], M, A, and C. *
\ * *
\ * 0 VALUE X[i] X[0] TO X[i] *
\ * : RAND ( -- u ) X[i] A * C + M MOD dup TO X[i] ; *
\ * *
\ *******************************************************************

\ *********** Assorted Simple Random Number Generators ************

0 VALUE SEEDi
0 VALUE X[i]
0 VALUE Y[i]

: RANDOM-std ( -- u ) X[i] $107465 * $234567 + dup TO X[i] ;

: RANDOM2P ( -- u )
RANDOM-std #255 AND #24 LSHIFT
RANDOM-std #255 AND #16 LSHIFT OR
RANDOM-std #255 AND 8 LSHIFT OR
RANDOM-std #255 AND OR ;

: Random-Aphwb ( -- u ) X[i] #69069 * 1+ dup TO X[i] ;

\ Estimated cycle: about 74 quadrillion.

: Rand-Next2 ( -- 1..2147483647 )
X[i]
#48271 #2147483647 */MOD DROP
dup TO X[i]
Y[i]
#40692 #2147483399 */MOD DROP
dup TO Y[i]
- dup 0> NOT IF #2147483647 + ENDIF ;

\ **************************** Timing *****************************

VARIABLE TOOL TOOL OFF SAVE-INPUT TOOL @ [IF]

#1000000000 to #TIMES
\ ?Forth iForth; Athlon
SEEDi TO X[i] [TIME Random-Aphwb DROP TIME] \ 5 secs 1.8 secs
SEEDi TO X[i] [TIME RANDOM-std DROP TIME] \ 5 secs 1.6 secs
SEEDi TO X[i] [TIME RANDOM2P DROP TIME] \ 31 secs 5.6 secs
SEEDi TO X[i] 1 TO Y[I] [TIME Rand-Next2 DROP TIME] \ 66 secs 13.8 secs
SEEDi Ran-Start [TIME Ran-Next DROP TIME] \ 99 secs 22.9 secs

[ELSE]

: ANNOUNCE >IN @ >R BL <WORD> CR TYPE Tab EMIT R> >IN ! ;
: :GO S" MARKER NONCE : (GO) " EVALUATE ; IMMEDIATE
: GO S" (GO) NONCE " EVALUATE ; IMMEDIATE
: ;SEE S" ; SEE (GO) NONCE " EVALUATE ; IMMEDIATE
: [TIME ANNOUNCE S" :GO TIMER-RESET #TIMES 0 DO " EVALUATE ; IMMEDIATE
: TIME] S" LOOP .ELAPSED ; GO " EVALUATE ; IMMEDIATE

#1000000000 VALUE #TIMES

TOOL ON RESTORE-INPUT .S .( never get here )

[THEN]

DROP

\ EOF

FORTH> in
Removing --- Ran-Next RNG Version 1.02 ---
Creating --- Ran-Next RNG Version 1.02 ---
Random-Aphwb 2.250 seconds elapsed.
RANDOM-std 2.230 seconds elapsed.
RANDOM2P 9.220 seconds elapsed.
Rand-Next2 3.478 seconds elapsed.
Ran-Next 5.937 seconds elapsed. ok

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trdfc2$9lr6$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Wed, 1 Feb 2023 10:36:51 +0000
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <trdfc2$9lr6$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 10:36:50 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e588cde1905355f203dd1d9f716573af";
logging-data="317286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UHIqhyIMVpHmRyyORFfIx/9JLbu0lefI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:GVT3VihnPWGZdtXsmJLnUCuakEI=
In-Reply-To: <trc5pq$3vi3m$1@dont-email.me>
 by: Gerry Jackson - Wed, 1 Feb 2023 10:36 UTC

On 31/01/2023 22:47, Ruvim wrote:
> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>
> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
> current input source.
>
> Did anybody use them in programs/libraries? (not in system internals)
>
> I can only imagine their application in an interpretive loops
> implementation.
>
>

They are useful if you want to scan the input source twice. For example
in the ANS Forth implementation of closures and quotations that I did
some years ago. In a special colon definition the first pass executed
SAVE-INPUT and stacked the input source data in a separate stack,
looking for various words to do with the closures. If nested, SAVE-INPUT
again stacked the input source data.

At the end of each definition RESTORE-INPUT did just that from the
separate stack to compile the source in a second pass. This results in
the innermost definition being compiled first.

In the first version I saved the source text in a buffer before
realising that SAVE and RESTORE-INPUT were a better solution.

It is not much use where a keyboard is the input source as RESTORE-INPUT
is not guaranteed to work and, I suspect that most Forth systems don't
bother to save keyboard input.

--
Gerry

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trdmo7$9e1n$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Wed, 1 Feb 2023 12:42:47 +0000
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <trdmo7$9e1n$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trdfc2$9lr6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 12:42:47 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6d8e7d93fc0f560b44208d0766585f5d";
logging-data="309303"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o1UiaKn7ujZrnMT+NjNEe"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:HbnUhqdvCm6m2VG4HW/UL/wmlLQ=
Content-Language: en-US
In-Reply-To: <trdfc2$9lr6$1@dont-email.me>
 by: Ruvim - Wed, 1 Feb 2023 12:42 UTC

On 2023-02-01 10:36, Gerry Jackson wrote:
> On 31/01/2023 22:47, Ruvim wrote:
>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>
>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
>> current input source.
>>
>> Did anybody use them in programs/libraries? (not in system internals)
>>
>> I can only imagine their application in an interpretive loops
>> implementation. >>
>>
>
> They are useful if you want to scan the input source twice.

I have just realized, they can be used instead of ">IN @ ... >IN !"
But they are more heavy internally.

OTOH, in many cases you don't need to deal with ">in" if you can employ
"execute-parsing".

> For example
> in the ANS Forth implementation of closures and quotations that I did
> some years ago. In a special colon definition the first pass executed
> SAVE-INPUT and stacked the input source data in a separate stack,
> looking for various words to do with the closures. If nested, SAVE-INPUT
> again stacked the input source data.
>
> At the end of each definition RESTORE-INPUT did just that from the
> separate stack to compile the source in a second pass. This results in
> the innermost definition being compiled first.
>
> In the first version I saved the source text in a buffer before
> realising that SAVE and RESTORE-INPUT were a better solution.

I guess this solution is fragile about redefinitions/renames/wrappers, e.g.:

: foo[ postpone [: ; immediate
: ]foo postpone ;] ; immediate

: bar foo[ ... ]foo ... ;

>
> It is not much use where a keyboard is the input source as RESTORE-INPUT
> is not guaranteed to work and, I suspect that most Forth systems don't
> bother to save keyboard input.
>

Yes. It's technically possible, but after the first call of SAVE-INPUT
the system should save all keyboard (or stdin) input forever (till
process termination).

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<nnd$24c0b221$1ab1c4d7@ffad916e6cefdaaf>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <trc5pq$3vi3m$1@dont-email.me>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$24c0b221$1ab1c4d7@ffad916e6cefdaaf>
Organization: KPN B.V.
Date: Wed, 01 Feb 2023 13:47:01 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 54
Injection-Date: Wed, 01 Feb 2023 13:47:01 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2441
 by: none - Wed, 1 Feb 2023 12:47 UTC

In article <trc5pq$3vi3m$1@dont-email.me>,
Ruvim <ruvim.pinka@gmail.com> wrote:
>It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>
>They are like FILE-POSITION and REPOSITION-FILE, but they work for the
>current input source.
>
>Did anybody use them in programs/libraries? (not in system internals)
>
>I can only imagine their application in an interpretive loops
>implementation.

Saving and restoring >IN is mostly enough.

I have redesigned SAVE-INPUT RESTORE-INPUT into SAVE and RESTORE
that tuck intermediate results on the return stack.
: EVALUATE SAVE SET-SRC 'INTERPRET CATCH RESTORE THROW ;

INCLUDED is approximately
: INCLUDED GET-FILE EVALUATE ;

So I use it all the time.
I supply SAVE-INPUT for others to use, no big deal:
: SAVE-INPUT SRC 2@ PP @ 3 ;

It comes in handy for EXECUTE-PARSING
: EXECUTE-PARSING ROT ROT SAVE SET-SRC CATCH RESTORE THROW ;

But a normal person would use
\ ( sc - ?? )
SAVE SET-SRC 'whatever CATCH RESTORE THROW ;
or even
SAVE SET-SRC whatever RESTORE
if you don't care about exceptions
(say you're doing a quick and dirty program for taxes.)

Bottom line I reject SAVE-INPUT as a reasonable internal.
The alternative internals I have are definedly useful.
Another example:
: GET-NAME SAVE NAME RESTORE ;
if you have to parse a word two times.

(ABORT") is about the only word in ciforth that is not
independantly useful.

>Ruvim

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Use of SAVE-INPUT and RESTORE-INPUT

<tre0lk$cjoq$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Wed, 1 Feb 2023 15:32:03 +0000
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <tre0lk$cjoq$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me>
<nnd$24c0b221$1ab1c4d7@ffad916e6cefdaaf>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Feb 2023 15:32:04 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6d8e7d93fc0f560b44208d0766585f5d";
logging-data="413466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yQ9y1sviNWu7PN4IFciTk"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:olx1sdVGQuiXQlLXgPIb5FiXz0M=
In-Reply-To: <nnd$24c0b221$1ab1c4d7@ffad916e6cefdaaf>
Content-Language: en-US
 by: Ruvim - Wed, 1 Feb 2023 15:32 UTC

On 2023-02-01 12:47, albert wrote:
> In article <trc5pq$3vi3m$1@dont-email.me>,
> Ruvim <ruvim.pinka@gmail.com> wrote:
>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>
>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
>> current input source.
>>
>> Did anybody use them in programs/libraries? (not in system internals)
>>
>> I can only imagine their application in an interpretive loops
>> implementation.
>
> Saving and restoring >IN is mostly enough.

">IN" should be deprecated in favor of a better API — without changing
an address directly, and with better naming.

May be SAVE-INPUT and RESTORE-INPUT could replace ">IN",
if they will be obligated to always work while REFILL was not performed
between them.

> I have redesigned SAVE-INPUT RESTORE-INPUT into SAVE and RESTORE
> that tuck intermediate results on the return stack.
> : EVALUATE SAVE SET-SRC 'INTERPRET CATCH RESTORE THROW ;

Where does "SAVE" save the data?

SP-Forth/4 employs SAVE-SOURCE ( -- i*x u.i )
and RESTORE-SOURCE ( i*x u.i -- ) for that:

: EVALUATE-WITH ( i*x c-addr u xt -- j*x )
SAVE-SOURCE N>R
>R SOURCE! -1 TO SOURCE-ID
R> CATCH
NR> RESTORE-SOURCE
THROW
;
: EVALUATE ( i*x c-addr u -- j*x ) \ 94
['] INTERPRET EVALUATE-WITH
;

>
> INCLUDED is approximately
> : INCLUDED GET-FILE EVALUATE ;
>
> So I use it all the time.
> I supply SAVE-INPUT for others to use, no big deal:
> : SAVE-INPUT SRC 2@ PP @ 3 ;
>
> It comes in handy for EXECUTE-PARSING
> : EXECUTE-PARSING ROT ROT SAVE SET-SRC CATCH RESTORE THROW ;
>
> But a normal person would use
> \ ( sc - ?? )
> SAVE SET-SRC 'whatever CATCH RESTORE THROW ;

Why not
'whatever EXECUTE-PARSING
?

> or even
> SAVE SET-SRC whatever RESTORE
> if you don't care about exceptions
> (say you're doing a quick and dirty program for taxes.)
>
> Bottom line I reject SAVE-INPUT as a reasonable internal.

I see. I asked about programs/libraries — obviously, you don't have
examples of use them too.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<tre9hh$ebbc$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Wed, 1 Feb 2023 18:03:31 +0000
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <tre9hh$ebbc$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trdfc2$9lr6$1@dont-email.me>
<trdmo7$9e1n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 1 Feb 2023 18:03:29 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="74c8aa9e3c7ce25f2d10d6f4e000116f";
logging-data="470380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7Hhn/Adne+fQVTWTdkgvLgJqr7Xgf/i4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:nWUyBgNjczM/b8ff50cRqk537Ec=
In-Reply-To: <trdmo7$9e1n$1@dont-email.me>
 by: Gerry Jackson - Wed, 1 Feb 2023 18:03 UTC

On 01/02/2023 12:42, Ruvim wrote:
> On 2023-02-01 10:36, Gerry Jackson wrote:
>> On 31/01/2023 22:47, Ruvim wrote:
>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>
>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for
>>> the current input source.
>>>
>>> Did anybody use them in programs/libraries? (not in system internals)
>>>
>>> I can only imagine their application in an interpretive loops
>>> implementation. >>
>>>
>>
>> They are useful if you want to scan the input source twice.
>
> I have just realized, they can be used instead of ">IN @ ... >IN !"
> But they are more heavy internally.
>
> OTOH, in many cases you don't need to deal with ">in" if you can employ
> "execute-parsing".
>
>
>> For example in the ANS Forth implementation of closures and quotations
>> that I did some years ago. In a special colon definition the first
>> pass executed SAVE-INPUT and stacked the input source data in a
>> separate stack, looking for various words to do with the closures. If
>> nested, SAVE-INPUT again stacked the input source data.
>>
>> At the end of each definition RESTORE-INPUT did just that from the
>> separate stack to compile the source in a second pass. This results in
>> the innermost definition being compiled first.
>>
>> In the first version I saved the source text in a buffer before
>> realising that SAVE and RESTORE-INPUT were a better solution.
>
> I guess this solution is fragile about redefinitions/renames/wrappers,
> e.g.:
>
>   : foo[ postpone [: ; immediate
>   : ]foo postpone ;] ; immediate
>
>   : bar foo[ ... ]foo ... ;
>

Yes it is a limitation of the program that it cannot handle immediate
user defined parsing words such as your FOO[ inside a colon definition.
It can handle standard parsing words such as POSTPONE S" etc, and
comments but not [IF] etc and DOES> where it aborts. These are
documented as restrictions.

But it could still pass Knuth's Man or Boy test as a man.

>
>>
>> It is not much use where a keyboard is the input source as
>> RESTORE-INPUT is not guaranteed to work and, I suspect that most Forth
>> systems don't bother to save keyboard input.
>>
>
> Yes. It's technically possible, but after the first call of SAVE-INPUT
> the system should save all keyboard (or stdin) input forever (till
> process termination).

Wouldn't a definition ABORTing abandon saving of keyboard input or do
you consider that as 'process termination'? What about the value
returned by KEY?

--
Gerry

Re: Use of SAVE-INPUT and RESTORE-INPUT

<tregkg$fqq8$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Wed, 1 Feb 2023 20:04:31 +0000
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <tregkg$fqq8$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trdfc2$9lr6$1@dont-email.me>
<trdmo7$9e1n$1@dont-email.me> <tre9hh$ebbc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 20:04:32 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="66958a806dbc1abe330596890dfa49af";
logging-data="518984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kD2gdY43rQ84gytOxrsdO"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:X8oSYBbuupT4u5v4Gfn7cXmXg9c=
Content-Language: en-US
In-Reply-To: <tre9hh$ebbc$1@dont-email.me>
 by: Ruvim - Wed, 1 Feb 2023 20:04 UTC

On 2023-02-01 18:03, Gerry Jackson wrote:
> On 01/02/2023 12:42, Ruvim wrote:
>> On 2023-02-01 10:36, Gerry Jackson wrote:
[...]
>>>
>>> It is not much use where a keyboard is the input source as
>>> RESTORE-INPUT is not guaranteed to work and, I suspect that most
>>> Forth systems don't bother to save keyboard input.
>>>
>>
>> Yes. It's technically possible, but after the first call of SAVE-INPUT
>> the system should save all keyboard (or stdin) input forever (till
>> process termination).
>
> Wouldn't a definition ABORTing abandon saving of keyboard input or do
> you consider that as 'process termination'?

I mean the keyboard as far as it's the user input device that is the
input source. For example, in a case of an interactive session.
I think, it should not save keyboard events, but only characters that
are read by REFILL under the hood.

This can be schematically represented as:

keyboard ==> the user input device ==> the input source ==> refill

Or, in a case of input from a file:

the file ==> the input source ==> refill

But in the case of a file there is no need to save the characters since
the file read position can be changed back (as well as the content of
the input buffer and ">IN").

By process termination I mean the action of BYE (or alike).

When ABORT is performed, and it's not caught (by CATCH), you can still
perform RESTORE-INPUT (or another word that calls this one)
interactively, even several times. So the saved characters cannot be
abandoned.

> What about the value returned by KEY?

KEY (and ACCEPT) does not read the input source, but the user input device.

RESTORE-INPUT does reposition of the input source. I think, it should
not affect the user input device, and hence it should not affect KEY.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<nnd$0ebb8ba2$3415d292@b9b886e8c8333cd7>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <trc5pq$3vi3m$1@dont-email.me> <trdfc2$9lr6$1@dont-email.me> <trdmo7$9e1n$1@dont-email.me> <tre9hh$ebbc$1@dont-email.me>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0ebb8ba2$3415d292@b9b886e8c8333cd7>
Organization: KPN B.V.
Date: Thu, 02 Feb 2023 11:58:30 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 89
Injection-Date: Thu, 02 Feb 2023 11:58:30 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Thu, 2 Feb 2023 10:58 UTC

In article <tre9hh$ebbc$1@dont-email.me>,
Gerry Jackson <do-not-use@swldwa.uk> wrote:
>On 01/02/2023 12:42, Ruvim wrote:
>> On 2023-02-01 10:36, Gerry Jackson wrote:
>>> On 31/01/2023 22:47, Ruvim wrote:
>>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>>
>>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for
>>>> the current input source.
>>>>
>>>> Did anybody use them in programs/libraries? (not in system internals)
>>>>
>>>> I can only imagine their application in an interpretive loops
>>>> implementation. >>
>>>>
>>>
>>> They are useful if you want to scan the input source twice.
>>
>> I have just realized, they can be used instead of ">IN @ ... >IN !"
>> But they are more heavy internally.
>>
>> OTOH, in many cases you don't need to deal with ">in" if you can employ
>> "execute-parsing".
>>
>>
>>> For example in the ANS Forth implementation of closures and quotations
>>> that I did some years ago. In a special colon definition the first
>>> pass executed SAVE-INPUT and stacked the input source data in a
>>> separate stack, looking for various words to do with the closures. If
>>> nested, SAVE-INPUT again stacked the input source data.
>>>
>>> At the end of each definition RESTORE-INPUT did just that from the
>>> separate stack to compile the source in a second pass. This results in
>>> the innermost definition being compiled first.
>>>
>>> In the first version I saved the source text in a buffer before
>>> realising that SAVE and RESTORE-INPUT were a better solution.
>>
>> I guess this solution is fragile about redefinitions/renames/wrappers,
>> e.g.:
>>
>>   : foo[ postpone [: ; immediate
>>   : ]foo postpone ;] ; immediate
>>
>>   : bar foo[ ... ]foo ... ;
>>
>
>Yes it is a limitation of the program that it cannot handle immediate
>user defined parsing words such as your FOO[ inside a colon definition.
>It can handle standard parsing words such as POSTPONE S" etc, and
>comments but not [IF] etc and DOES> where it aborts. These are
>documented as restrictions.
>
>But it could still pass Knuth's Man or Boy test as a man.
>
>>
>>>
>>> It is not much use where a keyboard is the input source as
>>> RESTORE-INPUT is not guaranteed to work and, I suspect that most Forth
>>> systems don't bother to save keyboard input.
>>>
>>
>> Yes. It's technically possible, but after the first call of SAVE-INPUT
>> the system should save all keyboard (or stdin) input forever (till
>> process termination).
>
>Wouldn't a definition ABORTing abandon saving of keyboard input or do
>you consider that as 'process termination'? What about the value
>returned by KEY?

My take on it is that ABORT is a system restart. Implementing ABORT
via a THROW is an abomination. If you want THROW , you know where to
find them.
Implementing endless layers of recovery serves no purpose. The
certainty that you have a word that kills and restarts trustworthy
everything going on, is on the other hand eminently useful. Don't use
it if you don't want that.

>
>--
>Gerry
>
Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Use of SAVE-INPUT and RESTORE-INPUT

<nnd$09828bd5$4390d074@b64ca019a6fa879b>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <trc5pq$3vi3m$1@dont-email.me> <trdmo7$9e1n$1@dont-email.me> <tre9hh$ebbc$1@dont-email.me> <tregkg$fqq8$1@dont-email.me>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$09828bd5$4390d074@b64ca019a6fa879b>
Organization: KPN B.V.
Date: Thu, 02 Feb 2023 12:22:49 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 90
Injection-Date: Thu, 02 Feb 2023 12:22:49 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 4275
 by: none - Thu, 2 Feb 2023 11:22 UTC

In article <tregkg$fqq8$1@dont-email.me>, Ruvim <ruvim.pinka@gmail.com> wrote:
>On 2023-02-01 18:03, Gerry Jackson wrote:
>> On 01/02/2023 12:42, Ruvim wrote:
>>> On 2023-02-01 10:36, Gerry Jackson wrote:
>[...]
>>>>
>>>> It is not much use where a keyboard is the input source as
>>>> RESTORE-INPUT is not guaranteed to work and, I suspect that most
>>>> Forth systems don't bother to save keyboard input.
>>>>
>>>
>>> Yes. It's technically possible, but after the first call of SAVE-INPUT
>>> the system should save all keyboard (or stdin) input forever (till
>>> process termination).
>>
>> Wouldn't a definition ABORTing abandon saving of keyboard input or do
>> you consider that as 'process termination'?
>
>
>I mean the keyboard as far as it's the user input device that is the
>input source. For example, in a case of an interactive session.
>I think, it should not save keyboard events, but only characters that
>are read by REFILL under the hood.

REFILL is a cludge inherited from the time, the terminal input buffer
was to serve double purpose. TIB #TIB was abandoned but not so REFILL.
There isn't ever needed a REFILL except for the terminal input buffer
aptly named REFILL-TIB. It reads a line from the terminal,
approximately READ-FILE from standard in.

Nowadays REFILL is only used to interpret a source file line by line.
So lina has to supply them as a loadable extension, but otherwise
has no employment for it.

>
>This can be schematically represented as:
>
> keyboard ==> the user input device ==> the input source ==> refill
>
>Or, in a case of input from a file:
>
> the file ==> the input source ==> refill
>
>But in the case of a file there is no need to save the characters since
>the file read position can be changed back (as well as the content of
>the input buffer and ">IN").
>
>
>By process termination I mean the action of BYE (or alike).
>
>When ABORT is performed, and it's not caught (by CATCH), you can still
>perform RESTORE-INPUT (or another word that calls this one)
>interactively, even several times. So the saved characters cannot be
>abandoned.

Bad idea. Your system is running through hoops, for what?
>
>
>> What about the value returned by KEY?
>
>KEY (and ACCEPT) does not read the input source, but the user input device.

KEY? is inspecting if an asynchronous event had taken place.
Is has virtually nothing to do with the user input device.
A testament to that is that the implementation is totally different.
Then you have to read the input character ...
It would be better to have a BREAK? that senses the 'break' key on the
keyboard, or a delayed action on ^C.

>
>RESTORE-INPUT does reposition of the input source. I think, it should
>not affect the user input device, and hence it should not affect KEY.

I really don't understand this. The system doesn't take action until you
hit return. From that moment on the terminal input buffer should
be frozen until OK-time. You could do RESTORE-INPUT that is a posh word
to saving and restoring >IN.
Whether KEY's are stored in a type ahead buffer or ignored is neither
here not there.

>--
>Ruvim
>
Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Use of SAVE-INPUT and RESTORE-INPUT

<2b720d62-1d9e-4dea-9cb4-2021ccc5152an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:6214:29e8:b0:556:57ff:64d1 with SMTP id jv8-20020a05621429e800b0055657ff64d1mr387778qvb.8.1675359823270;
Thu, 02 Feb 2023 09:43:43 -0800 (PST)
X-Received: by 2002:a81:12cb:0:b0:506:402d:7b44 with SMTP id
194-20020a8112cb000000b00506402d7b44mr805915yws.245.1675359823030; Thu, 02
Feb 2023 09:43:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Thu, 2 Feb 2023 09:43:42 -0800 (PST)
In-Reply-To: <nnd$0ebb8ba2$3415d292@b9b886e8c8333cd7>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <trc5pq$3vi3m$1@dont-email.me> <trdfc2$9lr6$1@dont-email.me>
<trdmo7$9e1n$1@dont-email.me> <tre9hh$ebbc$1@dont-email.me> <nnd$0ebb8ba2$3415d292@b9b886e8c8333cd7>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2b720d62-1d9e-4dea-9cb4-2021ccc5152an@googlegroups.com>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Thu, 02 Feb 2023 17:43:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1966
 by: Hans Bezemer - Thu, 2 Feb 2023 17:43 UTC

On Thursday, February 2, 2023 at 11:58:34 AM UTC+1, none albert wrote:
> My take on it is that ABORT is a system restart. Implementing ABORT
> via a THROW is an abomination. If you want THROW , you know where to
> find them.
> Implementing endless layers of recovery serves no purpose. The
> certainty that you have a word that kills and restarts trustworthy
> everything going on, is on the other hand eminently useful. Don't use
> it if you don't want that.
I tend to agree with you. If you want to leave, leave. If you want to think about
it, think about it. For that purpose I created THROW" - which is the "think about
it" variant of ABORT". But ABORT does exactly what it says on the label. It aborts.

Hans Bezemer

Re: Use of SAVE-INPUT and RESTORE-INPUT

<e8af60ca-38af-4cda-baf1-0bbfdac36126n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
X-Received: by 2002:a05:622a:44d:b0:3b8:4c57:cd7a with SMTP id o13-20020a05622a044d00b003b84c57cd7amr750247qtx.327.1675360440182;
Thu, 02 Feb 2023 09:54:00 -0800 (PST)
X-Received: by 2002:a25:e6c8:0:b0:7b8:6b6d:cdc4 with SMTP id
d191-20020a25e6c8000000b007b86b6dcdc4mr874231ybh.635.1675360439938; Thu, 02
Feb 2023 09:53:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Thu, 2 Feb 2023 09:53:59 -0800 (PST)
In-Reply-To: <nnd$09828bd5$4390d074@b64ca019a6fa879b>
Injection-Info: google-groups.googlegroups.com; posting-host=77.174.47.232; posting-account=Ebqe4AoAAABfjCRL4ZqOHWv4jv5ZU4Cs
NNTP-Posting-Host: 77.174.47.232
References: <trc5pq$3vi3m$1@dont-email.me> <trdmo7$9e1n$1@dont-email.me>
<tre9hh$ebbc$1@dont-email.me> <tregkg$fqq8$1@dont-email.me> <nnd$09828bd5$4390d074@b64ca019a6fa879b>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e8af60ca-38af-4cda-baf1-0bbfdac36126n@googlegroups.com>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
From: the.beez...@gmail.com (Hans Bezemer)
Injection-Date: Thu, 02 Feb 2023 17:54:00 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2434
 by: Hans Bezemer - Thu, 2 Feb 2023 17:53 UTC

On Thursday, February 2, 2023 at 12:22:52 PM UTC+1, none albert wrote:
> There isn't ever needed a REFILL except for the terminal input buffer
> aptly named REFILL-TIB. It reads a line from the terminal,
> approximately READ-FILE from standard in.
>
> Nowadays REFILL is only used to interpret a source file line by line.
> So lina has to supply them as a loadable extension, but otherwise
> has no employment for it.
Here we differ. In 4tH, if you want to read chunks of raw data, you use
ACCEPT. REFILL reads lines.

But note that 4tH has a vastly different file mechanism. Each input or
output word (yes, even TYPE, . or .") can write to an output file. If you
open a file in 4tH, you've opened a stream. The word USE connects this
stream to (depending HOW you opened it) the input and/or the output
channel.

Therefore, there is no distinction between text or binary mode. Treat it like
a text file (e.g. by using REFILL) and it is a text file. Treat it like a binary file
(e.g. by using ACCEPT) and it is a binary file.

Consequently, it is trivial to define the ANS FILE wordset in 4tH, but almost
impossible to implement 4tHs way of handling files in ANS.

Hans Bezemer

Re: Use of SAVE-INPUT and RESTORE-INPUT

<nnd$0e9fec62$0125ab1e@44033a68eed4ed21>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
References: <trc5pq$3vi3m$1@dont-email.me> <tregkg$fqq8$1@dont-email.me> <nnd$09828bd5$4390d074@b64ca019a6fa879b> <e8af60ca-38af-4cda-baf1-0bbfdac36126n@googlegroups.com>
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$0e9fec62$0125ab1e@44033a68eed4ed21>
Organization: KPN B.V.
Date: Fri, 03 Feb 2023 12:24:25 +0100
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 63
Injection-Date: Fri, 03 Feb 2023 12:24:25 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: none - Fri, 3 Feb 2023 11:24 UTC

In article <e8af60ca-38af-4cda-baf1-0bbfdac36126n@googlegroups.com>,
Hans Bezemer <the.beez.speaks@gmail.com> wrote:
>On Thursday, February 2, 2023 at 12:22:52 PM UTC+1, none albert wrote:
>> There isn't ever needed a REFILL except for the terminal input buffer
>> aptly named REFILL-TIB. It reads a line from the terminal,
>> approximately READ-FILE from standard in.
>>
>> Nowadays REFILL is only used to interpret a source file line by line.
>> So lina has to supply them as a loadable extension, but otherwise
>> has no employment for it.
>Here we differ. In 4tH, if you want to read chunks of raw data, you use
>ACCEPT. REFILL reads lines.

ACCEPT in ciforth's lina64 docs:
Transfer at most count characters from the terminal to address, until
a RET is received. The simple tty editing functions of Linux are
observed, i.e. the ``erase'' (delete a character) and ``kill'' (delete
a line) characters. Typically these are the backspace key and ^U. Note
that excess characters after count are ignored. The number of
characters not including the RET is returned into n.

This is in accordance with the ISO standard (hopefully).
Anyhow the standard is clear that ACCEPT reads lines with printable
char's from a terminal.
An implication is that it is related to keyboard events and ascii
characters and it is happening in real time not batch, and there
can be indeterminate delays between events, not related to the speed
of the CPU.

Actually your ACCEPT is the opposite, raw data input?

>But note that 4tH has a vastly different file mechanism. Each input or
>output word (yes, even TYPE, . or .") can write to an output file. If you
>open a file in 4tH, you've opened a stream. The word USE connects this
>stream to (depending HOW you opened it) the input and/or the output
>channel.
>
>Therefore, there is no distinction between text or binary mode. Treat it like
>a text file (e.g. by using REFILL) and it is a text file.
>Treat it like a binary file
>(e.g. by using ACCEPT) and it is a binary file.
>
>Consequently, it is trivial to define the ANS FILE wordset in 4tH, but almost
>impossible to implement 4tHs way of handling files in ANS.

Yeah, quite different.
I am quite fond of the unix paradigm, a file is a sequence of bytes.
One of my jobs:
The sorting of Van Dalen's dictionary went from 2 days on a pdp 11
to minutes on a VAX. Unfortunately with the different file types
on the VAX VMS, have to use strange file types and the program took
5 times as long as necessary.
(The customer was quite happy though).

>
>Hans Bezemer
Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trmbli$23fon$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sat, 4 Feb 2023 19:28:50 +0000
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <trmbli$23fon$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Feb 2023 19:28:50 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5340b384eebefd967e17f92be0efde4b";
logging-data="2211607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZJ3Qa6ybI9yFa9J/ZDM5H"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:soNOik6YheFJ1NrRcbbh8mqdoN8=
Content-Language: en-US
In-Reply-To: <trc5pq$3vi3m$1@dont-email.me>
 by: Ruvim - Sat, 4 Feb 2023 19:28 UTC

On 2023-01-31 22:47, Ruvim wrote:
> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>
> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
> current input source.
>
> Did anybody use them in programs/libraries? (not in system internals)
>

Don't you think these words can be destandardized due to their little
usefulness?

What is a better API to replace them?

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<nnd$5fee9f3f$45664f05@3b0985b3bf535c83>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
From: alb...@cherry (none)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$5fee9f3f$45664f05@3b0985b3bf535c83>
Organization: KPN B.V.
Date: Sat, 04 Feb 2023 20:55:48 +0100
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 30
Injection-Date: Sat, 04 Feb 2023 20:55:48 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1642
 by: none - Sat, 4 Feb 2023 19:55 UTC

In article <trmbli$23fon$1@dont-email.me>,
Ruvim <ruvim.pinka@gmail.com> wrote:
>On 2023-01-31 22:47, Ruvim wrote:
>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>
>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
>> current input source.
>>
>> Did anybody use them in programs/libraries? (not in system internals)
>>
>
>
>Don't you think these words can be destandardized due to their little
>usefulness?
>
>What is a better API to replace them?

You don't mean FILE-POSITION and REPOSITION-FILE , I hope?
They are quite useful.

>--
>Ruvim

Groetjes Albert
--
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat spinning. - the Wise from Antrim -

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trmq1b$26407$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sat, 4 Feb 2023 23:34:04 +0000
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <trmq1b$26407$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<nnd$5fee9f3f$45664f05@3b0985b3bf535c83>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Feb 2023 23:34:03 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="872899497a4e831d58e1c21c7d0fadfb";
logging-data="2297863"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZlAPugcn6Fj4O+pbO5zd1"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:vRXF7579vpCr5SejxhcQms2EU3g=
Content-Language: en-US
In-Reply-To: <nnd$5fee9f3f$45664f05@3b0985b3bf535c83>
 by: Ruvim - Sat, 4 Feb 2023 23:34 UTC

On 2023-02-04 19:55, albert wrote:
> In article <trmbli$23fon$1@dont-email.me>,
> Ruvim <ruvim.pinka@gmail.com> wrote:
>> On 2023-01-31 22:47, Ruvim wrote:
>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>
>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the
>>> current input source.
>>>
>>> Did anybody use them in programs/libraries? (not in system internals)
>>>
>>
>>
>> Don't you think these words can be destandardized due to their little
>> usefulness?
>>
>> What is a better API to replace them?
>
> You don't mean FILE-POSITION and REPOSITION-FILE , I hope?

Yes, I don't mean that.

Actually, to think about another API, it should be clear what a problem
this API should solve. I just don't have an idea in this regard.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trn8tl$2b240$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sun, 5 Feb 2023 14:48:05 +1100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <trn8tl$2b240$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Feb 2023 03:48:05 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="83a6070b6fadc996bb8aecb5fce143bc";
logging-data="2459776"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Mg92RQXhvnEX8ggq4p2Ma"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:3Ux++v657SfHY/W4YXUusMRIWsk=
Content-Language: en-GB
In-Reply-To: <trmbli$23fon$1@dont-email.me>
 by: dxforth - Sun, 5 Feb 2023 03:48 UTC

On 5/02/2023 6:28 am, Ruvim wrote:
> On 2023-01-31 22:47, Ruvim wrote:
>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>
>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the current input source.
>>
>> Did anybody use them in programs/libraries? (not in system internals)
>
> Don't you think these words can be destandardized due to their little usefulness?
>
> What is a better API to replace them?

If those words have little use, then what is the case for replacing them?

Re: Use of SAVE-INPUT and RESTORE-INPUT

<tro8jt$2ge40$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sun, 5 Feb 2023 12:49:01 +0000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <tro8jt$2ge40$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<trn8tl$2b240$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Feb 2023 12:49:01 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="872899497a4e831d58e1c21c7d0fadfb";
logging-data="2635904"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J44+p6Qcuxa2/c3g2uAuQ"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:40uf1oN4y8Dg2XBE9xI/oGtH5sU=
In-Reply-To: <trn8tl$2b240$1@dont-email.me>
Content-Language: en-US
 by: Ruvim - Sun, 5 Feb 2023 12:49 UTC

On 2023-02-05 03:48, dxforth wrote:
> On 5/02/2023 6:28 am, Ruvim wrote:
>> On 2023-01-31 22:47, Ruvim wrote:
>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>
>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for
>>> the current input source.
>>>
>>> Did anybody use them in programs/libraries? (not in system internals)
>>
>> Don't you think these words can be destandardized due to their little
>> usefulness?
>>
>> What is a better API to replace them?
>
> If those words have little use, then what is the case for replacing them?
>

If a reason of little use is their inconvenient API.
Or if somebody think that a program should anyway be able to extract an
arbitrary part of the input source (following the current position) and
include/translate it multiple times.

Without RESTORE-INPUT a program can save a part of the input source into
the memory, but it's difficult to include it, since if EVALUATE is used,
the line comment ("\") and PARSE work till the end of the memory region,
instead of a line terminator.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<tro9e1$2gncg$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: do-not-...@swldwa.uk (Gerry Jackson)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sun, 5 Feb 2023 13:02:57 +0000
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <tro9e1$2gncg$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<trn8tl$2b240$1@dont-email.me> <tro8jt$2ge40$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Feb 2023 13:02:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3003b246c329f4f66db431c46818a345";
logging-data="2645392"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18guCrvF4X0++1NsLSR+Jmq4lfHvF//AsA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:l3VTDIwCa64pyuIkbUlddCcuOb4=
In-Reply-To: <tro8jt$2ge40$1@dont-email.me>
 by: Gerry Jackson - Sun, 5 Feb 2023 13:02 UTC

On 05/02/2023 12:49, Ruvim wrote:
> On 2023-02-05 03:48, dxforth wrote:
>> On 5/02/2023 6:28 am, Ruvim wrote:
>>> On 2023-01-31 22:47, Ruvim wrote:
>>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>>
>>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for
>>>> the current input source.
>>>>
>>>> Did anybody use them in programs/libraries? (not in system internals)
>>>
>>> Don't you think these words can be destandardized due to their little
>>> usefulness?
>>>
>>> What is a better API to replace them?
>>
>> If those words have little use, then what is the case for replacing them?
>>
>
> If a reason of little use is their inconvenient API.

What is their inconvenient API? It seems ok to me. Before words get
removed from the standard their use should be deprecated for some years
to enable users to adjust to their absence.

You should not regard response on comp.lang.forth as covering all Forth
programmers. I think many people are driven away by the toxic posters we
have.

--
Gerry

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trodav$2ge40$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ruvim.pi...@gmail.com (Ruvim)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sun, 5 Feb 2023 14:09:35 +0000
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <trodav$2ge40$2@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<trn8tl$2b240$1@dont-email.me> <tro8jt$2ge40$1@dont-email.me>
<tro9e1$2gncg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 5 Feb 2023 14:09:35 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="872899497a4e831d58e1c21c7d0fadfb";
logging-data="2635904"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zBwoDrgKwDsw/NlY7SiCB"
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
Firefox/102.0
Cancel-Lock: sha1:K6QRdcy+vUGGd/jHgw6xfSzG6AQ=
Content-Language: en-US
In-Reply-To: <tro9e1$2gncg$1@dont-email.me>
 by: Ruvim - Sun, 5 Feb 2023 14:09 UTC

On 2023-02-05 13:02, Gerry Jackson wrote:
> On 05/02/2023 12:49, Ruvim wrote:
>> On 2023-02-05 03:48, dxforth wrote:
>>> On 5/02/2023 6:28 am, Ruvim wrote:
>>>> On 2023-01-31 22:47, Ruvim wrote:
>>>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>>>
>>>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for
>>>>> the current input source.
>>>>>
>>>>> Did anybody use them in programs/libraries? (not in system internals)
>>>>
>>>> Don't you think these words can be destandardized due to their
>>>> little usefulness?
>>>>
>>>> What is a better API to replace them?
>>>
>>> If those words have little use, then what is the case for replacing
>>> them?
>>>
>>
>> If a reason of little use is their inconvenient API.
>
> What is their inconvenient API? It seems ok to me.

The standard does not require them to work for any input source.

They cannot help if you need to include a saved portion when the
source-id is changed.

In one my task I need exactly that — saving a portion of the input
source to later include it in other contexts regardless the source-id.

> Before words get
> removed from the standard their use should be deprecated for some years
> to enable users to adjust to their absence.

Agreed. I just ask what people think.

>
> You should not regard response on comp.lang.forth as covering all Forth
> programmers. I think many people are driven away by the toxic posters we
> have.

I also asked about use cases in ForthHub/discussions and in EuroForth chat.

--
Ruvim

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trojg4$2i542$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Mon, 6 Feb 2023 02:54:44 +1100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <trojg4$2i542$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<trn8tl$2b240$1@dont-email.me> <tro8jt$2ge40$1@dont-email.me>
<tro9e1$2gncg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Feb 2023 15:54:44 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="83a6070b6fadc996bb8aecb5fce143bc";
logging-data="2692226"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ROdAdD1ChL7EeU+XgyO5a"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:1c8yQjcqzp8QmuRuHbG36/6x8ps=
Content-Language: en-GB
In-Reply-To: <tro9e1$2gncg$1@dont-email.me>
 by: dxforth - Sun, 5 Feb 2023 15:54 UTC

On 6/02/2023 12:02 am, Gerry Jackson wrote:
> On 05/02/2023 12:49, Ruvim wrote:
>> On 2023-02-05 03:48, dxforth wrote:
>>> On 5/02/2023 6:28 am, Ruvim wrote:
>>>> On 2023-01-31 22:47, Ruvim wrote:
>>>>> It seems the words SAVE-INPUT and RESTORE-INPUT are not quite useful.
>>>>>
>>>>> They are like FILE-POSITION and REPOSITION-FILE, but they work for the current input source.
>>>>>
>>>>> Did anybody use them in programs/libraries? (not in system internals)
>>>>
>>>> Don't you think these words can be destandardized due to their little usefulness?
>>>>
>>>> What is a better API to replace them?
>>>
>>> If those words have little use, then what is the case for replacing them?
>>>
>>
>> If a reason of little use is their inconvenient API.
>
> What is their inconvenient API? It seems ok to me. Before words get removed from the standard their use should be deprecated for some years to enable users to adjust to their absence.

The last release was 2012 so that would seem to cover it. But such concerns
seem premature considering there's not even been an RfD AFAIK.

> You should not regard response on comp.lang.forth as covering all Forth programmers. I think many people are driven away by the toxic posters we have.

Unless I'm mistaken 200x is required to conduct discussions through c.l.f.
However as 200x now has its own forum it can do its business there, avoiding
those it deems suppressive. I can't speak for c.l.f. but I have no objections
to such a move.

Re: Use of SAVE-INPUT and RESTORE-INPUT

<2023Feb5.171246@mips.complang.tuwien.ac.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Sun, 05 Feb 2023 16:12:46 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 23
Message-ID: <2023Feb5.171246@mips.complang.tuwien.ac.at>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me> <trn8tl$2b240$1@dont-email.me> <tro8jt$2ge40$1@dont-email.me> <tro9e1$2gncg$1@dont-email.me> <trojg4$2i542$1@dont-email.me>
Injection-Info: reader01.eternal-september.org; posting-host="809e734354b42de400fc8544b9ef6a04";
logging-data="2719651"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nlKchD4aFEoaLnvZx83gU"
Cancel-Lock: sha1:lomo8p/jTKNPBi05j5PnGMPnGu0=
X-newsreader: xrn 10.11
 by: Anton Ertl - Sun, 5 Feb 2023 16:12 UTC

dxforth <dxforth@gmail.com> writes:
>On 6/02/2023 12:02 am, Gerry Jackson wrote:
>> What is their inconvenient API? It seems ok to me. Before words get removed from the standard their use should be deprecated for some years to enable users to adjust to their absence.
>
>The last release was 2012 so that would seem to cover it.

These words have not been marked as obsolescent in 2012. If someone
succeeds with the proposal to eventually remove these words, they will
be marked as obsolescent in the next standard, and expected to be
removed in the release after that.

>Unless I'm mistaken 200x is required to conduct discussions through c.l.f.

Not any longer. All online discussions are on forth-standard.org. If
I do a proposal of wider interest, I usually post a pointer here,
however.

- 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: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net

Re: Use of SAVE-INPUT and RESTORE-INPUT

<trpdca$2nvsk$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.lang.forth
Subject: Re: Use of SAVE-INPUT and RESTORE-INPUT
Date: Mon, 6 Feb 2023 10:16:26 +1100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <trpdca$2nvsk$1@dont-email.me>
References: <trc5pq$3vi3m$1@dont-email.me> <trmbli$23fon$1@dont-email.me>
<trn8tl$2b240$1@dont-email.me> <tro8jt$2ge40$1@dont-email.me>
<tro9e1$2gncg$1@dont-email.me> <trojg4$2i542$1@dont-email.me>
<2023Feb5.171246@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, 5 Feb 2023 23:16:26 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="92b5aa998bfc8700d5c015a57911be38";
logging-data="2883476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+G4hYzJgOEZllMNeR4xFX2"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:0v/SKtjOjqYXRLnU9J4y3yQ4AKU=
In-Reply-To: <2023Feb5.171246@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: dxforth - Sun, 5 Feb 2023 23:16 UTC

On 6/02/2023 3:12 am, Anton Ertl wrote:
> dxforth <dxforth@gmail.com> writes:
> ...
>> Unless I'm mistaken 200x is required to conduct discussions through c.l.f.
>
> Not any longer. All online discussions are on forth-standard.org. If
> I do a proposal of wider interest, I usually post a pointer here,
> however.

ANS/200x is in its heaven and all's well with the world. No more walking on
eggshells lest someone be offended at the idea it be just a tool and product
of the mind deserving of no special consideration or reverence.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor