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: DISFAVORED ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 45 of 89 Topic 3800 of 4284
Post > Topic >>

Re: DISFAVORED Was: name for 3 PICK finally?

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 7, 2008 at 04:06 PM

On Mar 7, 6:15 pm, Jonah Thomas <jethom...@[EMAIL PROTECTED]
> wrote:
> I don't want to argue that it's im****tant. But it was an obvious example
> of someyhing you lose if you give up POSTPONE [COMPILE] etc. If you have
> to parse a string and do dictionary lookups every time you use the
> macro, that's less efficient than doing all that once and then just
> laying down the code at the macro's runtime. Less efficient. And if for
> some reason you want to compile code when the dictionary is unavailable,
> POSTPONE lets you do it and macros don't let you. I don't yet see a
> third disadvantage.

I don't follow the distinction here between "macro" on one hand and
"POSTPONE" on the other hand ... "POSTPONE lets you / macros don't let
you".

The thing that POSTPONE sup****ts automatically that an early bound
macro would have to go to more trouble to sup****t is state
dependence ... making a decision of what to compile based on a test at
the time of compilation.

But clearly, if the macro building word is early-bound, it doesn't
require string parsing and dictionary look-ups when it executes. So it
seems like you are making late-bound macros into the only kind of
macros that exist.

I normally write compiler macros using POSTPONE, and that's the only
thing I use POSTPONE for. If an early-bound macro compiler was built
into the implementation, I could relegate POSTPONE to a Forth-94
****tability harness.

After all, as already described, [:] ... [;] is early bound, not late
bound:

[:] >>R ( executes: x -- x R: x ) DUP >R [;]

is the equivalent of:

: >>R ( executes: x -- x R: x ) POSTPONE DUP POSTPONE >R ; IMMEDIATE

not the equivalent of:

: >>R ( executes: x -- x R: x ) S" DUP >R" EVALUATE ; IMMEDIATE

.... and if I had ``[:] ... [;]'' built in, I wouldn't need POSTPONE.

It seems to me that what you are describing above is not "compiling
without using the dictionary" but rather factoring out the use of the
dictionary from the process of compiling. The dictionary is required
for the process, but not for each step in the process.

My initial reaction was, "but, what are you going to do, refer to the
words by remembering their index entry in a vector", but if its
genetic programming with algorithmic selection of the operation based
on tabulated results from a previous iteration, referring to words
based on an index value makes sense.
 




 89 Posts in Topic:
name for 3 PICK finally?
m_l_g3@[EMAIL PROTECTED]   2008-03-05 11:11:00 
Re: name for 3 PICK finally?
Elizabeth D Rather <er  2008-03-05 10:23:12 
Re: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-05 12:45:31 
Re: name for 3 PICK finally?
m_l_g3@[EMAIL PROTECTED]   2008-03-06 04:08:32 
Re: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-06 12:51:52 
Re: name for 3 PICK finally?
Jerry Avins <jya@[EMAI  2008-03-06 10:12:36 
Re: name for 3 PICK finally?
Coos Haak <chforth@[EM  2008-03-06 21:07:02 
Re: name for 3 PICK finally?
mhx@[EMAIL PROTECTED] (M  2008-03-06 21:17:29 
Re: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-06 13:59:21 
Re: name for 3 PICK finally?
Jerry Avins <jya@[EMAI  2008-03-06 15:28:37 
Re: name for 3 PICK finally?
Albert van der Horst <  2008-03-06 15:39:29 
Re: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-06 07:01:21 
Re: name for 3 PICK finally?
mhx@[EMAIL PROTECTED] (M  2008-03-06 21:04:51 
Re: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-06 14:19:30 
Re: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-06 08:22:06 
Re: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-06 17:04:23 
Re: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-07 11:09:43 
Re: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 06:43:26 
Re: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-07 12:19:56 
Disfavoured words (Re: name for 3 PICK finally?)
anton@[EMAIL PROTECTED]   2008-03-08 18:51:57 
DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 09:13:33 
Re: DISFAVORED Was: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-07 14:26:52 
Re: DISFAVORED Was: name for 3 PICK finally?
pablo reda <pabloreda@  2008-03-07 06:33:40 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 10:02:23 
Re: DISFAVORED Was: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-10 16:15:16 
Re: DISFAVORED Was: name for 3 PICK finally?
Elizabeth D Rather <er  2008-03-10 07:58:59 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 07:46:25 
Re: DISFAVORED Was: name for 3 PICK finally?
Andrew Haley <andrew29  2008-03-10 16:15:52 
Re: DISFAVORED Was: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-07 08:10:40 
Re: DISFAVORED Was: name for 3 PICK finally?
Bill <bill@[EMAIL PROT  2008-03-07 13:22:10 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 08:26:20 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 11:51:07 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-07 09:08:12 
Re: DISFAVORED Was: name for 3 PICK finally?
Elizabeth D Rather <er  2008-03-07 07:56:23 
Re: DISFAVORED Was: name for 3 PICK finally?
John Doty <jpd@[EMAIL   2008-03-07 15:12:12 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-07 09:11:02 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 09:37:07 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 13:06:51 
Re: DISFAVORED Was: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-07 14:09:52 
Re: DISFAVORED Was: name for 3 PICK finally?
John Doty <jpd@[EMAIL   2008-03-07 15:14:31 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-07 14:51:48 
Re: DISFAVORED Was: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-07 15:08:55 
Re: DISFAVORED Was: name for 3 PICK finally?
John Doty <jpd@[EMAIL   2008-03-07 16:28:56 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 18:15:57 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-07 16:06:19 
Re: DISFAVORED Was: name for 3 PICK finally?
Alex McDonald <blog@[E  2008-03-07 16:06:16 
Re: DISFAVORED Was: name for 3 PICK finally?
John Doty <jpd@[EMAIL   2008-03-07 17:23:37 
Re: DISFAVORED Was: name for 3 PICK finally?
Josh Grams <josh@[EMAI  2008-03-07 16:54:26 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 20:54:07 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-07 21:01:01 
Re: DISFAVORED Was: name for 3 PICK finally?
anton@[EMAIL PROTECTED]   2008-03-08 18:40:59 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 19:34:51 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 22:02:11 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 22:12:15 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-07 22:24:45 
Re: Late vs. early binding Was: DISFAVORED Was: name for 3 PICK
Josh Grams <josh@[EMAI  2008-03-08 05:14:24 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-08 09:37:41 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-08 09:53:39 
Re: Late vs. early binding Was: DISFAVORED Was: name for 3 PICK
Bruce McFarling <agila  2008-03-08 09:56:51 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-08 12:11:07 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-08 13:19:05 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-08 19:02:05 
Re: DISFAVORED Was: name for 3 PICK finally?
Albert van der Horst <  2008-03-09 14:16:23 
Re: DISFAVORED Was: name for 3 PICK finally?
mhx@[EMAIL PROTECTED] (M  2008-03-09 17:25:23 
Re: DISFAVORED Was: name for 3 PICK finally?
Albert van der Horst <  2008-03-09 20:23:38 
Re: DISFAVORED Was: name for 3 PICK finally?
Jerry Avins <jya@[EMAI  2008-03-09 17:54:51 
Re: DISFAVORED Was: name for 3 PICK finally?
Coos Haak <chforth@[EM  2008-03-10 00:59:40 
Re: DISFAVORED Was: name for 3 PICK finally?
Jerry Avins <jya@[EMAI  2008-03-09 21:22:30 
Re: DISFAVORED Was: name for 3 PICK finally?
Albert van der Horst <  2008-03-10 14:12:08 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-09 20:28:55 
Re: DISFAVORED Was: name for 3 PICK finally?
Jerry Avins <jya@[EMAI  2008-03-09 23:42:12 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-09 22:26:59 
Re: DISFAVORED Was: name for 3 PICK finally?
Albert van der Horst <  2008-03-10 14:23:28 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-10 13:48:58 
Re: DISFAVORED Was: name for 3 PICK finally?
Albert van der Horst <  2008-03-11 09:41:41 
Re: DISFAVORED Was: name for 3 PICK finally?
Coos Haak <chforth@[EM  2008-03-11 18:14:25 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-11 10:56:10 
Macros etc Was: DISFAVORED
Jonah Thomas <jethomas  2008-03-08 23:56:25 
Re: Macros etc Was: DISFAVORED
Andrew Haley <andrew29  2008-03-10 16:30:20 
Re: Macros etc Was: DISFAVORED
Albert van der Horst <  2008-03-11 10:15:46 
Re: Macros etc Was: DISFAVORED
Andrew Haley <andrew29  2008-03-11 10:23:50 
Re: Macros etc Was: DISFAVORED
"Mark W. Humphries&q  2008-03-08 22:01:52 
Re: name for 3 PICK finally?
gavino <gavcomedy@[EMA  2008-03-09 03:50:29 
Re: DISFAVORED Was: name for 3 PICK finally?
"Mark W. Humphries&q  2008-03-09 07:19:05 
Re: Macros etc Was: DISFAVORED
Jonah Thomas <jethomas  2008-03-09 11:08:35 
Re: DISFAVORED Was: name for 3 PICK finally?
Jonah Thomas <jethomas  2008-03-09 11:40:37 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-09 15:39:37 
Re: Macros etc Was: DISFAVORED
"Mark W. Humphries&q  2008-03-09 19:49:30 
Re: DISFAVORED Was: name for 3 PICK finally?
Bruce McFarling <agila  2008-03-09 20:17:26 

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 Oct 10 22:21:54 CDT 2008.