z2

I agree. Take me to the spicy page.
It is currently Tue Apr 24, 2018 3:03 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Confusing words
PostPosted: Tue Aug 14, 2012 2:06 pm 
Offline
Ordinery
User avatar

Joined: Thu Aug 09, 2012 7:04 pm
Posts: 43
Location: VOILA
"After his initial success with an ALGOL based interpreter at MIT and Stanford, Moore
moved on to work with Burroughs equipment. This hardware was strongly oriented
around a stack. This influenced the further development of Forth. Implementations were
written in BALGOL, COBOL and SBOL (the Burroughs Systems Programming
Language). These provided manipulation words for the stack: DROP, DUP, SWAP, etc.
which are still found in modern Forth systems. The first true Forth system which
resembled what we now perceive as Forth was then created by Moore on an IBM 1130.
The word size of this machine limited the users to having names of not more than five
characters. Had it not been for this IBM limitation the name `Forth' would have been
`Fourth' - standing for Fourth Generation Language."

Could someone explain better to me what the boldened words/phrases mean in this context? Is it anything like:

Code:
IF [STATEMENT]
{
  IF [STATEMENT]
  {
  }
  ELSE IF [STATEMENT]
  {
       IF [STATEMENT]
       {
       }
  }
}


As in the stacking of statements. And if so I think they could've worded this better.


Top
 Profile  
 
 Post subject: Re: Confusing words
PostPosted: Wed Aug 15, 2012 3:53 am 
Offline
the Gargoyle.
User avatar

Joined: Tue Jul 25, 2006 10:02 am
Posts: 602
A stack is a programming concept. It is a set of data that grows and shrinks from use. It works like this:

* When you put something on the stack, it goes on the end. This is a PUSH.
* When you take something from the stack, it's taken from the end. This is a POP.

This is how a stack is intended to be used. Programs utilize a stack when they need to hold on to a variable temporarily (to be popped later) or when they need to send parameters to a subroutine.

Edit: I realize that these actions aren't always necessarily at the end, but I won't go into stack pointers here.


Top
 Profile  
 
 Post subject: Re: Confusing words
PostPosted: Wed Aug 15, 2012 3:55 am 
Offline
Ordinery
User avatar

Joined: Thu Aug 09, 2012 7:04 pm
Posts: 43
Location: VOILA
Oh thank you, all these tutorials I look at never have explanations for the words they think I should know.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group