Coincidentally last Thanksgiving I developed a bingo in j for my Mom who is
quite demented, to see if she could play and was pleasantly surprised that
she could play one card at a time. The card was hand written because I
could not connect my iPad to a printer. It was pretty easy to use j to
genera
Working with ptys is kind of tricky, you'll want a program that
specializes in that, like expect or maybe even something like tmux.
https://en.wikipedia.org/wiki/Expect
https://en.wikipedia.org/wiki/Tmux
If you're working with tmux, for example, you can use tmux send-keys
to "type" things into y
Something like this, untested
'Valeur' (({.@] i. <@[) { |:@}.@]) data
Сб, 03 мар 2018, raoul schorer написал(а):
> Dear all,
>
> I am learning J and stumbled on something today:
>
> I loaded a .csv and obtained a boxed table, that I assigned to the name
> 'data'.
>
> The first row of 'data' lo
Dear all,
I am learning J and stumbled on something today:
I loaded a .csv and obtained a boxed table, that I assigned to the name
'data'.
The first row of 'data' looks like that:
│N°IPP│Nom du paramètre│Valeur│Valeur Unit│Heure│
Then I defined two functions, that do work as expected:
NB.
Hi
How can i interact with a task like ssh using task.ijs (spawn or shell)?
eg.
load 'task'
password=. 'mypassword'
process=. shell 'ssh lo...@myhost.org'
How to send the password? and then interact with the pty?
login@host$ ls -la
Is there some way to do that?
Thanks in advance,
Omar
for android 6 or newer, please check if jandroid had been granted storage
permission, otherwise it can't write to its home directory on emulated
sdcard or external storage. type
jpath'~/'
should show the home directory.
On Sat, Mar 3, 2018, 2:25 AM Nick S wrote:
> I have attempted to install the
The usefulness of the F. F: family (there will probably be just 1 or 2
vocabulary entries) is that they replace / and /\ when the result ofu/
item_of_y (with optional initial value) is a different shape than item_of_y.
Most often it is the shape of the initial value, though with F. that ini
> 1. As defined, u always executes as ((new item) u (previous result))
even when forward?
> (rest_of_u@(1&Z:^:stop_condition))
it would seem like Z: could ignore left argument (if provided) then,
with
rest_of_u@(Z:^:stop_condition)
returns last iteration/result
(Z:^:stop_condition)@rest_o
I have attempted to install the beta on an android phone that had never
before had J installed on it. Then I tried using it and was stymied. I
can't load or save anything. For example, I have an ijs file I want to use
from downloads. Soon as I do the load and then hit ".." To walk the tree J
fail
You have to put the literal free in the free space, I finally figured out.
Just telling them does not work. Also, I ended up recording the cards, to
that meant that printing and generating were separate. And I decided to
remove literals from the programs to make it easier to provide language
suppor
Have you considered using Z and z instead of Z and F?
And maybe using z and Z for the parallels to .: and :. although .: and :.
might be more suggestive of the distinctions that they make.
I frankly have a very hard time grokking all the different folds, not
having used any at all. But I am sort of
1. As defined, u always executes as ((new item) u (previous result))
2. x, if given, is the first (previous result)
3. The choice of x arguments to Z: should be mnemonic. I think _1 for
abort and 1 for normal completion is a little more natural.
4. It would be reasonable to create (i. 0) rat
im ok with all 6 versions as defined.
for F.. (forward definition), first execution
dyad should be x u 0 { y
monad can be in the same spirit as your original (0{y) u 1{y
this is consistent with the next iteration(s) being result u 2{y
A question on Z:,
_1 argument might more common than 1?
When x is given, only the dyadic valence of u is executed. The
definition of what happens there is open to improvement.
I think mnemonic value is far more important than typing speed. I chose
the first character ./.. to mean Single/Multiple (number of results,
that is) and the second ./..//
The alternative to the monad version is
(u0 x) u1 F. v y
instead of
x u0@[ : (u1) F. v y
I put u1 in parens because it is likely a compound verb.
I've written both a "forward" explicit version of this and a tacit boxed
version of "reverse", and favouring the tacit version, found I had no
dif
You seem to be getting some traction on fold. Would be nice to see
something happen. Some consensus would be a compelling reason to move on it.
On Fri, Mar 2, 2018 at 9:32 AM, Henry Rich wrote:
> From my own use, I use the Forward versions more than the Reverse, by a
> large margin, and I don't
From my own use, I use the Forward versions more than the Reverse, by a
large margin, and I don't want to force the user to use |. needlessly.
Henry Rich
On 3/2/2018 9:12 AM, 'Pascal Jasmin' via Programming wrote:
Very useful overall, but may I suggest 4 F. family versions (ommitting the
forw
Very useful overall, but may I suggest 4 F. family versions (ommitting the
forward version). This improves editability among variations, IMO, and makes
the operator codes easier to remember.
With the above change, F. and F.. mnemonics should be swapped. The "monad
first execution" has fewer ap
Marshall, please criticize the proposal at
http://code.jsoftware.com/wiki/System/Interpreter/Requests#Fold_.28strawman.29
Others' criticism welcome too.
Henry Rich
On 3/2/2018 3:38 AM, Marshall Lochbaum wrote:
There's no clean way to do it. If the result of the first invocation of
f has the s
Would the following do?
i=: /(@,) NB. insert with initial value
pii =: /\(@,) NB. progressive insert with initial value
3 +i i. 3
6
3 + +/ i. 3
6
3 +ip i.3
3 3 4 6
This applies the same f between all elements, but adds an initial value to
start with.
Best regards
Jan-Pieter
On Fri, 2
There's no clean way to do it. If the result of the first invocation of
f has the same type as the rest of the list elements, you can do
f/ _2 (}. , f0/@:{.) l
and if it has a different type you can check whether the right argument
has this type (like your "signature structure", but implicit).
O
Hi,
If f is a dyad, then
f/ 2 4 5
means
2 f 4 f 5
where the rightmost occurence of f is invoked first. I am wondering if
there is a smart way to recognize this first invocation separately from the
rest. This will enable me to perform some initialization inside f. By
"smart" I mean something
22 matches
Mail list logo