Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #941

Re: Forth in Python

Newsgroups comp.lang.forth
From Albert van der Horst <albert@spenarnc.xs4all.nl>
Subject Re: Forth in Python
Date 2011-04-01 23:55 +0000
Message-ID <lizzrr.5pn@spenarnc.xs4all.nl> (permalink)
Organization Dutch Forth Workshop
References <840432d6-1eb0-43c5-8a82-af0c1a8409f8@j13g2000pro.googlegroups.com> <imt163$ais$1@speranza.aioe.org> <a349301a-153e-4089-b90e-321b813d589b@q12g2000prb.googlegroups.com> <in458f$uq4$1@speranza.aioe.org>

Show all headers | View raw


In article <in458f$uq4$1@speranza.aioe.org>,
Rod Pemberton <do_not_have@noavailemail.cmm> wrote:
>"P.M.Lawrence" <pml540114@gmail.com> wrote in message
>
>> But you still can, if you use dynamically computed code to "call" by
>> pushing onto an execution stack. More precisely, you don't change the
>> control flow as such - it's always what's on the execution stack - you
>> just change what gets there. And THAT means you don't need branching,
>> because you don't need to alter control flow (narrowly defined).
>>
>
>How do you "change what gets there"?  That requires branching.  It requires
>a conditional to select a value, to change an offset, to perform an addition
>or not.  All your example does, as well as that of the other examples
>presented in Forth, is shift the location where the branching is occuring or
>change the type of branching.  None of them eliminate branching.

No it doesn't.  Look for instance at Chuck Moore's F18 structure.
It can execute instructions from a port. The data that is put there
by some other processor gets executed.

>
>
>Rod Pemberton


--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Forth in Python "P.M.Lawrence" <pml540114@gmail.com> - 2011-03-29 06:02 -0700
  Re: Forth in Python John Passaniti <john.passaniti@gmail.com> - 2011-03-29 07:20 -0700
    Re: Forth in Python Andrew Haley <andrew29@littlepinkcloud.invalid> - 2011-03-29 11:49 -0500
      Re: Forth in Python John Passaniti <john.passaniti@gmail.com> - 2011-03-29 10:35 -0700
    Re: Forth in Python "P.M.Lawrence" <pml540114@gmail.com> - 2011-03-31 18:52 -0700
      Re: Forth in Python John Passaniti <john.passaniti@gmail.com> - 2011-03-31 19:06 -0700
        Re: Forth in Python Paul Rubin <no.email@nospam.invalid> - 2011-03-31 19:36 -0700
  Re: Forth in Python "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2011-03-29 12:30 -0400
    Re: Forth in Python Jan Coombs <jan_2011-02@murray-microft.co.uk> - 2011-03-30 15:25 +0100
    Re: Forth in Python "P.M.Lawrence" <pml540114@gmail.com> - 2011-03-31 19:02 -0700
      Re: Forth in Python "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2011-04-01 05:22 -0400
        Re: Forth in Python Anonymous <nobody@remailer.paranoici.org> - 2011-04-01 15:59 +0200
        Re: Forth in Python Albert van der Horst <albert@spenarnc.xs4all.nl> - 2011-04-01 23:55 +0000
    Re: Forth in Python BruceMcF <agila61@netscape.net> - 2011-03-31 21:32 -0700

csiph-web