Re: [Jprogramming] Contests & Hackatons

2013-01-11 Thread Linda Alvord
Good Grief Charlie Brown! You're searing again! ssc=: 13 :'(+/.*|.)>:#y' ssc 'abcd' 25 sscr=: 13 :'{:+/\>:i.#y' sscr 'abcd' 10 Linda -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of David Ward

Re: [Jprogramming] ARE: xkcd 356

2013-01-11 Thread Raul Miller
On Thu, Jan 10, 2013 at 11:07 PM, Don & Cathy Kelly wrote: > A wee bit of a mix up between what I said and what Aai said (no 'quotes' > appeared to distinguish between the two). > the 9:23 message was from Aai but the > > f=: 13 : '+/-: %>: +:i.y' > > and the result corresponds to a specific imm

Re: [Jprogramming] Contests & Hackatons

2013-01-11 Thread Devon McCormick
Just as well since the problems there had a habit of being over-specified, usually to the detriment of J as they required a specific, highly-scalar solution. On Thu, Jan 10, 2013 at 2:03 PM, Raul Miller wrote: > http://alioth.debian.org/ probably constitutes a contest. > > Once upon a time, J w

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Roger Hui
It is not a bug and the following sequence illustrates why the behavior is reasonable: (n$0) , i. 2 2 [ n=: 3 0 0 0 0 1 0 2 3 0 (n$0) , i. 2 2 [ n=: 2 0 0 0 1 2 3 (n$0) , i. 2 2 [ n=: 1 0 0 0 1 2 3 (n$0) , i. 2 2 [ n=: 0 0 0 0 1 2 3 On Fri, Jan 11, 2013 at 8:52 AM, Steven Taylor

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Steven Taylor
thanks for the reply. I can see that this is consistent for rank 2 and above. The rank 1 case is the bit that isn't making sense to me right now. (n$0) , i. 2 [ n=: 0 0 1 (n$0) , i. 2 [ n=: 1 0 0 1 -- For information abou

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Roger Hui
Try this: if you join a length-m vector to a length-n vector, the resultant vector has length m+n. Make sense? The statement remains true when m or n or both are 0. On Fri, Jan 11, 2013 at 9:11 AM, Steven Taylor wrote: > thanks for the reply. I can see that this is consistent for rank 2 and

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Steven Taylor
Maybe this is just a way to deal with fill behaviour? In which case, 2 cases to remember is easier than three. Sounds like this is a deliberate choice. Does this come across from APL? (0 $ 0),!._. (i.2 2) _. _. 0 1 2 3 (1 $ 0),!._. (i.2 2) 0 _. 0 1 2 3 On 11 January 2013 17:14,

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Raul Miller
This is a deliberate choice. http://www.jsoftware.com/help/dictionary/d320.htm And, APL had different behaviors in different contexts, so to some degree the J choices are based on introducing consistency where APL was inconsistent and/or based on simplifying the syntax of the language. Other asp

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Dan Bron
In J, we think in terms of items. We use items to represent fundamental concepts in our programs, such as a person (name, age, gender) or a stock transaction (instrument, quantity, direction, price) or a ledger entry (asset, liability, total) or a point in a plane (x, y) or anything else with s

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Graham Parkhouse
(0 2$0),i.2 2 0 1 2 3 On Fri, 11 Jan 2013 09:00:42 -0800 Roger Hui wrote: > It is not a bug and the following sequence illustrates why the behavior > is > reasonable: > >(n$0) , i. 2 2 [ n=: 3 > 0 0 0 > 0 1 0 > 2 3 0 >(n$0) , i. 2 2 [ n=: 2 > 0 0 > 0 1 > 2 3 >(n$0) , i. 2 2 [

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread penny1482
I have not tried to use J since J402, but I still/get the blog. I LOVE Dan's exposition, wish I had it back in 402 days. Dick Penny - Original Message - From: "Dan Bron" To: [email protected] Sent: Friday, January 11, 2013 2:26:11 PM Subject: Re: [Jprogramming] j

[Jprogramming] What impedes developers' productivity?

2013-01-11 Thread Devon McCormick
There's a Slashdot discussion going on right now about what impedes the productivity of developers. One person mentioned "Strong typing" but no one has pointed out the problem with compiled languages. It's here: http://ask.slashdot.org/story/13/01/11/1850227/ask-slashdot-what-practices-impede-dev

Re: [Jprogramming] ARE: xkcd 356

2013-01-11 Thread Don & Cathy Kelly
It does assume that the reader knows what it is all about. For learning it is veryy skimpy. A more thorough reference is: http://nptel.iitm.ac.in/courses/Webcourse-contents/IIT-KANPUR/machine/ui/chap3.pdf The advantage of the Ybus is that it is easy to build -just choose a reference node an

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Roger Hui
And what is the point of your example please? If you append an m-item table to an n-item one the resultant table has m+n items. That works when m or n or both are 0. No surprise here. In the original example a list is appended to a table. The list is treated as a one-row table. On Fri, Jan

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread greg heil
Dan Bron" Said: Friday, January 11, 2013 2:26:11 PM In: Re: [Jprogramming] joining to an empty list > ...It's not possible to have "ragged" arrays in J... That inability is a huge hole in the language. Most other languages (such as k) deal with this more or less adequately. One could illustrate

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Raul Miller
On Fri, Jan 11, 2013 at 7:38 PM, greg heil wrote: > Dan Bron" Said: Friday, January 11, 2013 2:26:11 PM In: > Re: [Jprogramming] joining to an empty list > >> ...It's not possible to have "ragged" arrays in J... > > That inability is a huge hole in the language. Most other languages > (such as k)

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Steven Taylor
... apologies for indulging in minutia. However, often doing this with J reveals hidden clarity. I do like to understand edge cases. the context is a bug I found in my code when an empty set turns up (rare). Up until that point I hadn't tried that out. Although the unit test may appear non non

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Linda Alvord
I don't understand why f and g do not agree? #&>'one';'two';'three' 3 3 5 f=: 13 :'#&>y' f 'one';'two';'three' 3 3 5 NB. Compose: u&v y ↔ u v y g=: 13 :'#>y' g=: 13 :'#>y' g 'one';'two';'three' 3 Linda -Original Message- From: programming-boun...@fo

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Raul Miller
On Fri, Jan 11, 2013 at 10:07 PM, Linda Alvord wrote: > I don't understand why f and g do not agree? Because they are doing something different. >#&>'one';'two';'three' > 3 3 5 >f=: 13 :'#&>y' >f 'one';'two';'three' > 3 3 5 f counts the number of items in each box. >NB. Com

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Linda Alvord
Help please! If I press "reply in Microsoft Outlook I get locked into this look. How can I get whatever it is turned off. Writing is huge. It applies to all messages. Linda -Original Message- From: [email protected] [mailto:[email protected]

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Linda Alvord
Fortunately it shows up in my sent messages in small print. Linda -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Raul Miller Sent: Friday, January 11, 2013 10:14 PM To: [email protected] Subject: Re

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Linda Alvord
It seems to be a feature for someone with bad eyesight. Linda -Original Message- From: [email protected] [mailto:[email protected]] On Behalf Of Linda Alvord Sent: Saturday, January 12, 2013 2:19 AM To: [email protected] Subject: Re: [

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Linda Alvord
My issue is with the vocabulary. Here is compose: u&v y ↔ u v y . Thus +:&- 7 is _14 (double the negation). Moreover, the monads u&v and u@v are equivalent. f=: 13 :'#&>y' f 'one';'two';'three' 3 3 5 g=: 13 :'#>y' g 'one';'two';'three' 3 I play the part of a perpetual beginner.