Ok, so you are doing a bunch of state machines? Why would that be
performance critical?

Or, if you are doing just a few of them, why not store the states
under separate names?

Put differently, if it does not make sense for your verbs to operate
on the entire array, why is your data structured like that?

Thanks,

-- 
Raul


On Wed, Apr 26, 2017 at 2:54 PM, Xiao-Yong Jin <[email protected]> wrote:
>
>> On Apr 26, 2017, at 9:54 AM, Raul Miller <[email protected]> wrote:
>>
>> It's not clear to me why you need so much indirection in this context.
>> Why not just use them directly?
>
> Good question.  That was the second point in replying to Eric which you 
> replied to.
>
> 2. Inconvenience, if you want to maintain a set of inhomogeneous states.
> I can do
>
>   'State1A State1B State1C' =. (State1A;State1B;State1C) Verb Control
>   'State2A State2B State2C' =. (State2A;State2B;State2C) Verb Control
>
> And they have to be separated, because there are other verbs
>
>    'State1A State1C' =. (State1A;State1C) VerbOther Control;State1B
>
> Apart from copying/boxing, there are too many names to keep track of.
> I would rather do
>
>   Verb_1_ Control
>   Verb_2_ Control
>
> Or rather
>    Verb__ONE Control
>    Verb__TWO Control
>    VerbOther__ONE Control
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to