Thanks for that, Jose. I've downloaded the zip file referred to in your
link. It must
be somewhere in my J mail folder, but I couldn't see it! I suspect my
old copy dates
from 2015 or 16...
I've amended the Ver definition as suggested.
You advise against loading the script, suggesting as (0!:0)<[file] as
one alternative.
I did of course try loading it before I spotted the advice (!),
resulting in this error:
load 'c:/d/j807/user/j wicked toolkit.ijs'
|value error: script
| u(a3=.(o(train o aw f.))('av'f.))
|[-93] c:\d\j807\user\j wicked toolkit.ijs
Then I spotted your advice and tried this instead:
runwt =: 3 : 0
(0!:0)<'c:/d/j807/user/JWickedToolkit.ijs'
)
runwt 1
... with similar results:
runwt 1
|value error: runwt
| u(a3=.(o(train o aw f.))('av'f.))
|[-93] c:\d\j807\user\JWickedToolkit.ijs
However,
clear''
followed by a bare
(0!:0)<'c:/d/j807/user/JWickedToolkit.ijs'
in the terminal window (under Jqt) apparently resulted successfully.
Repeating the process seems to hang, although running jbreak in Windows
is "successful" in returning the J session to input mode without
crashing J.
That's as far as I've got.
So while Martin Kreuzer's original question was how to save an intermediate
resulting value, your debate with David Lambert appears to centre on
repeated invocations of a verb, such as mean, whose resulting value(s)
would
possibly be different at different stages of the process, or in
"simultaneous" but
different arcs...
Thanks again,
Mike
On 21/09/2018 00:27, Jose Mario Quintana wrote:
Mike, I am afraid you might be referring to an early version of the
script. I provided a link recently at the end of my post,
[Jprogramming] Tacit version of AR=: 1 : '5!:1 <''u'''
http://www.jsoftware.com/pipermail/programming/2018-August/051707.html
In addition, Ver is reassigned a few times; the correction applies to the
last assignment.
Alternatively, I could send the script file directly to you; however, you
are one of the chosen people whose email addresses are hidden. Is your
email still mike_liz....@tiscali.co.uk? Would you like to receive the
latest version of the script directly (if so, just let me know)?
Do not load the script, it does not work within an explicit verb (load).
Instead, run the script using, for example, (0!:0)<'...' (see the comments
at the beginning of the script).
Regarding the subject of this thread. :) Martin Kreuzer's original
specific question was answered in many ways; I have nothing to add.
Nevertheless, I can point out that, in general, one can handle not just one
but several intermediate results tacitly using boxes to hold them together
with the verb argument(s) and the Wicked Toolkit facilitates that process.
One complicated example is shown in,
[Jprogramming] K-sets - bitmap representation of sets. WAS: Partitions
http://www.jsoftware.com/pipermail/programming/2017-November/049678.html
where a verb is transcribed from an explicit to a tacit form.
Finally, sometimes depending on the verb and its argument(s) the simplest
and most efficient way, regardless whether the alternative to avoid
recalculations is juggling intermediate results with hooks and forks or
using boxes, is just to recalculate.
On Thu, Sep 20, 2018 at 3:33 PM, 'Mike Day' via Programming <
programm...@jsoftware.com> wrote:
Yes, I know - that's where I was looking for WT, without success. Whatever
I'd
copied and pasted in my version doesn't appear to have the line:
Ver=. (<^:(1 -: #)) ...
mentioned in Jose's email, further below in this unsnipped mail.
(It does have, instead,
Ver=. Cloak o af f. NB. Verbing after fixing a pro-adverb or
pro-conjunction )
Perhaps Jose can provide a pointer to the latest version.
Thanks, Skip
Mike
On 20/09/2018 19:46, Skip Cave wrote:
The original "Tacit Toolkit" thread was entitled "Tacit Toolkit (was
dyadic J)", started on Dec 14, 2015 in the programming forum.
Skip
On Thu, Sep 20, 2018 at 10:36 AM 'Mike Day' via Programming <
programm...@jsoftware.com> wrote:
This thread has come a long way!
Anyway, as someone who aims for neat tacit verbs but usually fails and
mainly uses explicit ones, and is pretty vague about adverbs, and could
perhaps learn something useful from your insights, where can I find
your Wicked Tookit?
I do have a saved script, named (by me, I think)
tacit_toolkit.ijs. I tried loading it just now, so updating its
time-stamp,
so I don't know its age! I don't recall ever getting it to load
successfully;
this is today's result:
load 'c:/d/j807/user/tacit_toolkit.ijs'
|value error: script
| u(a3=.(o(train o aw f.))('av'f.))(a4=."_)
|[-54] c:\d\j807\user\tacit_toolkit.ijs
Here are the first few "working" lines:
(_ o=. @:) (c=. "_) (e=. &.>) (x=. @:[) (y=. @])
an=. <@:((,'0') ,&< ]) NB. Atomizing words (monadic verb)
Cloak=. (0:`)(,^:) NB. Cloaking (the atomic representaions of)
....
I think I might have copied and pasted the script from a forum
message, but presumably there's a near working version
somewhere on jsoftware.com or elsewhere up there in the
clouds.
Thanks,
Mike
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm