Re: [Jprogramming] strange difference between }. and {:

2013-10-01 Thread km
J displays <1 2 and , <1 2 identically -- you can't tell from the display that the first is a scalar and the second is a one-element list. The utility bi below boxes the items of non-scalars but displays scalars the way J does. Experiment with this utility. Try bi i. 3 2 4 and bi <1 2 and bi

Re: [Jprogramming] strange difference between }. and {:

2013-10-01 Thread Brian Schott
I think the issue is due to the following difference. $ < 2 4 $ i.8 $ }. 2; < 2 4 $ i.8 1 On Wed, Oct 2, 2013 at 12:17 AM, Pascal Jasmin wrote: > I am taking the shape after I have opened the item. I'd expect it (the > insides) to be the same whether I got the item from }. or {:

Re: [Jprogramming] strange difference between }. and {:

2013-10-01 Thread bob therriault
Hey Pascal, You may be looking for symmetry where there is none. The following shows these monadic verbs are acting as the dictionary suggests. $ > 2; < 2 4 $ i.8 2 2 4 > 2; < 2 4 $ i.8 2 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 >@}. 2; < 2 4 $ i.8 NB. }. drops first item of argument, resulting

Re: [Jprogramming] strange difference between }. and {:

2013-10-01 Thread Pascal Jasmin
I am taking the shape after I have opened the item.  I'd expect it (the insides) to be the same whether I got the item from }. or {: - Original Message - From: Roger Hui To: Programming forum Cc: Sent: Wednesday, October 2, 2013 12:00:27 AM Subject: Re: [Jprogramming] strange differe

Re: [Jprogramming] strange difference between }. and {:

2013-10-01 Thread Roger Hui
Not so strange. }. and {: are not equivalent, even on 2-element lists. On Tue, Oct 1, 2013 at 8:56 PM, Pascal Jasmin wrote: >$ >@}. 2; < 2 4 $ i.8 > 1 2 4 >$ >@{: 2; < 2 4 $ i.8 > 2 4 > -- > For information about J fo

[Jprogramming] strange difference between }. and {:

2013-10-01 Thread Pascal Jasmin
   $ >@}.  2; < 2 4 $ i.8 1 2 4    $ >@{:  2; < 2 4 $ i.8 2 4 -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] JHS update available

2013-10-01 Thread Eric Iverson
JHS has basic support for D3 (Data Driven Graphics) built into the framework. See www.d3js.org). Currently only line and pie plots are supported. The D3 facilities are powerful and easy to use once you have basic familiarity with html5/javascript/jquery/d3. It will be easy to add additional plot t

Re: [Jprogramming] x: compatibility 32 and 64 bit

2013-10-01 Thread Pascal Jasmin
Just poking around randomly, it seems as though I get the mostly the same answers with x: and 21312313123123123123123123123x in J6 32 and 64. I'd assume there are tests that ensure identical results (?), and this applies to all versions and all supported platforms. With large enough number, a n