[Jprogramming] Set Intersection - was Re: Common factors

2018-10-25 Thread 'Mike Day' via Programming
I seem to have raised a hare in my reply to Skip's original post on 23/10. I defined a convenient one-liner for intersection,       ix =: ([ -. -.)  NB. set intersection as it was sufficient to the discussion - I wanted to reinforce the idea that it was better to take the gcd of the list.

Re: [Jprogramming] J701 iPod strange behavior

2018-10-25 Thread 'Mike Day' via Programming
iPod? Yes, that's also happened for me very occasionally - in J701 on the iPad. Not under iOS12, as far as I recall, but that's probably not relevant. So what does "open 'stdlib' " do on your iPad?   I don't recognise it as a J action...  Or did you type something quite different? Mike On

Re: [Jprogramming] Set Intersection - was Re: Common factors

2018-10-25 Thread Raul Miller
I think the intuition here runs something like this: 1) longer code means more work 2) more work means slower implementation But performance depends not only on the code, but on the data, and nub will in some cases significantly reduce the amount of data. So this winds up being one of those issu

Re: [Jprogramming] Set Intersection - was Re: Common factors

2018-10-25 Thread 'Mike Day' via Programming
Some extraneous vertical bars have appeared  after sending the following. Please ignore any vertical, possibly grey, bars in  "  |∩ |  " Partly why KEI & Roger wrote J. Mike On 25/10/2018 18:56, 'Mike Day' via Programming wrote: I seem to have raised a hare in my reply to Skip's original post on

Re: [Jprogramming] J701 iPod strange behavior

2018-10-25 Thread 'Jim Russell' via Programming
Sorry, iPad. You are right, it wouldn’t have worked even if not reversed—must be nature’s way of warning me. > On Oct 25, 2018, at 2:17 PM, 'Mike Day' via Programming > wrote: > > iPod? > > Yes, that's also happened for me very occasionally - in J701 on the iPad. > > Not under iOS12, as far

Re: [Jprogramming] J701 iPod strange behavior

2018-10-25 Thread 'Jim Russell' via Programming
Since you asked, Mike, I was following the instructions at: https://code.jsoftware.com/wiki/Vocabulary/slashco , which said: View definition(s) by entering in the J session: open'stdlib' I finally decided that sort_z_ would been he easier approach. But I still don’t know why /: isn’t giving me w

Re: [Jprogramming] J701 iPod strange behavior

2018-10-25 Thread 'Mike Day' via Programming
I'd forgotten about that script, stdlib.ijs . The verb "open" refers to a list, Public_j_ , of shortcuts for various scripts such as plot, viewmat, and so on. For some reason, "stdlib" isn't included. But it's still there, both in J807 and in J701 for iPad. So, for the latter, (sorry, boxing is

Re: [Jprogramming] J701 iPod strange behavior

2018-10-25 Thread Ric Sherlock
For now I've changed the text on the wiki page to clarify that `open` only applies to JQt. I've also added a link to the page of the User manual that describes the Standard Library in more detail. On Fri, Oct 26, 2018 at 12:13 PM 'Mike Day' via Programming < [email protected]> wrote: > I'