What is lacking from the current task.ijs ? This seems to be the
portable way to deal with tasks. The distinction between process and
task isn't clear to me

In this specific example:

fork_jtask_ 'sleep 10'

returns immediately by appending & (on linux)

   fork_jtask_
[: 2!:1 '(' , ')&' ,~ ]
   fork_jtask_ 'sleep 10'

   ('(' , ')&' ,~ ]) 'sleep 10'
(sleep 10)&

On Mon, Jan 11, 2016 at 1:40 PM, Eric Iverson <[email protected]> wrote:
> I agree this (process/task) area is one where J could benefit from new work.
>
> I am pretty sure that the proper framework could be provided for all
> platforms in a portable manner with cd. That is, there is no immediate
> need for jsource changes.
>
> The cd implementation might be adequate, and at worst it would provide
> specs for jsource changes..
>
> Volunteers?:
>
> On Mon, Jan 11, 2016 at 1:12 PM, Raul Miller <[email protected]> wrote:
>> I was reading 
>> https://computinged.wordpress.com/2016/01/11/announcing-a-new-framework-to-define-k-12-computer-science-education/
>> and his point about processes struck a nerve.
>>
>> A process (as opposed to a task*) is a pretty important concept, and
>> one that we've been sloppy about, in J.
>>
>> 2!:1 is documented as returning '' instead of the process id needed
>> for 2!:3. It's also documented as not working on windows (even under
>> cygwin). I think both of these are mistakes. And on top of that, on a
>> mac:
>>
>>    2!:1 'sleep 3'
>>
>> does not return immediately. At least, not with
>>
>>    9!:14''
>> j804/j64/darwin/release/commercial/www.jsoftware.com/2015-12-21 18:06:25
>>
>> (Is chat the right forum for non-beta bug reports?)
>>
>> Thanks,
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> 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