6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 2:32 pm

All times are UTC




Post new topic Reply to topic  [ 144 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: What is Forth?
PostPosted: Sat May 13, 2017 9:21 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8503
Location: Midwestern USA
GARTHWILSON wrote:
I have a long list of beefs with C...

I don't think you'll get too many arguments about C's warts and such. The language's syntax seems confusing to non-C programmers, just as Forth's syntax does to non-Forth programmers. In fact, every programming language has a similar set of deficiencies, which is a natural consequence of the evolution of programming languages in general and the prejudices and opinions of the language's inventors.

In a sense, C is no worse or better than most other 3GL procedural languages. However, a well-written C program with good name choices for constants, variables and functions can be self-documenting, even with sparse commentary. This is also the case with the other 3GL procedural language in which I have professionally developed: timesharing BASIC (aka Business BASIC, which is only vaguely related to the BASICs commonly found on microcomputers).

Forth, to me, is unintelligible gibberish, not so much a computer language as an incoherent discourse on what is supposed to be going on inside a computer. I can no more relate what a Forth program says to what it does than I can relate a food recipe written in Mandarin Chinese to what the end dish will be. :shock: :x :?: :roll: :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sat May 13, 2017 10:14 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
It has been said that Forth has NO syntax of its own, so your source of confusion might be the result of searching for something that simply isn't there. I am determined to add Forth to my lexicon, but it won't be easy.

Mike B.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sat May 13, 2017 11:12 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8503
Location: Midwestern USA
barrym95838 wrote:
It has been said that Forth has NO syntax of its own, so your source of confusion might be the result of searching for something that simply isn't there.

...and that is probably a major reason why Forth has never had significant support in the computing universe.

Having professionally written software for many decades, I could never envision a language totally devoid of predictable syntax being a responsible choice for a business application that could be used for many years (I have clients running today on software I developed for them in the early 1990s). Just how does the next guy maintain your code when you move on to new pastures? Just exactly what is it that strange Forth word does? Good luck on that!

I know plenty of programmers who know C, FORTRAN, BASIC, etc., backwards and forwards. I know no one who knows anything about Forth, other than, in the words of my good friend and long-time programmer Dave, that it is a language that was "...cobbled together by a hippie while smoking a joint." (I don't actually know if Chuck Moore is/was a toker.)

Quote:
I am determined to add Forth to my lexicon, but it won't be easy.

For me, the question would be "Why?" :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 5:06 am 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
Forth reminds me very much of the Grateful Dead: to those who love it, it's a profound transformative experience catalogued and distributed by a community of passionate advocates which must be shared with the entire world, while to those who hate it it's a meandering tangle of aimless noodling maintained and pushed by a bunch of insistent hairy freaks.

But then I don't have enough direct experience with it to say for sure which camp I'd fall into ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 5:33 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
That's a very good analogy IMO, john. I can't believe that BDD pulled the "why" card on me, though, especially in a setting such as this ... if I wasn't such a profound nerd, I'd probably be insulted! :lol:

Mike B.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 5:41 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
I doubt that any of the people I've heard criticize Forth have been through Leo Brodie's book, "Starting Forth," let alone his follow-up book, "Thinking Forth."

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 5:47 am 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
I started Starting Forth at one point, I should really pick it up again.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 7:43 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8503
Location: Midwestern USA
commodorejohn wrote:
Forth reminds me very much of the Grateful Dead: to those who love it, it's a profound transformative experience catalogued and distributed by a community of passionate advocates which must be shared with the entire world, while to those who hate it it's a meandering tangle of aimless noodling maintained and pushed by a bunch of insistent hairy freaks.

But then I don't have enough direct experience with it to say for sure which camp I'd fall into ;)

Depends...is your hair real long? :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 7:48 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8503
Location: Midwestern USA
GARTHWILSON wrote:
I doubt that any of the people I've heard criticize Forth have been through Leo Brodie's book, "Starting Forth," let alone his follow-up book, "Thinking Forth."

I did read a good part of the Brodie's book. The further I got into "Starting Forth" the further I got into questioning my sanity. In fact, I think Brodie's book is what convinced me to return to reality and keep writing assembly language, where things make sense. :shock: :lol:

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 9:10 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
Charles H. Moore, inventor of Forth, in the hippie years:
Attachment:
41n94TXOZdL._SY346_.jpg
41n94TXOZdL._SY346_.jpg [ 13.59 KiB | Viewed 6814 times ]

Leo Brodie, author of "Starting Forth" and "Thinking Forth," said Charles Moore was a very gentle and sweet man.  His "joint" back then was the United States National Radio Astronomy Observatory (NRAO) which he developed Forth for, to control radio telescopes.  As I recall, they were only allowed one compile per day per programmer with the existing systems, and he wanted something where he could get immediate turnaround and interactiveness.  I really need to make a video to demonstrate that.  A co-worker who went to another company and spent $8000 on a C development system admitted it did not have nearly the interactiveness my partially homebrew '02 Forth had.

Charles Moore has designed many chips, including stack processors that were used in NASA missions, and gained several microprocessor-related patents. He wrote his own VLSI CAD, in Forth.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 3:23 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
BigDumbDinosaur wrote:
Depends...is your hair real long? :D

Not anymore :D These days it cycles between "normal" and "Bee Gees..."


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 4:07 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
GARTHWILSON wrote:
... he wanted something where he could get immediate turnaround and interactiveness. I really need to make a video to demonstrate that. A co-worker who went to another company and spent $8000 on a C development system admitted it did not have nearly the interactiveness my partially homebrew '02 Forth had ...

Have I posted a link to Sam's video here yet? He's very very good, and I hope that he makes more of them.

https://www.youtube.com/watch?v=mvrE2ZGe-rs

Mike B.


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 8:15 pm 
Offline

Joined: Thu Mar 03, 2011 5:56 pm
Posts: 284
barrym95838 wrote:
GARTHWILSON wrote:
... he wanted something where he could get immediate turnaround and interactiveness. I really need to make a video to demonstrate that. A co-worker who went to another company and spent $8000 on a C development system admitted it did not have nearly the interactiveness my partially homebrew '02 Forth had ...

Have I posted a link to Sam's video here yet? He's very very good, and I hope that he makes more of them.

https://www.youtube.com/watch?v=mvrE2ZGe-rs

Mike B.


That was very, very good - thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Sun May 14, 2017 11:40 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
GARTHWILSON wrote:
As I recall, they were only allowed one compile per day per programmer with the existing systems, and he wanted something where he could get immediate turnaround and interactiveness.

The story is in the first section of https://www.forth.com/resources/forth-p ... -language/

Further down, it talks about Elizabeth Rather with whom Chuck Moore later went on to form Forth, Inc.:

    Rather was appalled to find this critical system written in a unique language, undocumented and known to only one human.  Her instinctive reaction was to re-write the whole thing in FORTRAN to get it under control.  Alas, however, there was neither time nor budget for this, so she set out to learn and document the system as best she could.

    After about two months, Rather began to realize that something extraordinary was happening: despite the incredibly primitive nature of the on-line computers, despite the weirdness of the language, despite the lack of any local experts or resources, she could accomplish more in the few hours she spent on the Forth computers once a week than the entire rest of the week when she had virtually unlimited access to several large mainframes.

and further down, referring to after they had formed Forth, Inc.,

    The system was so advanced that astronomers from all over the world began asking for copies of the software.  Versions were installed at Steward Observatory, MIT, Imperial College (London), the Cerro Tololo (Chile) Inter-American Observatory, and the University of Utrecht (Netherlands). Its use spread rapidly, and in 1976 Forth was adopted as a standard language by the International Astronomical Union.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Forth?
PostPosted: Mon May 15, 2017 12:05 am 
Offline
User avatar

Joined: Mon Apr 23, 2012 12:28 am
Posts: 760
Location: Huntsville, AL
Thanks for the link. As always, a very good read. I would like to say that I'm working toward FORTH competency, but there's just not enough time available to me currently.

I have incorporated support for a FORTH-style VM in my latest implementation of my 65C02-compatible core, but I've not gone any further than testing that the instructions execute correctly. I had every intention of re-writing figFORTH (archived elsewhere on the forum) using the M65C02A core's VM instructions, but time just flies by and since I don't actively use FORTH, the motivation just isn't there for me at the moment.

_________________
Michael A.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 144 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: