Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion FORTH Trouble--Please Show Me

Received: by 10.180.105.41 with SMTP id gj9mr3822323wib.3.1350786426513;
        Sat, 20 Oct 2012 19:27:06 -0700 (PDT)
Path: q10ni65205608wif.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 20 Oct 2012 21:27:05 -0500
Date: Sat, 20 Oct 2012 16:27:04 -1000
From: "Elizabeth D. Rather" <erat...@forth.com>
Reply-To: erat...@forth.com
Organization: FORTH, Inc.
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
Newsgroups: comp.lang.forth
Subject: Re: FORTH Trouble--Please Show Me
References: <k5n9i1$b3a$1@dont-email.me> <2017da18-ac49-4b0e-bec1-5ceffff9435e@pz10g2000pbb.googlegroups.com> <k5sogo$78k$1@speranza.aioe.org> <7fa71346-ad58-4baf-bf96-a1e428b5bd58@p5g2000pbs.googlegroups.com> <k5vhel$b0k$1@speranza.aioe.org> <7xmwzgh9qw.fsf@ruckus.brouhaha.com>
In-Reply-To: <7xmwzgh9qw.fsf@ruckus.brouhaha.com>
Message-ID: <n9mdnRcVsJjkwB7NnZ2dnUVZ_vKdnZ2d@supernews.com>
Lines: 42
X-Trace: sv3-vKDMvVsABfXvn/5o+6QblbyACGP9c6U22jdF1hTVuET4IEnHjnvwLTwuXkViBk0WlVjx6FKhqaLTb33!TNkNDY8XSxrXhYoSuPXcnfjbUVewLvA3N66lEEXWKWo5u8j7ywYWbCB/2MjDBB7lZojPeD6EPNKU!rxukpHbSyA==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 3414
X-Original-Bytes: 3353
X-Received-Bytes: 3494
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 10/20/12 3:52 PM, Paul Rubin wrote:
> "Rod Pemberton" <do_not_h...@notemailnotz.cnm> writes:
>> Without data structures, a language is just a bunch of do-nothing
>> loops and if's.  You basically said you should learn Forth without learning
>> a critical component of it!
>
> Especially in the embedded regime, a heck of a lot of real-world
> programs don't have any complex algorithms or data structures.  There's
> just some variables and maybe a few arrays, plus the stacks for
> intermediate values and control, plus a bunch of special case tests and
> i/o for the application at hand.  Even numerical computation (numerical
> linear algebra or signal processing, say), which does use fancy
> algorithms, tends to still not use advanced data structures beyond the
> aforesaid variables and arrays.
>

This is true, but Forth's ability to define application-specific data 
types is still valuable in embedded systems. Examples I've seen include 
named "objects" that are actually data ports (or even selected bits on a 
data port) with implicit reads or writes when accessed; circular buffers 
for high-speed data acquisition, and a circular list of polynomial 
coefficients that returns the next one when referenced.

The ability to define custom data types easily is one of Forth's most 
powerful (and unique) features. But it's also something that's easy for 
beginners to learn, and I think it would be a massive disservice to 
advise someone to forgo learning it!

Cheers,
Elizabeth

-- 
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================