Ah HAH!
That explains an annoyance I have had for years!! Namely that ~ doesn't
work (as I would expect) in 1!:x expressions... Keeping in mind that
I've never used Windows, and always been in a 'nix environment - because
of my frustration (many years ago) I keep in my profile (start.ijs now,
thank you) the definition:
listfiles =: 3 : 'box host ''ls '',y'
which uses another ancient, heavily used definition:
box =: <;._2
and
host =: [: 2!:0 '('"_ , ] , ' || true)'"_
NB. Which, of course, doesn't work in iPad...
So if I enter (in a 'nix console):
listfiles '~/jstuff/hist.ijs'
+-------------------------+
|/home/jkt/jstuff/hist.ijs|
+-------------------------+
$ fread ; listfiles '~/jstuff/hist.ijs'
3481
$ fread '~/jstuff/hist.ijf'
|file name error: fread
| $ fread'~/jstuff/hist.ijf'
fread
1!:1@<
The thing that exacerbates my confusion is the confusion introduced by
having a directory named "users" and in a directory named "j" and
accessing it with "~users" rather than "~/users" where "~" in 'nix
systems refers to "user" (home directory)....
Maybe changing the name of j/users to something else (e.g. j/ulib) would
reduce my confusion, but even then it seems like broken syntax.
I confess to having always modified where the stuff appears on my 'nix
systems. For example in OS X, putting the "j701x/..." directory in
Documents.
If I'm the only person that has been flummoxed by this, then I'll just
accept it as another case of RTFM (except I'm unsure where to find the
explanation in jdocs.... Help anyone? :)
I'm just saying that maybe it is an opportunity to clear up a long time
confusion (at least on my part).
- joey
On 2012/05/30 07:10 , Eric Iverson wrote:
> The ~user convention is not new to this version of J and has been with J
> forever. ~user is used by jpath to do the lookup in SystemFolders_j_.
> Because J iOS is jail rooted you have the coincidence that ~user and ~/user
> are the same. But they get that way in very different ways. You should use
> ~user as that is what you would use on J on any platform.
>
> On Wed, May 30, 2012 at 2:56 AM, Joey K Tuttle<[email protected]> wrote:
>
>> As usual, the apps installed cleanly and quickly, but there is a little
>> quirk on the iPhone. Seems the J icon is replaced by one that has the
>> "Welcome to J" message (kind of a fly's eye view of the working screen)
>> instead of the stylized J... (this doesn't seem to happen on the iPad)
>>
>> I couldn't detect any differences concerning the "launch images" you
>> described - but was wondering if that is somehow tied into the icon
>> corruption.
>>
>> Took me awhile to puzzle out the usage described in Hbutton but I would
>> say that the new help scheme seems like a good step. The fact that it is
>> closer to command line behavior suits me just fine.
>>
>> Adding the bullet button on the input line does make the text input
>> quite short in iPhone portrait mode (about 15 characters), but it isn't
>> a noticeable loss in landscape mode. I suppose you could make the
>> buttons a little skinnier, but they are already as skinny as the key pad
>> in portrait mode, I don't think you would gain enough to improve the
>> input line without making them very difficult to touch accurately...
>>
>> Nice to have the tar/zip archiving features - thanks. Double thanks for
>> the start.ijs feature!!
>>
>> It may be a convention (or a convenience) but I find the optional "/"
>> between ~ and directory to be contrary to my nix thinking... Interesting
>> that both dir '~user' and dir '~/user' produce the same result. Reminds
>> me of DOS where blanks could be left out - e.g. dira: being the same as
>> dir a: Seems like a bad idea just to save a character....
>>
>> I can't get the results you claim from left/right swipe of the hview.
>> Such swipes switch applications in the order they appear with a four
>> finger up swipe of the screen (and your Hwww help message suggests using
>> the gesture that way to switch beween J and browser) I did manage, once
>> or twice, to see an effect of switching hviews, but it was from a
>> sequence of taps and gestures that I cannot reproduce. What am I missing??
>>
>> On 2012/05/29 17:35 , Eric Iverson wrote:
>>> Build 1.19 adds a bullet button that can ease typging chores.
>>>
>>> Adding that button reduces the textfield a bit on the iPhone. Is it too
>>> short? Could the buttons be made skinnier?
>>>
>>> I don't currently have a real iPhone device and the simulator can be
>>> misleading.
>>>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm