Re: [stack] adding construction to factor

"William Tanksley, Jr" <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
John Nowak <[email protected]> wrote:
> I managed to add something like FP's construction form to Factor.

That looks nice, John.

> It
> treats stacks as if they were vectors in More's array theory, e.g. '5
> == {5}'.

Is "stacks" a typo here?

> I mentioned wanting to do this a few days ago, so I thought
> I'd share. Maybe it's useful.
> Here are a few of examples:
>    5 [( sq , dup , neg , drop ])  ==  25 { 5 5 } -5 { }
>    5 3 2@ [( + , - )]  ==  8 2
>    5 [( 5 + , 5 - )]  ==  10 0

Yes; that's nice and clear. It occurs to me that this is a parallel
execution operator.

> And here's the implementation:

Nice and terse. Very clear.

> - John

-Wm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.