I noticed something odd while working with net/websocket today.
It seems sdselect takes a timeout as its fourth parameter, and the wiki
seems to indicate that this is meant to be the timeout for the entire
sdselect call.
However, in practice, the timeout is spent for each of the other three
param
Apple M1:
This Mac j64 fat binary contains both binary for x86_64 and arm64
architectures so that it runs in native arm64 mode on apple M1. To query
its cpu architecture, type
9!:56'cpu'
arm64
To force it to run in x86_64 mode on apple M1 via Rosetta 2, type
$ arch x86_64 ./jconsole
9!:56'cp
J903-beta-v is available for all platforms.
If you already run J903-beta, then upgrade is easy:
load'pacman'
'upgrade'jpkg'jengine'
If you have not yet installed J903-beta, time to get started!
https://code.jsoftware.com/wiki/System/Installation/J903
We are nearing the end of the beta c
I am a simple user, you are not only the architect, but also the implementor.
Most of all I consider J as a mathematical tool, that's the way I use it
anyhow, and in mathematics I would immediately define u&.(w`v) as I did.
What's more, I would extend &, &: en &:. accordingly.
Just to have a c
Here's an argument against:
The dual [x] u&.v y says 'apply u, but with a different point of view.
First transform [x and] y, then apply u, then transform the result back
to the original point of view.'
The semidual x u&(a:`v) y says 'u&.v, but the point-of-view business
applies only to y'.
*&.(>:`<:)/ i.2 3
|domain error
| *&.(>:`<:)/i.2 3
*&.(a:`<:)/ i.2 3
1 4 9
*&.(a:`<:)&.(>:`a:)/ i.2 3
2 6 12
so why not define
x u&.(w`v) y
as
x u&.(w`a:)&.(a:`v) y
?
R.E. Boss
--
For information about J foru
Thank you.
It was the kind of answer I suspected. But I had spent an hour on Jsoftware
and in the wiki without finding the solution.
Again, thanks!
On Wed, Nov 17, 2021 at 3:10 PM chris burke wrote:
> See https://code.jsoftware.com/wiki/Essays/Progressive_Index-Of
>
> This is in misc/miscutils
See https://code.jsoftware.com/wiki/Essays/Progressive_Index-Of
This is in misc/miscutils/utils as progressiveindex, e.g.
load'misc/miscutils/utils'
0 0 2 0 2 0 3 3 progressiveindex 2 2 2 3 4
2 4 8 6 8
On Wed, Nov 17, 2021 at 5:33 AM Pablo Landherr
wrote:
> I cannot figure out how to make
I cannot figure out how to make a "simple" verb that finds the indices
(like i.) but gives the next index if there are multiple occurrences, like
this
0 0 2 0 2 0 3 3 foo 2 2 2 3 4
2 4 8 6 8
I have a hunch a boolean matrix is involved but there I get stuck.
Kr,
Pablo
-