Talk About Network

Google


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: Visibility ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3791 of 4160
Post > Topic >>

Re: Visibility inside a colon definition

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 1, 2008 at 01:34 PM

On Mar 1, 1:52 pm, "Ed" <nos...@[EMAIL PROTECTED]
> wrote:
> If the header is compiled at the end of the definition then one will
> need another field - a cfa pointer - since the name length can no
> longer be used to calculate the xt.

> Apart from consuming an extra field, I'm not sure where the
> advantage is.  Perhaps someone can explain it.

Headers building down from the top and code building up from the
bottom makes it easier to strip out headers. Indeed, if the headers
from a wordlist are saved externally in a group in permanent storage,
like a serial Flash RAM, you can only have the words present in a
system at any one time that you need visible.

> That view of forth is itself a sandbox.

And then proceed to put Forth in a sandbox, as to what it can't do,
based on a notion of what people haven't done in it:

> Who writes a language in
> forth?  I don't.  Most don't.  Each has a view of what forth is or
> should be, but now they're all different.  With nothing holding
> it together perhaps what we're seeing is the natural dissolution,
> entropy.

I see lots of writing languages in Forth ... mostly, of course, they
are one off languages, or languages that are turning existing data
into an executable source, like Jenny Brien's JenX parser ...

.... and since they have different goals than the goal of a macro
defining language, they don't have to have semantics as free standing
as a properly sandboxed Macro language ...

.... but that's a big part of the appeal of Forth. It gives the tools
to write a computer language in which it is easy to solve the problem
at hand.
 




 1 Posts in Topic:
Re: Visibility inside a colon definition
Bruce McFarling <agila  2008-03-01 13:34:32 

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 Jul 18 22:36:31 CDT 2008.