Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread bill lam
The lablist.txt was first introduced for jgtk. I guess it can simplify the logic of discovering labs. BTW for labs, it also needs to update the Public repository which is the real source. Otherwise your changes to Addons will be overwritten. Пт, 20 сен 2013, Ian Clark писал(а): > Thanks Bill, I

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Brian Schott
I really meant both of you. Sorry. On Thu, Sep 19, 2013 at 9:46 PM, Ian Clark wrote: > @Brian - did you mean Roger Stokes (originator of EVM), not me (promoter of > tte)? > > (Both EVM and tte are indeed defined as adverbs.) > > > On Fri, Sep 20, 2013 at 2:12 AM, Brian Schott >wrote: > > > Ian

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Ian Clark
Thanks Bill, I went ahead and did it, just after sending my email. (Revisions 4626 and 4627) Really quite easy (...and I've made myself a new checklist). Never really understood the need for lablist.txt. j602 doesn't need it. Is it there just to control migration of labs from j602 to j801? (What

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread bill lam
I guess that would be trivial, just use the "svn commit" command if you are using the command line interface. Пт, 20 сен 2013, Ian Clark писал(а): > I'm being lazy, Bill :) > > I work strictly from checklists when using svn. I don't have one for > updating lablist.txt (yet). I guess it's just a q

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Ian Clark
@Brian - did you mean Roger Stokes (originator of EVM), not me (promoter of tte)? (Both EVM and tte are indeed defined as adverbs.) On Fri, Sep 20, 2013 at 2:12 AM, Brian Schott wrote: > Ian, > > EVM is particularly clever because you have defined it as an adverb. > Congratulations. > > --- > (

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Brian Schott
Ian, EVM is particularly clever because you have defined it as an adverb. Congratulations. --- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] 13 : '(g^:x)y'

2013-09-19 Thread Ric Sherlock
or: f3=: g@]^:[ On Fri, Sep 20, 2013 at 10:56 AM, Don Guinn wrote: > Don't know why it didn't, but it took me forever to write it tacit myself. > >f2=.([:g])^:[ > > f2 > > ++--+-+ > > |+--+-+-+|^:|[| > > ||[:|g|]|| | | > > |+--+-+-+| | | > > ++--+-+ > > 45 f 27 > > 4616 > >

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Ian Clark
Thanks, Joe. I take my hat off to you, if you, a beginner, can run a lab in JQt from a downloaded .ijt file. On Thu, Sep 19, 2013 at 2:14 PM, Joe Bogner wrote: > Ian, thank you for uploading and creating a lab. I've downloaded it from > svn and used it in jqt 8. I was uncertain how to get star

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Ian Clark
I'm being lazy, Bill :) I work strictly from checklists when using svn. I don't have one for updating lablist.txt (yet). I guess it's just a question of hunting for it. On Thu, Sep 19, 2013 at 12:49 PM, bill lam wrote: > I can that you can commit changes to svn, can you explain why you cannot

Re: [Jprogramming] 13 : '(g^:x)y'

2013-09-19 Thread km
I see an adverb: g=.-:&(+ (2&|*>:&+:)) av =: 1 : '([: u ])^:[' 45 g av 27 4616 --Kip Murray Sent from my iPad > On Sep 19, 2013, at 5:56 PM, Don Guinn wrote: > > Don't know why it didn't, but it took me forever to write it tacit myself. > > f2=.([:g])^:[ > > f2 > > ++--

Re: [Jprogramming] 13 : '(g^:x)y'

2013-09-19 Thread Don Guinn
Don't know why it didn't, but it took me forever to write it tacit myself. f2=.([:g])^:[ f2 ++--+-+ |+--+-+-+|^:|[| ||[:|g|]|| | | |+--+-+-+| | | ++--+-+ 45 f 27 4616 On Thu, Sep 19, 2013 at 3:16 PM, Bo Jacoby wrote: >g=.-:&(+ (2&|*>:&+:)) NB. (g y)= 2%~1+3*y if

[Jprogramming] 13 : '(g^:x)y'

2013-09-19 Thread Bo Jacoby
   g=.-:&(+ (2&|*>:&+:)) NB. (g y)= 2%~1+3*y if y is odd, (g y)=2%~y if y is even.    f=.13 : '(g^:x)y'    f 4 : '(g^:x)y' I wonder why  f  is not translated into tacit code. It works nevertheless:    45 f 27 4616 -- For info

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Raul Miller
I think I should drop a warning flag here: 3 (0 1&{) 2 3 5 7 2 3 3 (0 1&(+:@{)) 2 3 5 7 16 24 http://www.jsoftware.com/help/dictionary/d630n.htm ;) In other words, the behavior of 2 3&{ in this context might be a bit surprising if you have oversimplified your understanding of 0 1&{ -- R

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Pascal Jasmin
   0 1&(+:@{) 2 3 4 5 4 6 I expected that.  You are right, that I would have complained to see this result:     3 (0 1&(+:@{)) 2 3 4 5 16 24 Fortunately, that would only be natural  for automated code generation  (readability and concentration makes bonding to the far right conjunction item th

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Raul Miller
On Thu, Sep 19, 2013 at 12:02 PM, Pascal Jasmin wrote: >4 5 $ (+:@(3&{)"1 sel} ,) i. 4 5 > 0 1 2 6 4 > 5 6 7 16 9 > 10 11 12 26 14 > 15 16 17 36 19 > > is there a gerund amend version that avoids the temp assignments? or other > code to get the same result? In addition to the other

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Pascal Jasmin
Thanks for both. Adding spaces for readability. 3 (<"1@(,.~ i.@{.@$) +:@{`[`]} ])i. 4 5 the key element       3 (,.~ i.) 4 0 3 1 3 2 3 3 3    3 (,.~ i.@{.@$) i. 4 5 0 3 1 3 2 3 3 3 what is a bit confusing though is:     $ 3 (i.@{.@$) i. 4 5 0 1 2 3 4    # 3 (i.@{.@$) i. 4 5             ---ret

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Pascal Jasmin
Thank you Raul, The other challenge... placing in column 3 the result of op on first 2 columns is fairly pretty your way.    3 +/@(0 1&{)`[`]}"1 i. 4 5  0  1  2  1  4  5  6  7 11  9 10 11 12 21 14 15 16 17 31 19 - Original Message - From: Raul Miller To: Programming forum Cc: Sent:

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Aai
Sorry, try again 3 (<"1@(,.~i.@{.@$)+:@{`[`]} ])i. 4 5 3 +:@{`[`]}&.|: i. 4 5 On 19-09-13 18:02, Pascal Jasmin wrote: 6 (3}"1) i.4 5 0 1 2 6 4 5 6 7 6 9 10 11 12 6 14 15 16 17 6 19 +: (3}"1) i.4 5 6 16 26 36 I'd wish for the result to return the full row/table as the first

Re: [Jprogramming] Amend trickiness

2013-09-19 Thread Aai
perhaps this one 3 (<"1@(,.~i.@{.@$)+:@{`[`]} ])i. 4 5 or this one 3 +:@{`[`]}&.|: i. 4 5 On 19-09-13 18:02, Pascal Jasmin wrote: 6 (3}"1) i.4 5 0 1 2 6 4 5 6 7 6 9 10 11 12 6 14 15 16 17 6 19 +: (3}"1) i.4 5 6 16 26 36 I'd wish for the result to return the full row/tab

[Jprogramming] Amend trickiness

2013-09-19 Thread Pascal Jasmin
   6 (3}"1) i.4 5  0  1  2 6  4  5  6  7 6  9 10 11 12 6 14 15 16 17 6 19   +:  (3}"1) i.4 5 6 16 26 36 I'd wish for the result to return the full row/table as the first amend.  I'd also like the code to the left of the amend to not know how many rows there are.  There is possibly a gerund appr

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Joe Bogner
Ian, thank you for uploading and creating a lab. I've downloaded it from svn and used it in jqt 8. I was uncertain how to get started from the wiki page that referenced it. The lab, test file, and tte.ijs makes it immensely more clear to me. I've only used it a bit and found it to be very helpful f

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread bill lam
I can that you can commit changes to svn, can you explain why you cannot change the lablist.txt? On 19 Sep, 2013, at 3:12 PM, Ian Clark wrote: > It's okay Bill, I've located the one verb I've used in misc.ijs and copied > it into tte.ijs. > > It works fine now in JQt. > > But to run: tte.ijs

Re: [Jprogramming] generating explicit from tacit

2013-09-19 Thread Ian Clark
It's okay Bill, I've located the one verb I've used in misc.ijs and copied it into tte.ijs. It works fine now in JQt. But to run: tte.ijs -needs this line inserting in lablist.txt: Debug;Explicate a given tacit verb;~addons/debug/tte/tte.ijt open '~addons/labs/labs/lablist.txt' NB. -to do t