Re: [Jprogramming] finding matching sets

2014-07-27 Thread Joe Bogner
Thank you all for the suggestions and alternate implementations. I ran benchmarks on them all and wanted to share: $ t2 1763140 3 NB. Thomas's suggestion groups1 =: 3 : 0 ]key=. (}."1 wrote: > Joe > > If the only thing that matters is the car and cdr of each entry why > not just raze the cdr, eg

Re: [Jprogramming] finding matching sets

2014-07-27 Thread R.E. Boss
pd 'reset' pd 'type marker' pd 'color red' pd j./"1 ,:7.87302 2.63376e8 pd 'color green' pd j./"1 ,:2.74571 3.24026e8 pd 'color blue' pd j./"1 [6.53307 2.23953e8 ,: 2.46257 2.33259e8 pd 'color black' pd j./"1 ,:11.5519 5.73956e8 pd 'show' 2 <-> red 3 <->

Re: [Jprogramming] finding matching sets

2014-07-27 Thread 'Pascal Jasmin' via Programming
Thanks for letting us know, Joe. You might see a big improvement with unboxed symbols taken just before comparisons as in: (~.{."1 t) ({."1 To: [email protected] Cc: Sent: Sunday, July 27, 2014 9:18:31 AM Subject: Re: [Jprogramming] finding matching sets Thank you all for the suggesti

Re: [Jprogramming] finding matching sets

2014-07-27 Thread greg heil
Joe >What i meant by "just not box them separately in the first place" was, eg, ax=:{. ; }. fsp=:' ' i.~ ] tc =: (ax~fsp) ;._2 (0 : 0) c1 p1 0.2 c1 p2 0.35 c2 p1 0.2 c2 p2 0.35 c3 p1 0.2 c3 p2 0.35 c3 p3 0.45 ) Then you would run tc through REB's fine finder. greg ~krsnadas.org -- fr

[Jprogramming] Problems with Rserve addon

2014-07-27 Thread rlvaughan
I also had noticed the change in representation of NA from __ to _. and removed it from the test script. But I have no idea if this is affecting the Rserve script itself nor how to modify it if so. And my code worked fine two weeks ago, while the new representation of NA has been around for year

Re: [Jprogramming] Problems with Rserve addon

2014-07-27 Thread chris burke
I don't see any recent changes in Rserve. Can you give us a simple, reproducible example? Try to isolate the problem to a few lines of J entered in a fresh session. On Sun, Jul 27, 2014 at 3:40 PM, wrote: > I also had noticed the change in representation of NA from __ to _. and > removed it f

Re: [Jprogramming] Problems with Rserve addon

2014-07-27 Thread bill lam
The r addon for j602 should has not changed since Feb 2013. On Jul 27, 2014 12:40 PM, wrote: > I also had noticed the change in representation of NA from __ to _. and > removed it from the test script. But I have no idea if this is affecting > the Rserve script itself nor how to modify it if so.