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


Groups > comp.lang.forth > #25617

Re: Forth for education

From "Rod Pemberton" <dont_use_email@nohavenotit.com>
Newsgroups comp.lang.forth
Subject Re: Forth for education
Date 2013-09-11 06:22 -0400
Organization Aioe.org NNTP Server
Message-ID <op.w28seze70e5s1z@-> (permalink)
References <fd0099d9-4240-4ac1-bba5-53f3fcba2d31@googlegroups.com> <op.w26slfzf0e5s1z@-> <UPadnc2MjZqrw7LPnZ2dnUVZ_uqdnZ2d@supernews.com> <0d34c96e-d56b-4d85-85f3-7379a3a1eb72@googlegroups.com>

Show all headers | View raw


On Wed, 11 Sep 2013 00:32:32 -0400, <hughaguilar96@yahoo.com> wrote:

> On Tuesday, September 10, 2013 11:00:21 AM UTC-7, Elizabeth D. Rather
> wrote:
>> On 9/9/13 10:30 PM, Rod Pemberton wrote:
>> > On Mon, 09 Sep 2013 08:16:53 -0400, <visualforth@rocketmail.com>
>> wrote:

>> >> I?m not a Forth evangelist, but find that using Forth to solve
>> >> certain specific problems helps make engineers and technicians
>> >> more adept.
>>
>> > I'm astounded!  ...  Like what?
>>
>> Like the ability to work interactively with hardware under development
>> without the necessity for complex and expensive emulators and debuggers.
>
> When Dirk said "specific problems," this was confusing. Forth's
> advantage over languages such as C is interactive development, which is
> a good thing no matter what problem it is that you are solving.
>

Most BASIC's were interpreted too.  It was nice that "extra" steps like
compilation and linking weren't required, but C can be used for interactive
development too.  Compiling and linking is quick for small files.  On this
machine, it's usually done before I can type another key after 'enter' on
this four year old machine.  The code size of many applications hasn't
increased as fast as processing speed.  Yes, it would've taken some time
on a 1Mhz 6502, three decades ago.  Anyway, once the program becomes large,
you just need to break the code into multiple small files, compile a small
part, relink all the parts.  It's simple, quick, albeit not as convenient.
I know I've mentioned this to both Hugh and Ms. Rather before...

As for the need for "complex and expensive emulatore and debuggers", all
you need for C is printf() to debug.  No joke.  I implemented about half
of a rudimentary x86 PC operating system this way quite rapidly.
Like Forth, C provides necessary low-level access to code an OS.
Forget about the debugger, the only time, one time, that I ever had to
use one was for a 1MLoc active of 5Mloc, multiple parallel process
application.  It was needed to follow data passed between separate
processes since there was no other way to do that.

>> > Forth is an unstructured programming language.  I.e., without
>> > conscious application of structured coding principles, of which
>> > many programmers are completely unaware, it results in "spaghetti
>> > code", just like the code most programmers created for BASIC.
>>
>> I'm completely baffled by this remark. Forth was developed about the
>> time Djkstra was writing papers about structured programming, and
>> adheres far more strictly to structured programming practice than most
>> languages.
>
> Forth doesn't have a GOTO, so you can't really write spaghetti code
> like in in the old line-number BASICs of the early 1980s.
>

It doesn't have a GOTO ?  It's true that it doesn't have an explicitly
named GOTO .  However, most interpreter based Forth's have BRANCH .
Just what do you think that does?  Many of them have AHEAD and AGAIN
too which are simple wrappers around BRANCH or it's equivalent if not
present.  And, the assembly language Forth's just use the host's
jump instruction.


Rod Pemberton

-- 
Fences are great.  I need a fence.  You can use them to post signs:
  "Blind people have the right to bear arms! Why wouldn't we?"
  "Sorry officer, I can't call off the dogs. Those aren't MY dogs..."
  "I believe in the cross. Cross-hairs on target... nailed to wood."
  "Would you like to see a free-range, pitbull hunt? I would! Run."
  "Laser dot. Scope. Win 308. C4 vertebra. Spoonfed for life."

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


Thread

Forth for education visualforth@rocketmail.com - 2013-09-09 05:16 -0700
  Re: Forth for education Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2013-09-09 14:59 +0200
  Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-10 04:30 -0400
    Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-10 08:00 -1000
      Re: Forth for education hughaguilar96@yahoo.com - 2013-09-10 21:32 -0700
        Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-11 06:22 -0400
          Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-11 11:52 +0100
            Re: Forth for education Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2013-09-11 14:40 +0200
            Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-12 08:10 -0400
              Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-12 14:20 +0100
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-14 22:47 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-14 17:47 -1000
                Re: Forth for education stephenXXX@mpeforth.com (Stephen Pelc) - 2013-09-15 17:17 +0000
                Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-15 18:52 +0100
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-15 08:11 -1000
                Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-15 19:49 +0100
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-15 09:11 -1000
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-15 20:38 -0700
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-17 17:21 -0400
                Re: Forth for education Spam@ControlQ.com - 2013-09-17 18:01 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-17 14:31 -1000
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-17 22:20 -0700
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-17 22:23 -0700
                Re: Forth for education Bernd Paysan <bernd.paysan@gmx.de> - 2013-09-18 21:56 +0200
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-18 02:57 -0500
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-18 09:41 -0400
                Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-18 15:35 +0100
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-18 21:02 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-18 15:42 -1000
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 15:48 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-20 11:26 -1000
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 20:35 -0400
                Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-19 13:45 +0100
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 16:18 -0400
                Re: Forth for education Alex McDonald <blog@rivadpm.com> - 2013-09-20 14:06 -0700
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-20 17:08 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-20 12:00 -1000
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 20:10 -0400
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-20 23:23 -0700
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-21 13:09 -0400
                Re: Forth for education Mark Wills <markrobertwills@yahoo.co.uk> - 2013-09-23 01:55 -0700
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-23 11:40 -0500
                Re: Forth for education albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-09-23 17:45 +0000
                Re: Forth for education anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-09-23 18:47 +0000
                Re: Forth for education albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-09-24 17:00 +0000
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-23 14:51 -0500
                Re: Forth for education albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-09-24 16:50 +0000
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-24 12:02 -0500
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-21 05:21 -0500
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-21 14:15 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-21 08:52 -1000
                Re: Forth for education Paul Rubin <no.email@nospam.invalid> - 2013-09-21 14:23 -0700
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-22 04:53 -0500
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-22 19:00 -0700
                Re: Forth for education Whammo <sidciavic@gmail.com> - 2013-09-22 21:22 -0700
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-23 08:13 -1000
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 04:25 -0400
                Re: Forth for education visualforth@rocketmail.com - 2013-09-24 21:38 -0700
                Re: Forth for education Rob Sciuk <rob@controlq.com> - 2013-09-23 12:07 -0400
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-23 11:50 -0500
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 03:58 -0400
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-26 09:32 -0400
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-27 19:35 -0700
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-28 01:08 -0400
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-28 01:09 -0400
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 03:21 -0400
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-25 04:00 -0500
                Re: Forth for education Brad Eckert <hwfwguy@gmail.com> - 2013-09-25 09:26 -0700
                Re: Forth for education visualforth@rocketmail.com - 2013-09-25 15:14 -0700
                Re: Forth for education Doug Hoffman <glidedog@gmail.com> - 2013-09-26 07:51 -0400
                Re: Forth for education visualforth@rocketmail.com - 2013-09-26 23:36 -0700
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-21 14:40 -0400
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-21 04:46 -0500
                Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-18 11:41 -0500
                Re: Forth for education Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2013-09-18 22:08 +0100
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-18 21:10 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-18 16:20 -1000
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 16:39 -0400
                Re: Forth for education Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2013-09-19 12:47 +0100
                Re: Forth for education Spam@ControlQ.com - 2013-09-19 11:30 -0400
                Re: Forth for education Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2013-09-19 16:48 +0100
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 16:51 -0400
                Re: Forth for education Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2013-09-20 23:17 +0100
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-21 15:19 -0400
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 03:31 -0400
                Re: Forth for education hughaguilar96@yahoo.com - 2013-09-18 21:12 -0700
                Re: Forth for education Mark Wills <markrobertwills@yahoo.co.uk> - 2013-09-19 01:02 -0700
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-21 15:26 -0400
                Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 17:09 -0400
                Re: Forth for education anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-09-19 11:28 +0000
                Re: Forth for education Paul Rubin <no.email@nospam.invalid> - 2013-09-18 18:30 -0700
                Re: Forth for education "WJ" <w_a_x_man@yahoo.com> - 2013-09-19 22:51 +0000
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-15 14:06 -0400
                Re: Forth for education Brad Eckert <hwfwguy@gmail.com> - 2013-09-15 19:56 -0700
              Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-12 08:03 -1000
          Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-11 08:59 -1000
            Re: Forth for education albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-09-12 10:48 +0000
              Re: Forth for education Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-09-12 08:17 -0500
        Re: Forth for education "WJ" <w_a_x_man@yahoo.com> - 2013-09-13 12:48 +0000
          Re: Forth for education Mark Wills <markrobertwills@yahoo.co.uk> - 2013-09-13 06:33 -0700
          Re: Forth for education m.a.m.hendrix@tue.nl - 2013-09-13 07:25 -0700
          Re: Forth for education visualforth@rocketmail.com - 2013-09-13 21:20 -0700
          Re: Forth for education "WJ" <w_a_x_man@yahoo.com> - 2013-09-15 09:04 +0000
            Re: Forth for education mhx@iae.nl - 2013-09-15 02:57 -0700
        Forth is not interactive "WJ" <w_a_x_man@yahoo.com> - 2013-09-20 03:32 +0000
          Re: Forth is not interactive rickman <gnuarm@gmail.com> - 2013-09-20 01:20 -0400
          Re: Forth is not interactive Whammo <sidciavic@gmail.com> - 2013-09-19 23:41 -0700
            Re: Forth is not interactive "Elizabeth D. Rather" <erather@forth.com> - 2013-09-19 21:45 -1000
              Re: Forth is not interactive "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 04:09 -0400
                Re: Forth is not interactive "Elizabeth D. Rather" <erather@forth.com> - 2013-09-19 22:21 -1000
                WJ, aka William James [was Re: Forth is not interactive] "Alex McDonald" <blog@rivadpm.com> - 2013-09-20 10:55 +0100
                Re: WJ, aka William James [was Re: Forth is not interactive] Mark Wills <markrobertwills@yahoo.co.uk> - 2013-09-20 06:17 -0700
                Re: WJ, aka William James [was Re: Forth is not interactive] rickman <gnuarm@gmail.com> - 2013-09-20 13:19 -0400
                Re: WJ, aka William James [was Re: Forth is not interactive] "Alex McDonald" <blog@rivadpm.com> - 2013-09-20 19:45 +0100
                Re: WJ, aka William James [was Re: Forth is not interactive] rickman <gnuarm@gmail.com> - 2013-09-20 14:53 -0400
              Re: Forth is not interactive Mark Wills <markrobertwills@yahoo.co.uk> - 2013-09-20 01:20 -0700
          Re: Forth is not interactive Howerd <howerdo@yahoo.co.uk> - 2013-09-20 02:35 -0700
            Re: Forth is not interactive Howerd <howerdo@yahoo.co.uk> - 2013-09-20 02:39 -0700
          Re: Forth is not interactive mhx@iae.nl - 2013-09-21 04:05 -0700
          Re: Forth is not interactive albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-09-21 12:43 +0000
    Re: Forth for education stephenXXX@mpeforth.com (Stephen Pelc) - 2013-09-12 14:04 +0000
    Re: Forth for education "Ed" <invalid@invalid.com> - 2013-09-15 18:00 +1000
  Re: Forth for education voidvolker@gmail.com - 2013-09-14 10:41 -0700
    Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-14 10:53 -1000
  Re: Forth for education "WJ" <w_a_x_man@yahoo.com> - 2013-09-19 22:33 +0000
    Re: Forth for education visualforth@rocketmail.com - 2013-09-19 17:17 -0700
      Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 17:44 -0400
        Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-20 23:58 +0100
          Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-20 19:49 -0400
            Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-21 20:33 +0100
              Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 03:49 -0400
                Re: Forth for education "Alex McDonald" <blog@rivadpm.com> - 2013-09-25 09:42 +0100
                Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-26 09:39 -0400
                Re: Forth for education Doug Hoffman <glidedog@gmail.com> - 2013-09-26 10:40 -0400
                Re: Forth for education "Elizabeth D. Rather" <erather@forth.com> - 2013-09-26 08:51 -1000
        Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-20 22:50 -0400
          Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-21 14:27 -0400
            Re: Forth for education rickman <gnuarm@gmail.com> - 2013-09-21 15:33 -0400
              Re: Forth for education "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-09-25 03:37 -0400
        Re: Forth for education Paul E Bennett <Paul_E.Bennett@topmail.co.uk> - 2013-09-21 10:02 +0100

csiph-web