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


Groups > comp.lang.forth > #33748 > unrolled thread

TclForth Notes: Always Compiling, Forth without STATE

Started byWolf Wejgaard <wolf@holonforth.com>
First post2014-10-08 11:40 +0200
Last post2014-12-17 05:42 -0800
Articles 5 on this page of 45 — 20 participants

Back to article view | Back to comp.lang.forth


Contents

  TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-10-08 11:40 +0200
    Re: TclForth Notes: Always Compiling, Forth without STATE albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-10-08 11:53 +0000
    Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-10-08 17:41 +0200
      Re: TclForth Notes: Always Compiling, Forth without STATE Joachim Merkel <jm@7fun.de> - 2014-11-30 22:20 +0100
        Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-12-04 16:54 +0100
          Re: TclForth Notes: Always Compiling, Forth without STATE m.a.m.hendrix@tue.nl - 2014-12-05 00:05 -0800
            Re: TclForth Notes: Always Compiling, Forth without STATE "Elizabeth D. Rather" <erather@forth.com> - 2014-12-04 22:47 -1000
              Re: TclForth Notes: Always Compiling, Forth without STATE Bernd Paysan <bernd.paysan@gmx.de> - 2014-12-05 19:04 +0100
                Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wejgaard@gmail.com> - 2015-01-21 02:23 -0800
            Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-12-06 08:53 +0100
              Re: TclForth Notes: Always Compiling, Forth without STATE mhx@iae.nl - 2014-12-06 00:21 -0800
          Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-05 03:16 -0600
            Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-12-06 09:31 +0100
              Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-06 04:16 -0600
              Re: TclForth Notes: Always Compiling, Forth without STATE albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-06 10:40 +0000
              Re: TclForth Notes: Always Compiling, Forth without STATE anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-12-06 12:42 +0000
                Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wejgaard@gmail.com> - 2015-01-21 02:26 -0800
              Re: TclForth Notes: Always Compiling, Forth without STATE Joachim Merkel <jm412@gmx.de> - 2014-12-06 18:11 +0100
                Re: TclForth Notes: Always Compiling, Forth without STATE Joachim Merkel <jm@g7up.de> - 2014-12-06 18:25 +0100
                Re: TclForth Notes: Always Compiling, Forth without STATE Joachim Merkel <jm@7up.de> - 2014-12-06 18:42 +0100
              Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-15 18:55 +0000
                Re: TclForth Notes: Always Compiling, Forth without STATE Coos Haak <chforth@hccnet.nl> - 2014-12-16 01:27 +0100
                  Re: TclForth Notes: Always Compiling, Forth without STATE Coos Haak <chforth@hccnet.nl> - 2014-12-16 01:50 +0100
                  Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-16 05:04 +0000
                    Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-16 04:08 -0600
                      Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-16 23:32 +0000
                        Re: TclForth Notes: Always Compiling, Forth without STATE "Elizabeth D. Rather" <erather@forth.com> - 2014-12-16 14:45 -1000
                          Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-17 06:01 +0000
                            Re: TclForth Notes: Always Compiling, Forth without STATE "Elizabeth D. Rather" <erather@forth.com> - 2014-12-16 22:21 -1000
                            Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-17 02:24 -0600
                              Re: TclForth Notes: Always Compiling, Forth without STATE "Elizabeth D. Rather" <erather@forth.com> - 2014-12-16 23:07 -1000
                                Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-17 08:21 -0600
                                  Re: TclForth Notes: Always Compiling, Forth without STATE "Elizabeth D. Rather" <erather@forth.com> - 2014-12-17 08:57 -1000
                              Re: TclForth Notes: Always Compiling, Forth without STATE JennyB <jennybrien@googlemail.com> - 2014-12-17 04:52 -0800
                            Re: TclForth Notes: Always Compiling, Forth without STATE anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-12-17 09:58 +0000
                              Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-18 04:11 +0000
                                Re: TclForth Notes: Always Compiling, Forth without STATE mix <mix@test.net> - 2014-12-18 04:16 +0000
                        Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-17 02:11 -0600
                    Re: TclForth Notes: Always Compiling, Forth without STATE stephen@mpeforth.com (Stephen Pelc) - 2014-12-17 13:17 +0000
                      Re: TclForth Notes: Always Compiling, Forth without STATE Mark Wills <markwills1970@gmail.com> - 2014-12-17 06:24 -0800
          Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-05 03:19 -0600
            Re: TclForth Notes: Always Compiling, Forth without STATE Wolf Wejgaard <wolf@holonforth.com> - 2014-12-06 09:31 +0100
              Re: TclForth Notes: Always Compiling, Forth without STATE Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-12-06 04:19 -0600
              Re: TclForth Notes: Always Compiling, Forth without STATE rickman <gnuarm@gmail.com> - 2014-12-08 01:14 -0500
    Re: TclForth Notes: Always Compiling, Forth without STATE the_gavino_himself <visphatesjava@gmail.com> - 2014-12-17 05:42 -0800

Page 3 of 3 — ← Prev page 1 2 [3]


#34787

FromAndrew Haley <andrew29@littlepinkcloud.invalid>
Date2014-12-05 03:19 -0600
Message-ID<1MCdnbMyp_oJ5RzJnZ2dnUVZ8jidnZ2d@supernews.com>
In reply to#34776
Wolf Wejgaard <wolf@holonforth.com> wrote:
> 
> What fascinates me: Forth is usually built on a very low or less low
> level language, mostly assembler or C. You have to create all the
> useful high-level stuff yourself, although there is by now a large
> body of solutions to draw on.
> 
> Now, if instead you base your Forth on a rich mature interpreter
> language like Tcl as your native language, you have all the features
> of classical Forth - and much more - available with a small grab
> down for whatever you need.  Moreover, with Tcl you also get an
> inner interpreter ready made for Forth.

Well, yes.  There's a choice between a neat little sports car and a
neat little sports car tied to the back of a large truck!

Andrew.

[toc] | [prev] | [next] | [standalone]


#34814

FromWolf Wejgaard <wolf@holonforth.com>
Date2014-12-06 09:31 +0100
Message-ID<m5uetc$vjl$2@speranza.aioe.org>
In reply to#34787
Am 05.12.14 10:19, schrieb Andrew Haley:

>
> Well, yes.  There's a choice between a neat little sports car and a
> neat little sports car tied to the back of a large truck!
>
> Andrew.
>

TclForth _is_ the truck (a fusion of Tcl and Forth). It has enough power 
to keep up with traffic, 4 wheel drive for all terrain, a good payload 
for work and a nice cabin/work place.

I wonder (not just today): Is Forth meant for roads or for race tracks?

Wolf

[toc] | [prev] | [next] | [standalone]


#34817

FromAndrew Haley <andrew29@littlepinkcloud.invalid>
Date2014-12-06 04:19 -0600
Message-ID<lsmdnWux86aoRR_JnZ2dnUVZ8oGdnZ2d@supernews.com>
In reply to#34814
Wolf Wejgaard <wolf@holonforth.com> wrote:
> Am 05.12.14 10:19, schrieb Andrew Haley:
> 
>> Well, yes.  There's a choice between a neat little sports car and a
>> neat little sports car tied to the back of a large truck!
> 
> TclForth _is_ the truck (a fusion of Tcl and Forth). It has enough power 
> to keep up with traffic, 4 wheel drive for all terrain, a good payload 
> for work and a nice cabin/work place.
> 
> I wonder (not just today): Is Forth meant for roads or for race tracks?

Well, sports cars are intended for roads, so the analogy fails there!
But Forth is the ultimate blue-collar language: it's all about getting
work done, with as little as possible in the way of that.  Small,
light, and agile.

Andrew.

[toc] | [prev] | [next] | [standalone]


#34841

Fromrickman <gnuarm@gmail.com>
Date2014-12-08 01:14 -0500
Message-ID<m63fkc$8bh$1@dont-email.me>
In reply to#34814
On 12/6/2014 3:31 AM, Wolf Wejgaard wrote:
> Am 05.12.14 10:19, schrieb Andrew Haley:
>
>>
>> Well, yes.  There's a choice between a neat little sports car and a
>> neat little sports car tied to the back of a large truck!
>>
>> Andrew.
>>
>
> TclForth _is_ the truck (a fusion of Tcl and Forth). It has enough power
> to keep up with traffic, 4 wheel drive for all terrain, a good payload
> for work and a nice cabin/work place.

Yeah, but does it ride well and get good fuel mileage?  More 
importantly, does it impress the chicks?


> I wonder (not just today): Is Forth meant for roads or for race tracks?

You mean on the information superhighway?  Where everyone is Ricky 
Bobby?  I guess Forth puts a cougar in your back seat!

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#34992

Fromthe_gavino_himself <visphatesjava@gmail.com>
Date2014-12-17 05:42 -0800
Message-ID<e1b90b29-3dfd-40f4-bab3-e08f2b0998bf@googlegroups.com>
In reply to#33748
On Wednesday, October 8, 2014 5:40:36 AM UTC-4, Wolf Wejgaard wrote:
> Classic (standard) Forth systems are remarkably consistent in using 
> techniques invented 40 years ago. For instance, the classic interpreter 
> still executes command lines word by word. I wonder why. Of course, it 
> works and everyone is used to it. But it does not have to be that way.
> 
> TclForth compiles the command line and then executes the compiled line. 
> If the command line is compiled it can handle immediate words. You can 
> enter lines like this
> 
>     1 begin dup 10 < if "*" else "&" then . 1+ dup 20 > until drop
> 
> 
> TclForth always compiles. Interpret is Compile and Execute.
> 
> If you need to calculate a value while compiling a definition, enclose 
> the calculation in square brackets as usual. The code inside the 
> brackets is compiled, then executed by ']' .
> 
> There are just two moments in the interpreter when code is executed: 
> end-of-command-line and ']'. Thus, STATE is obsolete, it is not tested.
> 
> And if there is no STATE to test, the immediate bit also makes little 
> sense. TclForth replaces immediate by Compiler.
> 
> Immediate words are now Compiler words that execute native Tcl code. - 
> Example:
> 
>     Compiler if
>         appendcode "if \[pop\]  \{\n"
> 
> Code and Colon words compile a call to their execution semantics. 
> Compiler words perform their compilation semantics.
> 
> --
> 
> I am still struggling with the text and welcome comments to clarify it.
> 
> Anyway: TclForth works and is available for inspection.
> 
> -- 
> Wolf Wejgaard
> http://holonforth.com

great name you have

[toc] | [prev] | [standalone]


Page 3 of 3 — ← Prev page 1 2 [3]

Back to top | Article view | comp.lang.forth


csiph-web