Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #51502

Re: Gforth snapshot for Windows

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Gforth snapshot for Windows
Date 2016-10-01 07:08 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2016Oct1.090826@mips.complang.tuwien.ac.at> (permalink)
References <nskfdp$c7g$1@dont-email.me> <nsls3h$6ti$1@dont-email.me> <2016Sep30.182645@mips.complang.tuwien.ac.at> <nsmc4q$1jg$1@dont-email.me>

Show all headers | View raw


Gerry Jackson <gerry@jackson9000.fsnet.co.uk> writes:
>On 30/09/2016 17:26, Anton Ertl wrote:
>> Gerry Jackson <gerry@jackson9000.fsnet.co.uk> writes:
>>> 4) A locals test fails, it used to work:
>>>
>>>     DECIMAL
>>>     T{ : LT31 {: A B C D E F G H I J K L M N O P :}
>>>               P O N M L K J I H G F E D C B A ; -> }T
>>>     16 BASE !
>>>     T{ 0 1 2 3 4 5 6 7 8 9 A B C D E F LT31
>>>        -> F E D C B A 9 8 7 6 5 4 3 2 1 0 }T
>>
>> Gforth now contains a word B.  Maybe we should warn about using
>> numbers that don't start with 0-9 or a prefix, too.
>>
>> So the fix for your test is:
>>
>>      T{ 0 1 2 3 4 5 6 7 8 9 $A $B $C $D $E $F LT31
>>         -> $F $E $D $C $B $A 9 8 7 6 5 4 3 2 1 0 }T
>>
>> or (Forth-94):
>>
>>      T{ 0 1 2 3 4 5 6 7 8 9 0A 0B 0C 0D 0E 0F LT31
>>         -> 0F 0E 0D 0C 0B 0A 9 8 7 6 5 4 3 2 1 0 }T
>
>Thanks I'll make that change, but it might irritate people that haven't 
>implemented prefixes

The second variant won't.

>Does executing an xt of a word with undefined interpretation semantics 
>have any benefit anyway. I suppose some control words could be made 
>useful but others like ['] just seem to compile something which is unusable.

Yes, people have ticked compile-only words, and expected to get an xt
that performs the compilation semantics of the word when EXECUTEd.
And that also works that way in most other Forth systems.

Also, the undefined interpretation semantics did not buy any benefits
and introduced complications in various places, so we decided to get
rid of that part, and define the interpretation semantics of
compile-only words to be the same as the compilation semantics, and we
could simplify the implementation a bit.

Also, as I wrote <2015Dec5.165730@mips.complang.tuwien.ac.at>:

|More importantly, the deviation from the conventional
|single-xt-with-immediate-flag model in the standard is spawning
|abominations like VFX's "COMPILE," (which is not (but it should be)
|equivalent to ": compile, postpone literal postpone execute ;") and
|after two decades we are diverging rather than converging in that
|area, so my thinking is that maybe we should converge on that old
|model and replace everything that does not fit it (i.e., what people
|try to do with STATE-smart words in that model) with better
|alternatives.

>That was just an aside not an error report. I was looking for a word 
>with undefined interpretation semantics where GForth returns 0.

Gforth now returns an xt from NAME>INTERPRET for every word.  That's
one of the simplifications we got from defining the interpretation
semantics.

> But personally I'd rather GForth didn't display errors 
>and warnings like that but just used the same as the main text as 
>selected by the user.

In addition to the colour choices suggested by Bernd Paysan, you can
also do

default-color is err-color
default-color is warn-color
default-color is info-color

- 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 2016: http://www.euroforth.org/ef16/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-09-30 01:33 +0000
  Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-09-30 15:16 +0100
    Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-09-30 16:26 +0000
      Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-09-30 19:50 +0100
        Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-09-30 20:34 +0000
          Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-02 11:14 +0100
            Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-02 16:29 +0000
              Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-02 22:47 +0000
          Re: Gforth snapshot for Windows jjmail9@gmail.com - 2016-10-19 04:45 -0700
        Re: Gforth snapshot for Windows Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam> - 2016-09-30 17:28 -0400
          Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-09-30 22:14 +0000
          Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-01 19:42 +0100
        Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-01 07:08 +0000
          Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-02 11:23 +0100
            Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-02 16:14 +0000
              Re: Gforth snapshot for Windows Cecil Bayona <cbayona@cbayona.com> - 2016-10-02 12:14 -0500
              Re: Gforth snapshot for Windows albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-02 19:45 +0200
                Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-03 07:43 +0000
                Re: Gforth snapshot for Windows alex <alex@rivadpm.com> - 2016-10-03 12:51 +0100
        Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-02 12:07 +0100
          Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-02 22:39 +0000
      Re: Gforth snapshot for Windows Paul Rubin <no.email@nospam.invalid> - 2016-09-30 14:36 -0700
        Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-01 07:46 +0000
          Re: Gforth snapshot for Windows Paul Rubin <no.email@nospam.invalid> - 2016-10-01 12:12 -0700
          Re: Gforth snapshot for Windows lawrencedo99@gmail.com - 2016-10-02 19:51 -0700
      Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-09-30 22:09 +0000
        Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-09-30 13:25 -1000
          Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-02 00:10 +0000
            Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-01 15:31 -1000
              Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-02 23:00 +0000
                Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-02 21:32 -1000
                Re: Gforth snapshot for Windows Cecil Bayona <cbayona@cbayona.com> - 2016-10-03 03:46 -0500
                Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-02 23:25 -1000
                Re: Gforth snapshot for Windows albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-03 12:57 +0200
                Re: Gforth snapshot for Windows lawrencedo99@gmail.com - 2016-10-03 04:31 -0700
                Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-04 09:18 +0000
                Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-04 21:57 +0000
                Re: Gforth snapshot for Windows jjmail9@gmail.com - 2016-10-19 06:47 -0700
                Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-21 20:22 +0000
                Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-04 12:40 -1000
                Re: Gforth snapshot for Windows jjmail9@gmail.com - 2016-10-19 08:37 -0700
                Re: Gforth snapshot for Windows Cecil Bayona <cbayona@cbayona.com> - 2016-10-19 11:29 -0500
                Re: Gforth snapshot for Windows jjmail9@gmail.com - 2016-10-19 12:03 -0700
                Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-20 12:15 +0000
                Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-20 07:36 -1000
                Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-21 07:15 +0000
                Re: Gforth snapshot for Windows "Elizabeth D. Rather" <erather@forth.com> - 2016-10-21 22:12 -1000
                Re: Gforth snapshot for Windows albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-10-22 12:12 +0200
                Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-22 13:52 +0000
                Re: Gforth snapshot for Windows jjmail9@gmail.com - 2016-10-19 05:57 -0700
  Re: Gforth snapshot for Windows Jason Damisch <jasondamisch@yahoo.com> - 2016-09-30 10:17 -0700
  Re: Gforth snapshot for Windows Philip Smith <philipkingsmith@gmail.com> - 2016-09-30 11:45 -0700
  Re: Gforth snapshot for Windows beeflo <beeflobill@gmail.com> - 2016-10-11 10:51 -0700
    Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-11 20:44 +0000
      Re: Gforth snapshot for Windows Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-10-12 01:02 +0100
        Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-13 00:26 +0000
          Re: Gforth snapshot for Windows Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-10-13 08:48 +0100
            Re: Gforth snapshot for Windows lawrencedo99@gmail.com - 2016-10-13 01:09 -0700
              Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-14 23:39 +0000
          Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-14 18:05 +0100
            Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-14 23:29 +0000
              Re: Gforth snapshot for Windows anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-10-15 16:26 +0000
              Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-17 00:52 +0000
                Re: Gforth snapshot for Windows Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-10-19 10:50 +0100
      Re: Gforth snapshot for Windows Spiros Lakkos <slakkos@hotmail.com> - 2016-10-12 06:50 +0300
    Re: Gforth snapshot for Windows lawrencedo99@gmail.com - 2016-10-11 22:42 -0700
      Re: Gforth snapshot for Windows beeflo <beeflobill@gmail.com> - 2016-10-12 09:41 -0700
        Re: Gforth snapshot for Windows Bernd Paysan <bernd@net2o.de> - 2016-10-12 23:46 +0000

csiph-web