Re: [Jprogramming] problem matching boxed string

2014-02-16 Thread robert therriault
olor, so >> trailing spaces would be visible, and no clipboard issues. >> >> >> - Original Message - >> From: robert therriault >> To: Programming forum >> Cc: >> Sent: Friday, February 14, 2014 2:36:59 AM >> Subject: Re: [Jprogram

Re: [Jprogramming] problem matching boxed string

2014-02-16 Thread robert therriault
let > it be copied easily while taking less space? > > A simpler style for strings would be to just change the backcolor, so > trailing spaces would be visible, and no clipboard issues. > > > - Original Message - > From: robert therriault > To: Programming

Re: [Jprogramming] problem matching boxed string

2014-02-15 Thread Pascal Jasmin
color, so trailing spaces would be visible, and no clipboard issues. - Original Message - From: robert therriault To: Programming forum Cc: Sent: Friday, February 14, 2014 2:36:59 AM Subject: Re: [Jprogramming] problem matching boxed string Just to finish the job, here is a link to a

Re: [Jprogramming] problem matching boxed string

2014-02-14 Thread robert therriault
yte people/beginers the most. For instance >>> assuming that }. and {: produce identical results with 2 elements. >>>> >>>> So, if there was a way to only box-decorate items when there is a >>> leading 1 or 0 dimension, I think it would be very helpful without being

Re: [Jprogramming] problem matching boxed string

2014-02-12 Thread robert therriault
results with 2 elements. >>> >>> So, if there was a way to only box-decorate items when there is a >> leading 1 or 0 dimension, I think it would be very helpful without being as >> noisy. >>> >>> >>> - Original Message - >&g

Re: [Jprogramming] problem matching boxed string

2014-02-12 Thread Joe Bogner
at }. and {: produce identical results with 2 elements. > > > > So, if there was a way to only box-decorate items when there is a > leading 1 or 0 dimension, I think it would be very helpful without being as > noisy. > > > > > > ----- Original Message - > &g

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
. >> >> >> ----- Original Message - >> From: robert therriault >> To: Programming forum >> Cc: >> Sent: Tuesday, February 11, 2014 12:14:14 PM >> Subject: Re: [Jprogramming] problem matching boxed string >> >> Thanks Raul, >> >>

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
Original Message - > From: robert therriault > To: Programming forum > Cc: > Sent: Tuesday, February 11, 2014 12:14:14 PM > Subject: Re: [Jprogramming] problem matching boxed string > > Thanks Raul, > > I am currently working on the boxing display and you are right,

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
Hi Joe, I just posted the script at http://www.jsoftware.com/jwiki/http%3A/www.jsoftware.com/jwiki/BobTherriault/Visualize?action=AttachFile The address makes me think I have made a complete mess of the process but if you get the attachment and run it under jhs 701 you should be able to play

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread Ric Sherlock
tems when there is a leading > 1 or 0 dimension, I think it would be very helpful without being as noisy. > > > - Original Message - > From: robert therriault > To: Programming forum > Cc: > Sent: Tuesday, February 11, 2014 12:14:14 PM > Subject: Re: [Jprogramm

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread Pascal Jasmin
ebruary 11, 2014 12:14:14 PM Subject: Re: [Jprogramming] problem matching boxed string Thanks Raul, I am currently working on the boxing display and you are right, it does present some different challenges. My plan is to have the script on the wiki for general amusement later this afternoon. I hav

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
Thanks Raul, I am currently working on the boxing display and you are right, it does present some different challenges. My plan is to have the script on the wiki for general amusement later this afternoon. I have put this together as a way to see the results of the language in a way that I foun

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
Thanks Joe, Even though the last thing the world needs is anyone following my code style, my plan is to give my script a quick once over and post as in at the jwiki. Currently, I am working on displaying boxes and although I have made some progress, I am not all the way there. I'll post when it

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread Raul Miller
This looks promising. I currently have two quibbles which you might want to reject: First, the additional markup seems to get in the way for some typical cases. I can see the need for leading 1 dimensions and embedded zero dimensions. I understand the idea of consistent display of information, bu

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread Joe Bogner
On Tue, Feb 11, 2014 at 10:21 AM, robert therriault wrote: > Just an update on the visualization of J results. > > I have done a second video/blog post on using CSS and HTML to display > results on JHS. It provides examples of a system that allows you to > distinguish between 1 $ 1 , 1 1 $1 , and

Re: [Jprogramming] problem matching boxed string

2014-02-11 Thread robert therriault
Just an update on the visualization of J results. I have done a second video/blog post on using CSS and HTML to display results on JHS. It provides examples of a system that allows you to distinguish between 1 $ 1 , 1 1 $1 , and 1 as well as displaying arrays with zeros in the shape such as 0

Re: [Jprogramming] problem matching boxed string

2014-02-04 Thread robert therriault
On Feb 4, 2014, at 5:29 AM, Raul Miller wrote: > > Of course you will also get an error if you try to combine one of > those with another array of the wrong shape. Error conditions are one > of the cases where I like getting the shapes of arrays. > Sometimes the zeros can affect the result ev

Re: [Jprogramming] problem matching boxed string

2014-02-04 Thread Raul Miller
Zeros in the shape are a bit strange, yes. If the only zero is in the last element of the shape you will a blank line (or blank lines) based on the rest of the shape, but you have no idea of rank. If you have any zeros anywhere else in the shape you will get an entirely empty display which conveys

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread robert therriault
Raul, One of the challenges I have found is in shapes with more than one zero value, because that second layer of nothingness is difficult to distinguish. I think by enclosing the shapes appropriately, this can be done, but not by text alone. It reminds me of the last verse of "The Snow Man" by

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread Raul Miller
On Mon, Feb 3, 2014 at 6:19 PM, Pascal Jasmin wrote: > In terms of distinguishing arrays, the key visual effect should be based on > "is there some leading unobvious rank information?" More specifically, leading 1 dimensions are invisible (and so is "type information"), by default. (i.6)+i.1

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread Pascal Jasmin
erriault To: Programming forum Cc: Sent: Monday, February 3, 2014 5:13:46 PM Subject: Re: [Jprogramming] problem matching boxed string Thanks Pascal, I think that 1 6 $ i.6 and 6 $ i. 6 are probably the most commonly confused, but the displays of 1 1 6 $ i.6 and 1 1 1 6 $ i.6 also look the

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread robert therriault
most useful feature would be > distinguing between 1 6 $ i.6 and 6 $ i.6. > > > - Original Message - > From: robert therriault > To: Programming forum > Cc: > Sent: Monday, February 3, 2014 10:28:52 AM > Subject: Re: [Jprogramming] problem matching boxed string &

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread Pascal Jasmin
: robert therriault To: Programming forum Cc: Sent: Monday, February 3, 2014 10:28:52 AM Subject: Re: [Jprogramming] problem matching boxed string As a bit of a response to the whole question of what we see and what we get, I put together some html and css that allows a view of J results on JHS

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread Raul Miller
You are reminding me of a variety of issues. I remember, when I was first learning APL, that I was frustrated with how inefficient APL was at doing what I might call streaming IO, or what I might call wart-for-wart emulation of ad-hoc code. I also remember how kx.com's languages deal with this is

Re: [Jprogramming] problem matching boxed string

2014-02-03 Thread robert therriault
As a bit of a response to the whole question of what we see and what we get, I put together some html and css that allows a view of J results on JHS that gives type information implicitly in the display. I think the blog post and demo video gives the flavour of the journey. http://bobtherriault

Re: [Jprogramming] problem matching boxed string

2014-01-20 Thread Joe Bogner
Makes perfect sense now. The atom vs list distinction wasn't clicking earlier. I had become so used to working with arrays that everything became an array and I had completely forgotten about scalars. The dictionary entry on nouns also covers it well, http://www.jsoftware.com/help/dictionary/dicta

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
I'd say forget the binary representation. The primitives, namely ;: u;.n u\ u\. u/. produce lists even when there is only one item in the partition. Very regular. The anomalous case stems from simple old keyboard entry. You ran into trouble from 'a';'bcd' because 'a' creates an atom, wh

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Joe Bogner
Roger & Henry - Thank you for the explanations I had a feeling that the arrays were structurally different but I couldn't figure out how to tell. I also narrowed it down to my use of cut. I will study that to understand further These were the ways I tried to look before ]a=:('a';'bcd') ┌─┬───┐

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Roger Hui
The following may be helpful: Arrays that "look" the same may not be the same. For example, the following arrays all "look" the same but all differ from each other: 123 ,123 '123' 1 1$123 1 1 1 1$123 1 3$'123' 1 1 1 3$'123' '123' If you stand behind the shoulders of an J/APL programmer debu

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
Strings match only if they have the same shape and the same values. (,'=') -: '=' 0 but look: (,'=') = '=' 1 It's a totally different question. You are asking if the atoms match. The answer is a list rather than a single boolean yes/no: $ (,'=') = '=' 1 Henry Rich On 1/19/2014

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Joe Bogner
That worked. Thank you very much for the reply. I am relieved. I don't understand it though and I can't recall seeing it covered anywhere. If anyone can share a reference or can explain why it applies in the case of my ll example but not the case of (<'=') i. ('=';'=';'=.';'=.') that would be gre

Re: [Jprogramming] problem matching boxed string

2014-01-19 Thread Henry Rich
It's the ranks of the strings. Try (<,'=') i. ll Henry Rich On 1/19/2014 4:39 PM, Joe Bogner wrote: Apologies for the trivial question. I've been banging my head against the table for 45 minutes on it. I have a list of strings that aren't behaving like they should. They were grabbed from a l