Re: [Jprogramming] J Kernel

2014-09-07 Thread 'Pascal Jasmin' via Programming
approachable tutorial. - Original Message - From: Henry Rich To: programm...@jsoftware.com Cc: Sent: Sunday, September 7, 2014 11:07 AM Subject: Re: [Jprogramming] J Kernel J By Example is interesting, but I think you should remove the K, which will only be confusing. But it's no

Re: [Jprogramming] J Kernel

2014-09-07 Thread Brian Schott
I was intrigued by Ian's comment about adding a list of coding task examples, but like Henry, was not inspired by the python.org SimplePrograms. My inclination (and perhaps Ian's as well) is much more to think in terms of rosettacode.org tasks. For me, a disappointing aspect of the rosettacode.org

Re: [Jprogramming] J Kernel

2014-09-07 Thread Kyle M. Rudden
er 07, 2014 12:09 PM To: Programming forum Subject: Re: [Jprogramming] J Kernel Note that the https://wiki.python.org/moin/SimplePrograms examples do not actually work. It's not that they are incorrect - it's that they assume various things about the environment which a beginner has to

Re: [Jprogramming] J Kernel

2014-09-07 Thread Raul Miller
Note that the https://wiki.python.org/moin/SimplePrograms examples do not actually work. It's not that they are incorrect - it's that they assume various things about the environment which a beginner has to overcome before they can run them. (You need to install python, you need to know how to get

Re: [Jprogramming] J Kernel

2014-09-07 Thread Henry Rich
om Cc: Sent: Sunday, September 7, 2014 5:35 AM Subject: Re: [Jprogramming] J Kernel Minimal Beginning J fills an important gap. One I had on my list to fill urgently -- but Devon's got there first, with a surprisingly simple starter set. Good Work, Devon! Initially I was tempted to second

Re: [Jprogramming] J Kernel

2014-09-07 Thread 'Pascal Jasmin' via Programming
] J Kernel Minimal Beginning J fills an important gap. One I had on my list to fill urgently -- but Devon's got there first, with a surprisingly simple starter set. Good Work, Devon! Initially I was tempted to second-guess Devon by tweaking his list. Soon I was convinced that if somebody

Re: [Jprogramming] J Kernel

2014-09-07 Thread Ian Clark
Minimal Beginning J fills an important gap. One I had on my list to fill urgently -- but Devon's got there first, with a surprisingly simple starter set. Good Work, Devon! Initially I was tempted to second-guess Devon by tweaking his list. Soon I was convinced that if somebody could improve upon i

Re: [Jprogramming] J Kernel

2014-09-03 Thread Scott Locklin
Nice work, Devon. One of the things I would like to do eventually is a sort of "J for Matlab/R programmers." I figure J is vastly more useful as a general purpose language than these, but it is also first rate for all kinds of numerics and mathematical applications. There is a large population

Re: [Jprogramming] J Kernel

2014-09-03 Thread Don Kelly
Fair enough- I was just entering comments from my perspective- Don Kelly On 02/09/2014 8:14 PM, Devon McCormick wrote: Not to be curt, but I put this page under my name because it's my own view of the most basic parts of J. Everyone is welcome to do the same. Please do so and feel free to inclu

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Not to be curt, but I put this page under my name because it's my own view of the most basic parts of J. Everyone is welcome to do the same. Please do so and feel free to include links to and from this page and others. You may wish to link to your own minimal set at the bottom of the relevant s

Re: [Jprogramming] J Kernel

2014-09-02 Thread Don Kelly
Some beginners do have math beyond +.-.*.%. If one knows what a logarithm is, and the assumption behind**monadic*^.* is the natural log-then why not*^* as it is related? Just put ^1 is 2.71828 If they don't know, then they are may not be interested in logarithms -certainly not for multipl

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Henry - I intend to link it into the beginner resources once I've settled on how it should look. Alex - I left out monadic ^ for lack of a good word. I'm not sure that "Exp(x)" or "exponentiation" is worth the clutter. On Tue, Sep 2, 2014 at 6:44 PM, Alex Giannakopoulos wrote: > Just a teeny

Re: [Jprogramming] J Kernel

2014-09-02 Thread Alex Giannakopoulos
Just a teeny thing, but if you are going to have both the monadic and the dyadic definitions for ^. then shouldn't you have the same for ^ ? Less confusion that way, plus a better insight into the way J uses dyads. On 2 September 2014 22:14, Henry Rich wrote: > What I meant was, arrange so G

Re: [Jprogramming] J Kernel

2014-09-02 Thread Henry Rich
What I meant was, arrange so Getting Started and NuVoc point to your page. Beginners should be able to make their way to one of those pages. Henry Rich On 9/2/2014 4:47 PM, Henry Rich wrote: Please link NuVoc, and Getting Started, to this. Henry Rich On 9/2/2014 12:36 PM, Skip Cave wrote:

Re: [Jprogramming] J Kernel

2014-09-02 Thread Henry Rich
Please link NuVoc, and Getting Started, to this. Henry Rich On 9/2/2014 12:36 PM, Skip Cave wrote: Devon, nice job of putting together a reduced set of primitives for rhe beginner. The only issue I see is the name. As a beginner, I would never think to find a set of most-commonly-used primitive

Re: [Jprogramming] J Kernel

2014-09-02 Thread robert therriault
Nice work Devon, I think that I would go with your instincts and leave } out, since it is considerably more complicated than the other parts of speech that you have included. It would complete the pair in a typographic sense, but I don't think that is a strong argument to include it. It also is

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Yes - in R, negative indexes remove the item with that (positive) index, e.g. from this R session (where ">" is the input prompt): > vv<-(1:5); > vv [1] 1 2 3 4 5 > vv[-3]; [1] 1 2 4 5 > vv[c(-2,-5)]; [1] 1 3 4 On Tue, Sep 2, 2014 at 3:23 PM, Vijay Lulla wrote: > Yes, that's what I meant. Tr

Re: [Jprogramming] J Kernel

2014-09-02 Thread Vijay Lulla
Yes, that's what I meant. Try selecting first and last n rows from data frame. Actually R's indexing ([) is very lax and can trump people (at least it has me) in strange ways. http://adv-r.had.co.nz/Subsetting.html How about subsetting with floats? J raises 'domain error'...R does...Numeric values

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
I think he means this by "mixing +ve and -ve": 0 1 _2 _1 { i.10 0 1 8 9 On Tue, Sep 2, 2014 at 2:50 PM, Joe Bogner wrote: > I also use { extensively (dyadic). I appreciate the challenge of > coming up with a minimal list. One criteria may be: can it be done > relatively easily with one of th

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
I thought of including { and probably will. The only thing that deterred me was thinking that I probably should also include } as well, to be complete, and this is a little more complex. On Tue, Sep 2, 2014 at 2:39 PM, Vijay Lulla wrote: > Just out of curiosity, why is { not included? I use i

Re: [Jprogramming] J Kernel

2014-09-02 Thread Joe Bogner
I also use { extensively (dyadic). I appreciate the challenge of coming up with a minimal list. One criteria may be: can it be done relatively easily with one of the other operations? For {, it's fairly easy to use {. and } For example: {. 3 }. 0 1 2 3 4 5 With a trivial case, the performanc

Re: [Jprogramming] J Kernel

2014-09-02 Thread Vijay Lulla
Just out of curiosity, why is { not included? I use it extensively for my J explorations. Also, it is much more regular and useful(flexible?) than indexing in other languages. For e.g., You cannot mix +ve and -ve indexes in R but it works as expected (at least for me) in J. Regardless, nice work.

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Based on Skip's suggestion, this page is now here - http://www.jsoftware.com/jwiki/DevonMcCormick/MinimalBeginningJ - and is titled "Minimal J for Beginners". On Tue, Sep 2, 2014 at 1:10 PM, Devon McCormick wrote: > Good point - I picked up the "J Kernel" label from the discussion. > > > On Tu

Re: [Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Good point - I picked up the "J Kernel" label from the discussion. On Tue, Sep 2, 2014 at 12:36 PM, Skip Cave wrote: > Devon, nice job of putting together a reduced set of primitives for rhe > beginner. The only issue I see is the name. As a beginner, I would never > think to find a set of most

Re: [Jprogramming] J Kernel

2014-09-02 Thread Skip Cave
Devon, nice job of putting together a reduced set of primitives for rhe beginner. The only issue I see is the name. As a beginner, I would never think to find a set of most-commonly-used primitives under the name "J Kernel" That actually sounds like a discussion of the internals of J, which is what

[Jprogramming] J Kernel

2014-09-02 Thread Devon McCormick
Based on some feedback from Greg Borota last year on his experiences learning J, I've put together a page on the J Wiki - http://www.jsoftware.com/jwiki/DevonMcCormick/JKernel - that has a few selected things from J on which a beginner can concentrate to avoid being overwhelmed by the language in f