Re: [Jprogramming] JHS JAL update available

2012-11-16 Thread Björn Helgason
As usual I was going to do the upgrade on everything. I clicked on upgradeable and was going to click on check all but missed the button and clicked on upgrade selected but none was selected. It did upgrade everything anyway because it knew my intention. This is AI for dummies. 2012/11/16 Eric

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Alex Giannakopoulos
On 17 November 2012 02:39, Raul Miller wrote: > On Fri, Nov 16, 2012 at 11:53 AM, Alex Giannakopoulos > > then cheap tricks like "padding" to read will have to be discarded, > > and something more serious adopted. (I mean, you're not going to > > pad a 3-d cube with 6 copies of itself, are you?

Re: [Jprogramming] Arc consistency in J

2012-11-16 Thread Raul Miller
If you are talking about my post on the 10th, where I proposed arcn=:3 :0 'D c1 X'=: y X1=. 1=X ([:+./"1[: +./((|:c1) *"1 2~ (|:X1) *"1 2 ]) +. c1 *"1 2~ X1 *"1 2 ])^:_ D ) ... note that it works just fine when D is not square. And all I got out of Mike's 11/11 message was that D might not

Re: [Jprogramming] Arc consistency in J

2012-11-16 Thread Michal D.
Boss is Boss, I eventually arrived at the same (non-negative case) solution. Thanks km for the explanation of @ vs @: which I'm starting to slowly get. Linda: I think I prefer having it on three lines. It better breaks down the steps I'm trying to accomplish. Maybe someday I'll be able to boil

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Raul Miller
On Fri, Nov 16, 2012 at 11:53 AM, Alex Giannakopoulos > Of course, by the time we get to 3-D tic-tac-toe on a torus, then cheap > tricks like "padding" to read will have to be discarded, and something more > serious adopted. (I mean, you're not going to pad a 3-d cube with 6 copies > of itself, a

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Raul Miller
On Fri, Nov 16, 2012 at 5:59 PM, Peter B. Kessler wrote: > What I can't give you is a feeling for how Raul Miller came up with this > particular way of producing that result. I am not used to seeing my name repeated so many times, I am not sure how to deal with that. That said, I do happen to kn

Re: [Jprogramming] Distinguishing @: and A

2012-11-16 Thread Don Guinn
I have always compared @ and @: to pipe. In UNIX pipe linked each item to be passed from one function to the next. Where in DOS the pipe created a file of all items using the first function, then passed the file it to the next function. To me the difference gives the dependence between items. @ sa

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Peter B. Kessler
Raul Miller wrote: On Thu, Nov 15, 2012 at 7:06 PM, Alex Giannakopoulos Nice "torus-pad" ([:|:{:,]{.)^:2 Or, more generally: (0 |:{:,],{.)^:(#@$) Also, here's a general "fill pad": ((_1 ["0 $) |. ({.~ 2 +$)) That said: generality can be good for insight, and in utility contexts, but

Re: [Jprogramming] parsing with J, cont.

2012-11-16 Thread Raul Miller
On Fri, Nov 16, 2012 at 1:01 PM, Alexander Mikhailov wrote: >> Note that Context Free Grammars tend to be ambiguous, in traditional >> programming environments we typically want a Parsing Expression >> Grammar. And we probably need "cloud sized resources" to adequately >> tackle natural language

Re: [Jprogramming] Distinguishing @: and @

2012-11-16 Thread km
(Correct the title) Sent from my iPad On Nov 16, 2012, at 3:38 PM, km wrote: > Here is my attempt to explain the difference between conjunctions @: and @ > > ]A =: 2 3 $ 1 2 3 4 5 6 > 1 2 3 > 4 5 6 > |. A NB. Reverse matrix A > 4 5 6 > 1 2 3 > |."1 A NB. Reverse each row of A (each 1

[Jprogramming] Distinguishing @: and A

2012-11-16 Thread km
Here is my attempt to explain the difference between conjunctions @: and @ ]A =: 2 3 $ 1 2 3 4 5 6 1 2 3 4 5 6 |. A NB. Reverse matrix A 4 5 6 1 2 3 |."1 A NB. Reverse each row of A (each 1-cell) 3 2 1 6 5 4 |. @: (|."1) A NB. Reverse the result of |."1 A 6 5 4 3 2 1 |. @ (|."1

Re: [Jprogramming] Thanks

2012-11-16 Thread William Tanksley, Jr
Brian Schott wrote: > Now I want to know if any gmail users know how to use the keyboard and > not the mouse to delete a message, not a conversation. I used to be I don't see how to delete a message, but I have part of the puzzle -- "p/n" work to highlight a specific message; if the one you want

Re: [Jprogramming] parsing with J, cont.

2012-11-16 Thread Devon McCormick
You might find useful the kind of integer index tree I'd mentioned in the earlier discussion: it's a vector of integers where each element is the index of the parent node but with _1 for the root's parent. I use this for modeling directory trees and it works well for that. Also, what I'm usually

Re: [Jprogramming] Thanks

2012-11-16 Thread Brian Schott
I was not aware of the '?'. That is great. Now I want to know if any gmail users know how to use the keyboard and not the mouse to delete a message, not a conversation. I used to be able to use the keyboard to click on the down-arrow button which is now on the top of the conversation panel, and th

Re: [Jprogramming] Thanks

2012-11-16 Thread greg heil
The most important keyboard stroke to remember though is `?` - as it gives all the strokes, lightening the memory load! On the subject of the `style` of the forum though, i would have to say follow Raul: Not only is he very useful, and prolific, but he accurately reflects the mainstream of this gr

Re: [Jprogramming] Thanks

2012-11-16 Thread Skip Cave
Click the "Gear" icon in the upper right corner of the Gmail page in your browser. Click "Settings", and the "General" tab. then look for "Keyboard Shortcuts" and set "keyboard shortcuts on". Warning: there are LOTS of keyboard shortcuts. Click on the "Learn More" link to see them all. Skip On F

Re: [Jprogramming] Thanks

2012-11-16 Thread Brian Schott
Click on the "gear" icon on the right side of the page near the top. On Fri, Nov 16, 2012 at 1:25 PM, Linda Alvord wrote: > Where do you find keyboard settings? > > Linda > -- (B=) -- For information about J forums see http://ww

Re: [Jprogramming] Thanks

2012-11-16 Thread Linda Alvord
Where do you find keyboard settings? Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Skip Cave Sent: Friday, November 16, 2012 12:19 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Thanks

[Jprogramming] parsing with J, cont.

2012-11-16 Thread Alexander Mikhailov
> Note that Context Free Grammars tend to be ambiguous, in traditional > programming environments we typically want a Parsing Expression > Grammar. And we probably need "cloud sized resources" to adequately > tackle natural language parsing. I have only little familiarity with PEGs; I'm not sure

Re: [Jprogramming] Thanks

2012-11-16 Thread greg heil
Actually Brian did more than type 'r' (or hit the 'reply' button wo keystrokes) - he edited out part of Vijays message. How this is done affects all those attempting to archive the stream, and hence is of more than passing concern. greg ~krsnadas.org -- from:Skip Cave s...@caveconsulting.co

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Skip Cave
The "General" forum is probably the best place to discuss the difficulty of finding information on the J software site. I will post my comments there under the topic "difficulty of finding information on the J software site" Skip On Fri, Nov 16, 2012 at 11:04 AM, Alex Giannakopoulos < aeg...@blue

Re: [Jprogramming] Thanks

2012-11-16 Thread Skip Cave
The "r" for reply only works if you have turned on the "keyboard shortcuts" in your Gmail settings. Skip On Fri, Nov 16, 2012 at 10:46 AM, Brian Schott wrote: > Vijay, > > I use gmail (too) and I just press the "r" key to reply. > > On Fri, Nov 16, 2012 at 8:19 AM, Vijay Lulla wrote: > > On a s

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Alex Giannakopoulos
Oh, yes! Typing it into the the main page search box is not much better either. Is there a thread where this is being discussed, so I don't clutter the space here? There is some real irrelevant stuff in the Wiki FAQs too, which could desperately use a tidying. I mean, using x. and y. ? Seriousl

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Alex Giannakopoulos
Thanks for that. Once I've got this lot well under my belt, I *will* be generalizing to 3-D, of course. I think a Conway's Life-3D, or 3-d tic-tac-toe will be good examples for J. Of course, by the time we get to 3-D tic-tac-toe on a torus, then cheap tricks like "padding" to read will have to be

Re: [Jprogramming] Thanks

2012-11-16 Thread Brian Schott
Vijay, I use gmail (too) and I just press the "r" key to reply. On Fri, Nov 16, 2012 at 8:19 AM, Vijay Lulla wrote: > On a side note, how do I reply to a specific message. I've never > participated in a mailing list before. > Once again, thanks for great answers. > Vijay. -- (B=) <-my sig

Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-16 Thread Raul Miller
On Thu, Nov 15, 2012 at 7:06 PM, Alex Giannakopoulos > Nice "torus-pad" ([:|:{:,]{.)^:2 Or, more generally: (0 |:{:,],{.)^:(#@$) Also, here's a general "fill pad": ((_1 ["0 $) |. ({.~ 2 +$)) That said: generality can be good for insight, and in utility contexts, but can also sometimes b

Re: [Jprogramming] parsing with J, cont.

2012-11-16 Thread Raul Miller
On Thu, Nov 15, 2012 at 8:21 PM, Alexander Mikhailov wrote: > http://www.jsoftware.com/jwiki/AlexMikhailov/Parsing > > There are multiple questions regarding J style. For example, it seems like it > would be awfully inefficient to try to solve parsing problem in parallel - > avoiding the loop. O

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Skip Cave
If you want to get really confused, try typing "FAQ" in the wiki search box. Skip On Fri, Nov 16, 2012 at 5:43 AM, Alex Giannakopoulos < aeg...@blueyonder.co.uk> wrote: > Wow, you mean there *is* actually a FAQ? > > Why does the link not appear on the Jsoftware home page? > Hold on, maybe it's u

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread km
I suppose the simplest explanation is that defining fact =: */ >: i. in effect puts parentheses around */ >: i. and (*/ >: i.) 5 is different from */ >: i. 5 As others have explained, the first of these is interpreted as (*/ 5) >: (i. 5) and the second as */ (>: (i. 5)) You could

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Alex Giannakopoulos
Wow, you mean there *is* actually a FAQ? Why does the link not appear on the Jsoftware home page? Hold on, maybe it's under "Help" Ooops, not here either. Maybe under "Getting Started"?... No, not, here. Perhaps the "Getting started Wiki"? Nope. Ah, here it is, top page of "Guides". Well,

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Alex Giannakopoulos
I venture to say that q2 would concern the difference between @: and @ On 16 November 2012 10:22, Alex Giannakopoulos wrote: > If we made a FAQ, this would probably be q1 > > -- For information about J forums see http://www.jso

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Alex Giannakopoulos
Hm, this must be *the* newbie question, it was the first one I asked, too! For better or for worse, J has the concept of trains (hooks and forks) which - while simplifying some tasks - cause a disparity between "inline" code interpreted as a one-liner and code made up of functions. The problem, i

Re: [Jprogramming] parsing with J, cont.

2012-11-16 Thread Roger Stokes
Alexander, Many thanks for producing this. I am very glad to see it and I will study it carefully. Regards - Original Message - From: "Alexander Mikhailov" To: Sent: Friday, November 16, 2012 1:21 AM Subject: [Jprogramming] parsing with J, cont. Regarding http://www.jsoftwar

Re: [Jprogramming] Verb definition + inadvertent train formation.

2012-11-16 Thread Linda Alvord
Because the language is so rich with powerful verbs, you will often work hard to achieve a result as you did here. Later you learn that it is an important enough that it already exists in J and is ready to use like factorial. !5 120 Don't let this bother you. As you learn to define ideas yo