Re: If you got to choose the syntax, what would you do?
- From: Elizabeth D Rather <econklin@xxxxxxxxx>
- Date: Tue, 27 Jun 2006 11:15:15 -1000
Anton Ertl wrote:
Dennis Ruffer <druffer@xxxxxxxxxxxxx> writes:First, I've never seen much difference between OTA and OF. Both are tokenizing systems and both have the ability to execute the token streams directly, without translating them into some internal form.
That is contrary to everything I have heard earlier about OF. The
things that I have heard are that OF uses a tokenized form of source
code, not a tokenized form of compiled code.
Typical differences would be whether there are tokens for IF and ELSE
or just branches. Hmm, looking at Section 5.3.3.4 of IEEE 1275, it
indeed looks more like compiled code than source code to me.
The conceptual distinction is that OTA (and Java) tokens are instructions for a virtual machine; OF tokens represent source. The practical distinction is how they are treated: OF tokens are generated by a utility called a 'tokenizer' and are subjected to further processing by a specialized interpreter that handles them much like Forth's text interpreter processes text. The tokens for : and ; will start and finish compiling a definition, for example. In typical usage a packet of OF tokens is expected to contain mostly compilable program source, so the result of interpretation by the host is that a program has been compiled in the native instruction set of the receiving machine. OTA tokens, in contrast, are expected to represent an executable program without need for additional processing in the receiving node beyond the table lookup/indexing to get the executable local code for each token.
I realize the line is a bit blurry, but it's mainly a distinction of expectation.
Cheers,
Elizabeth
--
==================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
==================================================
.
- Follow-Ups:
- Fcode (was: If you got to choose the syntax, what would you do?)
- From: Anton Ertl
- Re: If you got to choose the syntax, what would you do?
- From: Dennis Ruffer
- Fcode (was: If you got to choose the syntax, what would you do?)
- References:
- If you got to choose the syntax, what would you do?
- From: Jeff Fox
- Re: If you got to choose the syntax, what would you do?
- From: Dennis Ruffer
- Re: If you got to choose the syntax, what would you do?
- From: Anton Ertl
- If you got to choose the syntax, what would you do?
- Prev by Date: Re: RfD: Separate FP Stack
- Next by Date: Example parallel program for twin counting
- Previous by thread: Re: If you got to choose the syntax, what would you do?
- Next by thread: Re: If you got to choose the syntax, what would you do?
- Index(es):
Relevant Pages
|