Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: The strengt...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 71 Topic 3977 of 4053
Post > Topic >>

Re: The strengths of FORTH

by Jonah Thomas <jethomas5@[EMAIL PROTECTED] > Mar 27, 2008 at 06:47 PM

"Robert Miller" <rsmiller@[EMAIL PROTECTED]
> wrote:

> I have followed with considerable interest, the thread 'The Promise of
> FORTH' started by Johan Thomas.  Much has been made of FORTH's
> perceived shortcomings but as these are mostly inherent, there is
> little likelihood that any significant changes can be made.  

Forth is extensible. You can do anything you want with it, if you want
to bother to do the programming. But you can't force other Forth
programmers to do it your way, unless you're the boss. So if you want
objects, Forth has lots of object systems. If you want locals, they're
there. If you want pretty-printed source code, with careful indenting,
you can write that way or you can write your text editor in Forth to do
it for you, or you can write a Forth routine to do it to your source
code after it's written. You can have anything you want. But after you
make it work your way, it isn't exactly Forth. Because you haven't
forced everybody else to do it too.

> That said, I think most here 
> would like to see a thriving Forth community.  In order for that to
> happen, the first thing is to get the existence of the language into
> the consciousness of the general programming community.  John Doty's
> complaint that there is no body of shared Forth code reflects that. 
> The second thing is to identify those strengths of Forth that would
> make it attractive to potential users and somehow getting the word
> out.

Yes!

> From my point of view, the attractive features of FORTH are; first
> that it is an incremental compiler, second that it incorporates an
> assembler, and third it is extensible.   

There are lots of incremental compilers now, right? That's a strength
for Forth, but not much of a selling point just now. The easy extensions
are good but that's also possible for every other acceptable language
now. 

The assembler is good, and writing *very short* stretches in assembly --
which you can test easily and quickly -- is a big plus. And you can put
those short stretches together into bigger assembly routines that you
can test easily and quickly. You can keep doing that until your code is
as fast as you need it. BUT -- the conventional wisdom is that
assemblers are no good. Better to use C. So it's probably good to have
that as an option. If you could switch into C to make named Forth
primitives, that might be almost as good as assembler. Some ways better
because easily incrementally dropping into C is something people can
understand when they're prejudiced against assembler.


> Although extensibility is not a big issue for my application, it is a 
> powerful tool for anyone who needs it.  I have done quite a bit of 
> (admittedly boringly linear) work using C/C++ and I haven't
> encountered anything like DOES>.  If you want OOP, it would seem that
> you could add it. (How about an OOP word set in the next standard?) If
> you haven't time to add badly needed OOP to your FORTH , use C++ or
> some other language.

Forth has an embarrassment of incompatible OO extensions. It wouldn't
bother me to make them all standard.

> As to the perceived disadvantages of FORTH, the readability and 
> maintainability issue can be dealt with by maintaining a bit of
> discipline in commenting.  

I think this is a red herring. Forth is quite readable, but some people
don't know Forth and so they can't read it, while others have esthetic
objections to some Forth writing styles. There isn't much we can do
about writing styles except agree to disagree. If somebody presents code
you can use and you don't like their style, then don't use their code.
Settled. And people who don't know the language and criticise its
readability should be, ah, encouraged to learn the language.

> As to getting FORTH known to the wider community, I am at somewhat of
> a loss.  Certainly encouraging code sharing would be helpful - if the
> shared code was well done and well documented.  Maybe FORTH Inc.
> should be providing T-shirts displaying their Logo with each SwiftX or
> SwiftForth license or with each addition to a shared library - or at
> least offering them for sale.  I go to a gym across the street from
> QNX and a lot of the people in the gym are wearing QNX Ts.  I wonder
> how many of these guys have ever even heard of Forth.  Every little
> helps.

A great application would be good. Here's a somewhat-vague idea I had a
few years ago. Forth ought to have some special niche on the internet.
But for things like the WWW we have to play catch-up. There's a gigantic
network of encrusted standards that aren't quite followed, and to get
anywhere we need a very good understanding of the complex common
practice. Forth does better where we can exploit simplicity better than
the other guy. We have the same problem to a lesser degree with TCP/IP.
Complex standards that are not followed very well, and we've played
catch-up. But with TCP or UDP or whatever we made for ourselves at that
level, we can invent our own standards for whatever we want to do.
There's no necessity to use HTTP etc unless they fit our needs. There
are many thousands of protocols that are officially in use, and we could
have our own -- provided there's something we want to do that deserves
its own simple protocol in place of HTTP etc. We could for example have
a collection of byte-code Forths for special purposes. When you want to
communicate with somebody for the particular special purpose, download
the Forth that does it. A method to easily and quickly build
special-purpose byte-code Forths might be useful for that. 

We can do practically anything over the internet, provided it's worth
the trouble to do it simply in Forth instead of fitting it into one of
the existing complicated protocols. Get the application running and
maybe final users can just download it and see it work. The tools to
create all that aren't very hard. All that's needed is applications that
are worth doing.
 
> In any event, it would be most helpful if c.l.f participants were a
> bit less negative.

There are always ants at a picnic.




 71 Posts in Topic:
The strengths of FORTH
"Robert Miller"  2008-03-27 15:01:14 
Re: The strengths of FORTH
Jonah Thomas <jethomas  2008-03-27 18:47:44 
Re: The strengths of FORTH
Bruce McFarling <agila  2008-03-27 18:46:42 
Re: The strengths of FORTH
Bruce McFarling <agila  2008-03-28 09:30:44 
Re: The strengths of FORTH
mhx@[EMAIL PROTECTED] (M  2008-03-28 19:21:30 
Re: The strengths of FORTH
Bruce McFarling <agila  2008-03-28 12:06:51 
Re: The strengths of FORTH
"Paul E. Bennett&quo  2008-03-27 23:21:10 
Re: The strengths of FORTH
Brad Eckert <nospaambr  2008-03-27 19:03:48 
Re: The strengths of FORTH
Jonah Thomas <jethomas  2008-03-27 22:15:25 
Re: The strengths of FORTH
Benny Andersen <a.mail  2008-03-28 09:59:05 
Re: The strengths of FORTH
"dkelvey@[EMAIL PROT  2008-03-28 07:50:09 
Re: The strengths of FORTH
John Doty <jpd@[EMAIL   2008-03-28 09:25:07 
Type checking (was: The strengths of FORTH)
anton@[EMAIL PROTECTED]   2008-03-28 20:33:46 
Re: The strengths of FORTH
Bruce McFarling <agila  2008-03-28 09:42:22 
Re: The strengths of FORTH
Reinhold Straub <demar  2008-03-29 04:48:43 
Re: The strengths of FORTH
William James <w_a_x_m  2008-03-29 12:00:12 
Re: The strengths of FORTH
Reinhold Straub <demar  2008-03-30 05:59:03 
Re: Type checking (was: The strengths of FORTH)
m_l_g3@[EMAIL PROTECTED]   2008-04-02 01:04:50 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-07 09:46:32 
Re: Type checking
"David N. Williams&q  2008-04-07 12:20:20 
Re: Type checking
"Stephan Becher"  2008-04-07 17:30:08 
Re: Type checking (was: The strengths of FORTH)
Trey Boudreau <trey@[E  2008-04-07 10:07:45 
Re: Type checking (was: The strengths of FORTH)
Bernd Paysan <bernd.pa  2008-04-07 18:32:48 
Re: Type checking (was: The strengths of FORTH)
Trey Boudreau <trey@[E  2008-04-07 16:46:00 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-08 08:01:23 
Re: Type checking (was: The strengths of FORTH)
Bernd Paysan <bernd.pa  2008-04-08 10:16:55 
Re: Type checking (was: The strengths of FORTH)
kenney@[EMAIL PROTECTED]   2008-04-09 06:17:26 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-09 07:39:32 
Re: Type checking (was: The strengths of FORTH)
"Mark W. Humphries&q  2008-04-09 09:08:39 
Re: Type checking (was: The strengths of FORTH)
Bernd Paysan <bernd.pa  2008-04-09 18:26:48 
Re: Type checking (was: The strengths of FORTH)
Doug Hoffman <no.spam&  2008-04-09 17:07:45 
Re: Type checking (was: The strengths of FORTH)
Albert van der Horst <  2008-04-10 03:49:42 
Re: Type checking (was: The strengths of FORTH)
Doug Hoffman <no.spam&  2008-04-10 06:01:45 
Re: Type checking (was: The strengths of FORTH)
Albert van der Horst <  2008-04-10 21:47:04 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-09 09:19:33 
Re: Type checking (was: The strengths of FORTH)
John Doty <jpd@[EMAIL   2008-05-01 21:35:15 
Re: Type checking (was: The strengths of FORTH)
m_l_g3 <m_l_g3@[EMAIL   2008-04-17 17:27:21 
Re: Type checking (was: The strengths of FORTH)
anton@[EMAIL PROTECTED]   2008-04-08 14:14:30 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-08 07:18:34 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-09 08:49:44 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-08 07:29:56 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-09 07:37:06 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-10 08:04:57 
Re: Type checking (was: The strengths of FORTH)
m_l_g3 <m_l_g3@[EMAIL   2008-04-09 17:48:14 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-10 07:54:14 
Re: Type checking (was: The strengths of FORTH)
Albert van der Horst <  2008-04-10 21:27:21 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-10 03:30:01 
Re: Type checking (was: The strengths of FORTH)
m_l_g3 <m_l_g3@[EMAIL   2008-04-10 04:16:59 
Re: Type checking (was: The strengths of FORTH)
"Stephan Becher"  2008-04-10 18:53:37 
Re: Type checking (was: The strengths of FORTH)
m_l_g3 <m_l_g3@[EMAIL   2008-04-10 04:48:57 
Re: Type checking (was: The strengths of FORTH)
m_l_g3 <m_l_g3@[EMAIL   2008-04-11 05:02:01 
Re: Type checking (was: The strengths of FORTH)
Bruce McFarling <agila  2008-04-11 08:37:46 
Re: The strengths of FORTH
Mikael Nordman <oh2aun  2008-03-28 19:41:15 
Re: The strengths of FORTH
Albert van der Horst <  2008-03-28 22:26:26 
Re: The strengths of FORTH
"Robert Miller"  2008-03-29 00:19:04 
Re: The strengths of FORTH
Mikael Nordman <oh2aun  2008-03-29 09:56:25 
Re: The strengths of FORTH
Aleksej Saushev <asau@  2008-04-01 23:35:18 
Re: The strengths of FORTH
Mikael Nordman <oh2aun  2008-04-02 18:39:30 
Re: The strengths of FORTH
Aleksej Saushev <asau@  2008-04-06 18:48:28 
Re: The strengths of FORTH
Brad Eckert <nospaambr  2008-04-04 09:29:12 
Re: The strengths of FORTH / OT: SMT soldering
"Robert Miller"  2008-04-04 15:28:47 
Re: The strengths of FORTH / OT: SMT soldering
John Doty <jpd@[EMAIL   2008-04-04 13:51:24 
Re: The strengths of FORTH / OT: SMT soldering
Brad Eckert <nospaambr  2008-04-04 16:46:08 
Re: The strengths of FORTH
William James <w_a_x_m  2008-03-29 11:42:17 
Re: The strengths of FORTH
"Robert Miller"  2008-03-29 17:56:46 
Re: The strengths of FORTH
Andrew Haley <andrew29  2008-03-30 10:03:42 
Re: The strengths of FORTH
Albert van der Horst <  2008-03-30 15:10:11 
Re: The strengths of FORTH
Guy Macon <http://www.  2008-03-30 09:54:09 
Re: The strengths of FORTH
Jonah Thomas <jethomas  2008-03-30 09:59:30 
Re: The strengths of FORTH / OT: SMT soldering
spam@[EMAIL PROTECTED]   2008-04-05 13:49:18 
Re: Type checking (was: The strengths of FORTH)
Jonah Thomas <jethomas  2008-04-08 07:22:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 6:27:04 CDT 2008.