But what about the 'value' parameter?

Is it the case that the value parameter for the 'worker' keyword is a
switch which (if zero) would makes t. behave as if the 'worker'
keyword was p,otted

If so, is this also likely to be the case for future keywords?

Thanks,

-- 
Raul

On Thu, Jan 19, 2023 at 9:33 AM Henry Rich <[email protected]> wrote:
>
> The intended description was:
>
> The n argument to t. controls execution of the task. The format is
>
> [[<]/important parameters/][,< keyword[;value]]...
> or
> keyword
>
> The /important parameters/ are: [threadpool#]
>
>
> I was trying to say that threadpool is a positional parameter rather
> than a keyword.  Feel free to improve the explanation.  I have added an
> example.
>
> Henry RIch
>
>
>
> On 1/18/2023 10:33 PM, Raul Miller wrote:
> > Reading nuvoc -- https://code.jsoftware.com/wiki/Vocabulary/tdot -- I
> > don't see an example which uses a threadpool id.
> >
> > I do see an example which includes a numeric value, but I don't see a
> > description of the purpose of that numeric value.
> >
> > That said, the indicated defaults (0 when the keyword is omitted, 1
> > when the keyword is present) suggest that it's a truth value (and,
> > thus, a potential alternate mechanism for switching on/off the
> > behavior of that keyword -- roughly equivalent to omitting vs.
> > including the keyword) for at least some keywords.
> >
> > Can you verify that my understanding is correct? (Or, if not, tell me
> > what I should have concluded, instead?)
> >
> > Thanks,
> >
> > --
> > Raul
> >
> >
> > On Wed, Jan 18, 2023 at 10:38 AM Henry Rich <[email protected]> wrote:
> >> threadpool is a positional paramter, coming first.
> >>
> >> u t. (2;'worker')
> >>
> >> Henry RIch
> >>
> >> On 1/18/2023 12:39 AM, John Ference wrote:
> >>> Worker threads in pools >= 2 seem to generate a domain error.
> >>>
> >>> 8 T. ''
> >>>
> >>> 4 8
> >>>
> >>> 0 T. 1
> >>>
> >>> 1
> >>>
> >>> 0 T. 2
> >>>
> >>> 2
> >>>
> >>> +/ t. (<'worker';1) 2,2
> >>>
> >>> ┌─┐
> >>>
> >>> │4│
> >>>
> >>> └─┘
> >>>
> >>> +/ t. (<'worker';2) 2,2
> >>>
> >>> |domain error, executing conj t.
> >>>
> >>> | +/ t.(<'worker';2)2,2
> >>>
> >>> |[-6]
> >>>
> >>>
> >>> JVERSION
> >>>
> >>> Engine: j904/j64avx512/darwin
> >>>
> >>> Beta-j: commercial/2023-01-07T20:25:29
> >>>
> >>> Library: 9.04.09
> >>>
> >>>
> >>> Cheers,
> >>>
> >>> John
> >>> ----------------------------------------------------------------------
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> 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