Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #57481
| From | Gerry Jackson <gerry@jackson9000.fsnet.co.uk> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Russians about standard (survey taken in 2010 ) |
| Date | 2017-04-17 09:03 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <od1smf$42f$1@dont-email.me> (permalink) |
| References | (5 earlier) <d8b550c5-13b2-4760-8d9e-5adad78a234a@googlegroups.com> <ocuegr$84v$2@dont-email.me> <0f3955b0-9054-4127-90b7-eafe87bece99@googlegroups.com> <od0fv8$kqo$1@dont-email.me> <4824f78a-58a3-4ba2-924c-5059d3304fbd@googlegroups.com> |
On 17/04/2017 04:41, hughaguilar96@gmail.com wrote:
> On Sunday, April 16, 2017 at 12:20:04 PM UTC-7, Gerry wrote:
>> On 16/04/2017 02:14, hughaguilar96@gmail.com wrote:
>>> Notice how Elizabeth Rather listed Charles Moore's name on the
>>> ANS-Forth document in 1994 as a supporter, despite the fact that
>>> he walked out on ANS-Forth in 1989 (I have a copy of his exit
>>> speech). She also listed Ray Duncan's name on the ANS-Forth
>>> document in 1994 as a supporter, despite the fat that in 1993
>>> he was on comp.lang.forth describing the ONLY ALSO scheme as
>>> being "severely brain-damaged" (it is).
>>>
>>
>> Why is the ONLY-ALSO scheme "severely brain-damaged"? It seems to work
>> OK for me and I don't recollect anyone else criticising it so severely.
>
> This has already been discussed on comp.lang.forth:
> https://groups.google.com/forum/#!topic/comp.lang.forth/olO-VHXJa1Q%5B1-25%5D
>
Looking at that discussion the only objection I can find is the fact
that ALSO duplicates the wid at the start of the search order. This
doesn't seem a problem to me and makes code a bit more readable e.g.
ALSO VOC-NAME instead of just VOC-NAME (admittedly rather trivial)
and that objection was from you, not Ray Duncan who didn't seem to give
a reason for his "severely brain-damaged" opinion - it read more like
sour grapes to me.
The rest of the objections were because VFX Forth had a bug that you had
to work around, that wasn't caused by the standard but MPE's
non-compliant implementation of locals, since apparently fixed.
> I had to write code to fix the screwed-up ANS-Forth word-list scheme in order to get my cross-compiler to work. Here it is:
> --------------------------------------------------------------------------
>
> \ ******
> \ ****** Some word-list stuff.
> \ ******
>
> : set-forth ( -- ) \ sets default configuration
> only forth definitions ;
>
> : <get-context> ( -- wid ) \ like CONTEXT @ in Forth-83 (ANS-Forth already provides GET-CURRENT)
> get-order dup 1 < abort" *** GET-CONTEXT given empty search-order ***"
> over >r \ r: -- top-wid
> 0 do drop loop \ --
> r> ;
>
> : <push-context> { wid -- }
> get-order
> wid swap 1+ \ put WID on top of whatever is there
> set-order ;
>
> \ <PUSH-CONTEXT> always pushes WID, even if WID is already the 1st. It has to be consistent in always pushing, so <POP-CONTEXT> can pop what was pushed.
>
> : <pop-context> ( -- wid ) \ undo PUSH-CONTEXT and return the wid
> get-order dup 1 < abort" *** POP-CONTEXT given empty search-order ***"
> swap >r 1-
> set-order
> r> ;
>
> : <drop-context> ( -- )
> <pop-context> drop ;
These definitions just reflect the fact the the ANS Forth wordlist is a
set of words that a user can use to build higher level dictionary
handling stuff needed by the user. This was probably because the members
of the standardisation committee couldn't agree on the higher level
dictionary stuff.
Your definition <PUSH-CONTEXT> is usually called >ORDER by other people.
>
> \ <GET-CONTEXT> <PUSH-CONTEXT> <POP-CONTEXT> and <DROP-CONTEXT> don't take into consideration LOCALVARS# being in the way.
And why should they? You were using VFX which had the bug that had a
locals wordlist in the way and that you had to work around - blame MPE
for that not the standard. The rest of the code you posted seems to be a
workaround for that bug and hence irrelevant to other systems. So why
post it, particularly as MPE have fixed the bug and it doesn't appear
(AFAIK) in other Forth systems.
If all that code is still in your novice package I recommend that you
delete it.
[much code snipped]
> \ Problems may arise when using PUSH-CONTEXT and POP-CONTEXT if two wids are supposed to have words of the same name.
> \ The user does a PUSH-CONTEXT of one of the wids, but the other wid is already in the search-order.
> \ The user then looks up a word name. Unfortunately, the wid on top that is supposed to have that name doesn't have it, and so the name is found in the other wid.
> \ Because of this problem, it is best to check every xt with IN-WORDLIST? to make sure that it was defined in the expected word-list.
I don't understand what all this is about
> \ Unfortunately, IN-WORDLIST? doesn't always work because it depends upon >NAME that is not ANS-Forth (some ANS-Forth systems, such as VFX, have it though).
Forth 2012 has TRAVERSE-WORDLIST and friends
--
Gerry
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 13:49 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 17:11 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 14:40 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 18:17 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 15:26 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 19:11 -0400
Re: Russians about standard (survey taken in 2010 ) "Elizabeth D. Rather" <erather@forth.com> - 2017-04-11 13:13 -1000
Re: Russians about standard (survey taken in 2010 ) The Beez <the.beez.speaks@gmail.com> - 2017-04-14 06:11 -0700
Re: Russians about standard (survey taken in 2010 ) "Elizabeth D. Rather" <erather@forth.com> - 2017-04-11 13:12 -1000
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 16:38 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 16:46 -0700
Re: Russians about standard (survey taken in 2010 ) Paul Rubin <no.email@nospam.invalid> - 2017-04-11 17:17 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 17:45 -0700
Re: Russians about standard (survey taken in 2010 ) Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-04-12 04:27 -0500
Re: Russians about standard (survey taken in 2010 ) The Beez <the.beez.speaks@gmail.com> - 2017-04-14 06:13 -0700
Re: Russians about standard (survey taken in 2010 ) "Elizabeth D. Rather" <erather@forth.com> - 2017-04-14 10:23 -1000
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 20:17 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 17:35 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 20:43 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-11 17:47 -0700
Re: Russians about standard (survey taken in 2010 ) Julian Fondren <julian.fondren@gmail.com> - 2017-04-11 18:36 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 16:35 -0700
Re: Russians about standard (survey taken in 2010 ) Paul Rubin <no.email@nospam.invalid> - 2017-04-12 17:27 -0700
Re: Russians about standard (survey taken in 2010 ) albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-04-13 03:06 +0200
Re: Russians about standard (survey taken in 2010 ) Paul Rubin <no.email@nospam.invalid> - 2017-04-12 21:06 -0700
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-12 20:00 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-13 06:44 -0700
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-13 15:44 +0100
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-13 14:04 -0700
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-14 11:08 -0700
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-14 13:23 -0700
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-14 22:42 +0100
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-14 22:38 +0100
Re: Russians about standard (survey taken in 2010 ) albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-04-15 13:44 +0200
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-14 10:28 -0700
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-14 22:24 +0100
Re: Russians about standard (survey taken in 2010 ) albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-04-15 13:54 +0200
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-15 15:02 -0700
Re: Russians about standard (survey taken in 2010 ) Julian Fondren <julian.fondren@gmail.com> - 2017-04-15 15:40 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-16 10:28 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-17 22:12 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-18 23:37 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-19 15:31 -0400
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-15 20:43 -0400
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-15 18:14 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-15 21:49 -0400
Re: Russians about standard (survey taken in 2010 ) Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2017-04-16 20:20 +0100
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-16 20:41 -0700
Re: Russians about standard (survey taken in 2010 ) Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2017-04-17 09:03 +0100
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-16 20:49 -0700
Re: Russians about standard (survey taken in 2010 ) Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2017-04-17 09:25 +0100
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-17 16:32 +0100
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-17 22:19 -0400
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-18 13:51 +0100
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-19 02:15 -0400
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-19 10:54 -0700
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-19 11:03 -0700
Re: Russians about standard (survey taken in 2010 ) "Elizabeth D. Rather" <erather@forth.com> - 2017-04-17 12:37 -1000
Re: Russians about standard (survey taken in 2010 ) hughaguilar96@gmail.com - 2017-04-15 17:18 -0700
Re: Russians about standard (survey taken in 2010 ) Alex <alex@rivadpm.com> - 2017-04-16 09:07 +0100
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-11 23:26 -0400
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 16:47 -0700
Re: Russians about standard (survey taken in 2010 ) rickman <gnuarm@gmail.com> - 2017-04-12 19:53 -0400
Re: Russians about standard (survey taken in 2010 ) Julian Fondren <julian.fondren@gmail.com> - 2017-04-11 19:03 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 16:45 -0700
Re: Russians about standard (survey taken in 2010 ) JUERGEN <epldfpga@aol.com> - 2017-04-12 01:15 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 16:51 -0700
Re: Russians about standard (survey taken in 2010 ) lehs <skydda.barnen@gmail.com> - 2017-04-11 18:47 -0700
Re: Russians about standard (survey taken in 2010 ) Mark Wills <markwills1970@gmail.com> - 2017-04-12 01:19 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 16:57 -0700
Re: Russians about standard (survey taken in 2010 ) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-12 09:14 +0000
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-12 17:00 -0700
Re: Russians about standard (survey taken in 2010 ) "HAA" <someone@microsoft.com> - 2017-04-13 10:15 +1000
Re: Russians about standard (survey taken in 2010 ) "HAA" <someone@microsoft.com> - 2017-04-13 13:17 +1000
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-13 06:46 -0700
Re: Russians about standard (survey taken in 2010 ) Ilya Tarasov <ilya74.tarasov@gmail.com> - 2017-04-13 05:59 -0700
Re: Russians about standard (survey taken in 2010 ) "HAA" <someone@microsoft.com> - 2017-04-14 11:26 +1000
csiph-web