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


Groups > comp.lang.forth > #51441

Re: Forth implementation in pure Forth?

From rickman <gnuarm@gmail.com>
Newsgroups comp.lang.forth
Subject Re: Forth implementation in pure Forth?
Date 2016-09-28 11:42 -0400
Organization A noiseless patient Spider
Message-ID <nsgobt$t98$1@dont-email.me> (permalink)
References <874b78c5-4f2d-4485-851d-2095e710f615@googlegroups.com> <20160927210406.432a22dc@_> <86mviscsgv.fsf@molnjunk.nocrew.org> <w4udneS248W_FnbKnZ2dnUU7-RHNnZ2d@supernews.com>

Show all headers | View raw


On 9/28/2016 5:19 AM, Elizabeth D. Rather wrote:
> On 9/27/16 10:57 PM, Lars Brinkhoff wrote:
>> Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam> writes:
>>> The best that most seem to be able to do is to write a Forth mostly in
>>> Forth, but not completely.  [...]  The threaded-code Forths are able
>>> to eliminate all but a handful of Forth words which must be coded in
>>> another language.
>>
>> What people usually mean that their Forth is witten in Forth, is that
>> your "another language" is also implemented in Forth.  I.e. the
>> primitives may be written in an assembler written in Forth.  Such an
>> assembler is more an extension of Forth than a separate language.  In
>> which case one could kinda say that the primitives also are written in
>> Forth.
>
> Only the OP can say whether that's what he meant. But, indeed, many
> Forths have been written that way. Chuck was writing Forth "in Forth" in
> this sense when I met him in 1970, and FORTH, Inc. has never had a Forth
> implemented any other way. But as some have pointed out, of course this
> chain has to have a beginning that involves not-Forth.

I believe the not-Forth beginning is only needed if you are running on 
your target.  If running on a host machine, the entire program can be 
written in Forth, no?  In fact, if appropriate words are defined, there 
is no need for an assembler written in Forth in the Forth written in 
Forth code.  All the target aware code can be on the host system only 
including the assembler.

This is really no different from any other language, is it?  To write a 
C compiler for a target, many would simply write that in C on a host 
system (or use one already written) after writing and assembler for the 
target in C on that same host system.  No need to include the assembler 
on the target unless that is what you want.

Hmmm... maybe that is a bad example as most (or all) C compilers produce 
assembly code that requires an assembler.  lol

-- 

Rick C

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


Thread

Forth implementation in pure Forth? Alex Dowad <alexinbeijing@gmail.com> - 2016-09-26 18:54 -0700
  Re: Forth implementation in pure Forth? Michael Barry <barrym95838@yahoo.com> - 2016-09-26 20:20 -0700
  Re: Forth implementation in pure Forth? Paul Rubin <no.email@nospam.invalid> - 2016-09-26 21:37 -0700
    Re: Forth implementation in pure Forth? Lars Brinkhoff <lars.spam@nocrew.org> - 2016-09-27 08:27 +0200
      Re: Forth implementation in pure Forth? Cecil Bayona <cbayona@cbayona.com> - 2016-09-27 02:22 -0500
      Re: Forth implementation in pure Forth? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-27 14:22 +0200
        Re: Forth implementation in pure Forth? Alex Dowad <alexinbeijing@gmail.com> - 2016-09-27 05:42 -0700
          Re: Forth implementation in pure Forth? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-27 15:23 +0200
            Re: Forth implementation in pure Forth? rickman <gnuarm@gmail.com> - 2016-09-28 11:13 -0400
          Re: Forth implementation in pure Forth? Alex <alex@rivadpm.com> - 2016-09-27 14:25 +0100
            Re: Forth implementation in pure Forth? Alex <alex@rivadpm.com> - 2016-09-27 14:27 +0100
      Re: Forth implementation in pure Forth? Alex Dowad <alexinbeijing@gmail.com> - 2016-09-27 05:40 -0700
        Re: Forth implementation in pure Forth? Lars Brinkhoff <lars.spam@nocrew.org> - 2016-09-27 15:47 +0200
        Re: Forth implementation in pure Forth? hughaguilar96@gmail.com - 2016-09-27 11:43 -0700
          Re: Forth implementation in pure Forth? Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-09-27 21:51 +0100
            Re: Forth implementation in pure Forth? Cecil Bayona <cbayona@cbayona.com> - 2016-09-27 16:04 -0500
    Re: Forth implementation in pure Forth? "Elizabeth D. Rather" <erather@forth.com> - 2016-09-26 21:10 -1000
  Re: Forth implementation in pure Forth? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-27 14:18 +0200
  Re: Forth implementation in pure Forth? stephen@mpeforth.com (Stephen Pelc) - 2016-09-27 12:12 +0000
  Re: Forth implementation in pure Forth? Rod Pemberton <NoHaveNotOne@zxdehrnyya.cam> - 2016-09-27 21:04 -0400
    Re: Forth implementation in pure Forth? Lars Brinkhoff <lars.spam@nocrew.org> - 2016-09-28 10:57 +0200
      Re: Forth implementation in pure Forth? "Elizabeth D. Rather" <erather@forth.com> - 2016-09-27 23:19 -1000
        Re: Forth implementation in pure Forth? rickman <gnuarm@gmail.com> - 2016-09-28 11:42 -0400
      Re: Forth implementation in pure Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-09-28 04:51 -0500
      Re: Forth implementation in pure Forth? Alex Dowad <alexinbeijing@gmail.com> - 2016-09-28 03:41 -0700
        Re: Forth implementation in pure Forth? Alex Dowad <alexinbeijing@gmail.com> - 2016-09-28 03:51 -0700
        Re: Forth implementation in pure Forth? Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-09-28 20:42 +0100
  Re: Forth implementation in pure Forth? Chris Curl <ccurl609@gmail.com> - 2016-09-27 20:40 -0700
  Re: Forth implementation in pure Forth? Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-09-28 07:59 +0100

csiph-web