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


Groups > comp.lang.forth > #4754

Re: Interesting article

From Julian Fondren <ayrnieu@gmail.com>
Newsgroups comp.lang.forth
Subject Re: Interesting article
Date 2011-08-11 22:57 -0500
Organization A noiseless patient Spider
Message-ID <867h6j5lk3.fsf@gmail.com> (permalink)
References (2 earlier) <11457317-9702-4032-bda2-f82ed9a46c9e@b19g2000yqj.googlegroups.com> <2011Jul30.134101@mips.complang.tuwien.ac.at> <15addc33-9976-414e-9737-43d4b377b839@c8g2000prn.googlegroups.com> <4e38dc15$0$44209$4fafbaef@reader1.news.tin.it> <f48deb00-da59-4e93-bdaf-3b37aa9e2482@t30g2000prm.googlegroups.com>

Show all headers | View raw


Hugh Aguilar <hughaguilar96@yahoo.com> writes:

> On Aug 2, 11:26 pm, Peter Fälth <peter.fa...@tin.it> wrote:
>> My Forth does have separate memory areas for code and data (and headers)
>> It is also fully ANS compliant. The above definition of CREATE works
>> fine and produces identical code to the original CREATE. DOES> also
>> works perfectly with it! In a definition they are of course inlined!
>
> You completely missed my point! I am aware that ANS-Forth *allows* a
> Forth system to have separate code and data. ANS-Forth does not
> *require* code and data to be separate however. Because of this, the
> user must assume the worst case, which is that they are a jumbled
> mess. Even if you know that the implementation that you are currently
> using does have separate code and data, you can't take advantage of
> this knowledge. If you write a program that depends upon code and data
> being separate, your program will fail to work on an ANS-Forth
> compliant system in which code and data are a jumbled mess.

Just declare an environmental dependency.

> In Straight Forth, I will *require* code and data to be separate and
> the floating-point stack to be distinct. The user will not be required
> to assume the worst-case scenario in which code and data are jumbled
> together and floats are on the parameter stack. The user will not have
> to pretend that it is the year 1979 and his program is running on an
> 8080 --- he can assume a more modern system.

Here are two ways to create 'Straight Forth':

1. Create a list of environmental dependencies; name this list 'Straight
   Forth'; refer to this list in your Forth code.  Done.

   You might promote this list of enviranmental dependencies as
   reasonable and worthwhile.  You might also include a dependency on
   the (semantically) no-op word STRAIGHT-FORTH ,which your programs can
   begin with.  If you want to use particular Forth systems that however
   don't satisfy all of your dependencies, you can extend them to do so.
   .. which might involve some difficulty or some inefficiency, but
   nothing so difficult or so prone to inefficiency as -->

2. Throw ANS Forth completely away; invent your own Forth-like language;
   create your own implementation; write your own docs, tutorials, etc.

What is so hateful about #1?  What is so alluring about #2?

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


Thread

Interesting article Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2011-07-28 13:32 +0100
  Re: Interesting article anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2011-07-28 13:06 +0000
    Re: Interesting article Krishna Myneni <krishna.myneni@ccreweb.org> - 2011-07-29 14:49 -0700
      Re: Interesting article Elizabeth D Rather <erather@forth.com> - 2011-07-29 19:32 -0500
        Re: Interesting article Krishna Myneni <krishna.myneni@ccreweb.org> - 2011-08-02 16:27 -0700
      Re: Interesting article anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2011-07-30 11:41 +0000
        Re: Interesting article Krishna Myneni <krishna.myneni@ccreweb.org> - 2011-08-02 16:38 -0700
        Re: Interesting article Hugh Aguilar <hughaguilar96@yahoo.com> - 2011-08-02 17:47 -0700
          Re: Interesting article Peter Fälth <peter.falth@tin.it> - 2011-08-03 07:26 +0200
            Re: Interesting article Hugh Aguilar <hughaguilar96@yahoo.com> - 2011-08-11 16:19 -0700
              Re: Interesting article Julian Fondren <ayrnieu@gmail.com> - 2011-08-11 22:57 -0500
                Re: Interesting article Hugh Aguilar <hughaguilar96@yahoo.com> - 2011-08-12 16:40 -0700
                Re: Interesting article "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2011-08-14 09:59 -0400
                Re: Interesting article Julian Fondren <ayrnieu@gmail.com> - 2011-08-14 13:13 -0500
                Re: Interesting article Andrew Haley <andrew29@littlepinkcloud.invalid> - 2011-08-15 03:27 -0500
                Re: Interesting article anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2011-08-16 17:49 +0000
                Re: Interesting article Andrew Haley <andrew29@littlepinkcloud.invalid> - 2011-08-17 02:47 -0500
                Re: Interesting article "Elizabeth D. Rather" <erather@forth.com> - 2011-08-14 08:28 -1000
                Re: Interesting article Nomen Nescio <nobody@dizum.com> - 2011-08-14 20:41 +0200
                Re: Interesting article Mark Wills <markrobertwills@yahoo.co.uk> - 2011-08-14 13:01 -0700
                Re: Interesting article Richard Owlett <rowlett@pcnetinc.com> - 2011-08-14 14:14 -0500
                Re: Interesting article kenney@cix.compulink.co.uk - 2011-08-14 21:05 -0500
                Re: Interesting article BruceMcF <agila61@netscape.net> - 2011-08-14 22:23 -0700
                Re: Interesting article clvrmnky <spamtrap@clevermonkey.org> - 2011-10-23 02:13 +0000
              Re: Interesting article Mark Wills <markrobertwills@yahoo.co.uk> - 2011-08-13 12:29 -0700
                Re: Interesting article "Elizabeth D. Rather" <erather@forth.com> - 2011-08-13 10:42 -1000
                Re: Interesting article John Passaniti <john.passaniti@gmail.com> - 2011-08-13 13:50 -0700
                Re: Interesting article Andrew Haley <andrew29@littlepinkcloud.invalid> - 2011-08-14 03:14 -0500
                Re: Interesting article Mark Wills <markrobertwills@yahoo.co.uk> - 2011-08-14 02:12 -0700
                Re: Interesting article John Passaniti <john.passaniti@gmail.com> - 2011-08-14 14:31 -0700
                Re: Interesting article "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2011-08-14 09:58 -0400
    Re: Interesting article Hugh Aguilar <hughaguilar96@yahoo.com> - 2011-07-29 19:18 -0700
      Re: Interesting article Julian Fondren <ayrnieu@gmail.com> - 2011-07-30 04:13 -0500
      Re: Interesting article Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-07-31 10:07 +0000
        Re: Interesting article mhx@iae.nl (Marcel Hendrix) - 2011-07-31 11:31 +0200
          Re: Interesting article Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-07-31 22:24 +0000
  Re: Interesting article Andrew Haley <andrew29@littlepinkcloud.invalid> - 2011-07-28 10:02 -0500

csiph-web