Custom Search
|
Date: August 31, 2006
From: Oleg Kobchenko <olegykj@xxxxxxxxx>
In-reply-to:
<015e01c6cd4a$bfb6f3b0$6501a8c0@DD342W61
>
References:
<015e01c6cd4a$bfb6f3b0$6501a8c0@DD342W61
>
Also (-. -.@~: # ]) 'eleemosynary' lmosnar #;:'-. -.@~: # ]' 6 #;:'] #~ i.~ = i:~' 8 --- Henry Rich <HenryHRich@xxxxxxxxx> wrote: > No, I didn't. That's a good one. Works without the ] too. Yes. > Henry Rich > > > -----Original Message----- > > From: programming-bounces@xxxxxxxxxxxxx > > [mailto:programming-bounces@xxxxxxxxxxxxx] On Behalf Of Roger Hui > > Sent: Thursday, August 31, 2006 6:10 PM > > To: Programming forum > > Subject: Re: [Jprogramming] Incomplete specification of monad ~: > > > > Did you know: > > > > (] #~ i.~ = i:~) 'eleemosynary' > > lmosnar > > > > That is, the items of the argument that are unique. > > > > >From the i: page of the dictionary > > http://www.jsoftware.com/books/help/dictionary/dico.htm > > > > > > > > ----- Original Message ----- > > From: Roger Hui <rhui000@xxxxxxx> > > Date: Thursday, August 31, 2006 11:42 am > > Subject: Re: [Jprogramming] Incomplete specification of monad ~: > > > > > If I say anything more, I would be more inclined > > > to say > > > b is (i.@# = i.~) y > > > than > > > #.b is maximized > > > > > > > > > > > > ----- Original Message ----- > > > From: Henry Rich <HenryHRich@xxxxxxxxx> > > > Date: Thursday, August 31, 2006 9:14 am > > > Subject: [Jprogramming] Incomplete specification of monad ~: > > > > > > > ~:y is the boolean list b such that b#y is the nub of y > > > > > > > > > > > > This is incomplete. There may be many possible values > > > > of b that qualify; ~: produces the one such that #. b > > > > is maximized. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
See also: http://www.jsoftware.com/jwiki/Essays/Reflexive ----- Original Message ----- From: Kip Murray <km@xxxxxxxxxxx> Date: Thursday, August 31, 2006 5:35 am Subject: Re: [Jprogramming] Symmetric inner and outer products ... > About matrices, Gilbert Strang comments in Linear Algebra and Its > Applications: > > "Symmetric matrices appear in every subject whose laws are fair. > 'Each > action has an equal and opposite reaction.' The entry a_ij that > gives > the action of i onto j is matched by a_ji." ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Henry Rich" <HenryHRich@xxxxxxxxx>
In-reply-to:
<42b324442b22f3.42b22f342b3244@xxxxxxx>
References:
<42b324442b22f3.42b22f342b3244@xxxxxxx>
It appears to me that E. on multidimensional arrays fails when x has a different numeric type from y: (,: 0 1) E. i. 4 4 NB. Error, Boolean x, integer y 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (,: 0 1 2) E. i. 4 4 NB. OK, Integer x, integer y 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (,: <. 0.1 + 0 1) E. i. 4 4 NB. OK, Integer x, integer y 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Looks like it's OK on lists. Henry Rich ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Henry Rich" <HenryHRich@xxxxxxxxx>
In-reply-to:
<43c4ab243c3a91.43c3a9143c4ab2@xxxxxxx>
References:
<43c4ab243c3a91.43c3a9143c4ab2@xxxxxxx>
No, I didn't. That's a good one. Works without the ] too. Henry Rich > -----Original Message----- > From: programming-bounces@xxxxxxxxxxxxx > [mailto:programming-bounces@xxxxxxxxxxxxx] On Behalf Of Roger Hui > Sent: Thursday, August 31, 2006 6:10 PM > To: Programming forum > Subject: Re: [Jprogramming] Incomplete specification of monad ~: > > Did you know: > > (] #~ i.~ = i:~) 'eleemosynary' > lmosnar > > That is, the items of the argument that are unique. > > >From the i: page of the dictionary > http://www.jsoftware.com/books/help/dictionary/dico.htm > > > > ----- Original Message ----- > From: Roger Hui <rhui000@xxxxxxx> > Date: Thursday, August 31, 2006 11:42 am > Subject: Re: [Jprogramming] Incomplete specification of monad ~: > > > If I say anything more, I would be more inclined > > to say > > b is (i.@# = i.~) y > > than > > #.b is maximized > > > > > > > > ----- Original Message ----- > > From: Henry Rich <HenryHRich@xxxxxxxxx> > > Date: Thursday, August 31, 2006 9:14 am > > Subject: [Jprogramming] Incomplete specification of monad ~: > > > > > ~:y is the boolean list b such that b#y is the nub of y > > > > > > > > > This is incomplete. There may be many possible values > > > of b that qualify; ~: produces the one such that #. b > > > is maximized. > > > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
Did you know: (] #~ i.~ = i:~) 'eleemosynary' lmosnar That is, the items of the argument that are unique. >From the i: page of the dictionary http://www.jsoftware.com/books/help/dictionary/dico.htm ----- Original Message ----- From: Roger Hui <rhui000@xxxxxxx> Date: Thursday, August 31, 2006 11:42 am Subject: Re: [Jprogramming] Incomplete specification of monad ~: > If I say anything more, I would be more inclined > to say > b is (i.@# = i.~) y > than > #.b is maximized > > > > ----- Original Message ----- > From: Henry Rich <HenryHRich@xxxxxxxxx> > Date: Thursday, August 31, 2006 9:14 am > Subject: [Jprogramming] Incomplete specification of monad ~: > > > ~:y is the boolean list b such that b#y is the nub of y > > > > > > This is incomplete. There may be many possible values > > of b that qualify; ~: produces the one such that #. b > > is maximized. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
Dan Bron wrote: > Any other sneak attacks? Against what? A person might use system defined names, for example. And/or, a person might construct a gerund "manually". In these sorts of cases you can wind up performing socket actions without including !: in the code. Of course, all such activities take some programming, and for many problems these approaches are not worthwhile. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Dan Bron <jf@xxxxxxxxx>
In-reply-to:
<B5AF5BC3CAAF6C44865B9BF0E0C569370505B3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References:
<B5AF5BC3CAAF6C44865B9BF0E0C569370505B3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
write
>J code which downloads and executes code
You can't download code from elsewhere without !: .
> ({~ }.&.":) '* -.2|!/~i.8'
Hey, never thought of using ":^:_1 to subvert the rules. Good one! Ok,
without __invoking__ in any way, ". !: or : . Just to be explicit, ":^:_1
(called by &.": ) invokes ". . To wit:
": b. _1
".
Any other sneak attacks?
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Oleg Kobchenko <olegykj@xxxxxxxxx>
In-reply-to:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
References:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
It's good for manual entry by human, though rows
are not very visible. For processing in code,
such may be considered:
P=: ' PNBRQKpnbrqk'
cmax=: [^:(>&(a.&i.))"0
charboard=: 1j1 #"1 (' .'{~2|+/~i.8) cmax~ ]
$BEGIN=: (,|.@toupper) ' ',~' ',~'rnbqkbnr',:'p'
8 8
charboard BEGIN NB. character display
r n b q k b n r
p p p p p p p p
. . . .
. . . .
. . . .
. . . .
P P P P P P P P
R N B Q K B N R
There is also a new J Wiki page for bitmap layout
http://www.jsoftware.com/jwiki/Scripts/Chess_Generator
--- Roger Hui <rhui000@xxxxxxx> wrote:
> See my user page on the Wikipedia:
> http://en.wikipedia.org/wiki/User:Roger_Hui
> The syntax is explained in:
> http://commons.wikimedia.org/wiki/Standard_chess_diagram
>
> The chess diagrams you see on my user page are
> generated with the following code:
>
> {{Chess diagram small|=|tleft|
> | | | | | | |ql| |=
> | |ql| | | | | | |=
> | | | | | |ql| | |=
> | | |ql| | | | | |=
> |ql| | | | | | | |=
> | | | | | | | |nl|=
> | | | |nl|nl| | |nl|=
> | | | | |nl| | | |=
> |
> }}
>
> {{Chess diagram small|=||
> | | | | | | |nl|nl|=
> | | | |ql| | | | |=
> | |ql| | | | | | |=
> | | | | | | |nl|nl|=
> | | | | | | | |nl|=
> |ql| | | | | | | |=
> | | |ql| | | | | |=
> | | | | | |ql| | |=
> |
> }}
>
>
>
> ----- Original Message -----
> From: Björn Helgason <gosinn@xxxxxxxxx>
> Date: Thursday, August 31, 2006 0:07 am
> Subject: Re: [Jprogramming] Dealing a bridge hand
>
> ...
> And on a similar topic - do you know how to get the chess pieces
> to display
> like you do with the cards?
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Björn Helgason" <gosinn@xxxxxxxxx>
In-reply-to:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
References:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
This is very interesting It would also benefit from Olegs methods of creating graphics directly from J 2006/8/31, Roger Hui <rhui000@xxxxxxx>:
See my user page on the Wikipedia: http://en.wikipedia.org/wiki/User:Roger_Hui The syntax is explained in: http://commons.wikimedia.org/wiki/Standard_chess_diagram The chess diagrams you see on my user page are generated with the following code: {{Chess diagram small|=|tleft| | | | | | | |ql| |= | |ql| | | | | | |= | | | | | |ql| | |= | | |ql| | | | | |= |ql| | | | | | | |= | | | | | | | |nl|= | | | |nl|nl| | |nl|= | | | | |nl| | | |= | }} {{Chess diagram small|=|| | | | | | | |nl|nl|= | | | |ql| | | | |= | |ql| | | | | | |= | | | | | | |nl|nl|= | | | | | | | |nl|= |ql| | | | | | | |= | | |ql| | | | | |= | | | | | |ql| | |= | }} ----- Original Message ----- From: Björn Helgason <gosinn@xxxxxxxxx> Date: Thursday, August 31, 2006 0:07 am Subject: Re: [Jprogramming] Dealing a bridge hand ... And on a similar topic - do you know how to get the chess pieces to display like you do with the cards? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Skype: gosiminn, gsm: +3546985532 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Björn Helgason" <gosinn@xxxxxxxxx>
In-reply-to:
<20060831085849.30453.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<4031fef0608310007p2ca0bb12pe7b1e1d2749832eb@xxxxxxxxxxxxxx> <20060831085849.30453.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
I tried to use your f_save'' I first needed to create the folder cards Also a point to note is that you may not close the f window before running f_save After that it worked great This is super!! 2006/8/31, Oleg Kobchenko <olegykj@xxxxxxxxx>:
J Wiki does not allow BMP attachments. So I extended the instructions how to download the PNG attachment and convert it to BMP. http://www.jsoftware.com/jwiki/Scripts/Cards_Generator It is also possible to use the f_save'' to save the generated cards as bitmap in correct location. --- Björn Helgason <gosinn@xxxxxxxxx> wrote: > Where do I get cards28x40.png? > Or better still cards28x40.bmp? > > And on a similar topic - do you know how to get the chess pieces to display > like you do with the cards? > > 2006/8/31, Oleg Kobchenko <olegykj@xxxxxxxxx>: > > > > You need to have the bmp file beforehand. > > The easiest way is to download the cards28x40.png, > > open it in your favorite image viewer/editor as > > same as cards28x40.bmp. > > > > --- Björn Helgason <gosinn@xxxxxxxxx> wrote: > > > > > F=: readbmp jpath'~user/cards/cards28x40.bmp' > > > > > > is missing > > > > > > length error: script > > > | C=:,/}:"_1]0 3 2 1{(,:~40 28) ];.3 F > > > |[-5] c:\j601\temp\21.ijs > > > F > > > file read error > > > > > > > > > > > > 2006/8/30, Oleg Kobchenko <olegykj@xxxxxxxxx>: > > > > > > > > There is an update to the card generator with > > > > an example of dealing a table of bridge. > > > > > > > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > > > > > > > > > > > --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote: > > > > > > > > > I have published a script that generates a deck > > > > > of cards at a small size both for Pocket PC and i > > > > > nteractive compositing for display with `viewrgb` etc. > > > > > > > > > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > > > > > > > > > It is not necessary to re-run the script, instead the > > > > > resulting bitmap can be used with `readbmp`. > > > > > The picutre layout allows partially covered stacking. > > > > > I hope that with some auxiliary verbs it would be > > > > > possible to pack such subsets in an image and > > > > > display various arrangements. > > > > > > > > > > > > > > > --- Roger Hui <rhui000@xxxxxxx> wrote: > > > > > > > > > > > Björn meant presenting the bridge hands using the > > > > > > card images as in Solitarie. > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx> > > > > > > Date: Tuesday, August 29, 2006 4:29 pm > > > > > > Subject: RE: [Jprogramming] Dealing a bridge hand > > > > > > > > > > > > > Björn Helgason wrote: > > > > > > > > More interesting would be to see the hand using the cards > > > > > > > > used by Solitaire or similar. > > > > > > > > > > > > > > For example? > > > > > > > > > > > > > > (There seem to be hundreds of differing sets of rules for > > > > > > > Solitaire, and no standardized representation for the > > > > > > > initial state of a Solitaire game.) > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > > > http://mail.yahoo.com > > > > > > > ---------------------------------------------------------------------- > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > > http://mail.yahoo.com > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > -- > > > Björn Helgason, Verkfræðingur > > > Fugl&Fiskur ehf, Þerneyjarsund 23, > > > Skype: gosiminn, gsm: +3546985532 > > > 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx > > > Landslags og skrúðgarðagerð, gröfuþjónusta > > > http://groups.google.com/group/J-Programming > > > > > > > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari > > einfaldleikans > > > > > > góður kennari getur stigið á tær án þess að glansinn fari af skónum > > > /|_ .-----------------------------------. > > > ,' .\ / | Með léttri lund verður | > > > ,--' _,' | Dagurinn í dag | > > > / / | Enn betri en gærdagurinn | > > > ( -. | `-----------------------------------' > > > | ) | (\_ _/) > > > (`-. '--.) (='.'=) > > > `. )----' (")_(") > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > Björn Helgason, Verkfræðingur > Fugl&Fiskur ehf, Þerneyjarsund 23, > Skype: gosiminn, gsm: +3546985532 > 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx > Landslags og skrúðgarðagerð, gröfuþjónusta > http://groups.google.com/group/J-Programming > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans > > góður kennari getur stigið á tær án þess að glansinn fari af skónum > /|_ .-----------------------------------. > ,' .\ / | Með léttri lund verður | > ,--' _,' | Dagurinn í dag | > / / | Enn betri en gærdagurinn | > ( -. | `-----------------------------------' > | ) | (\_ _/) > (`-. '--.) (='.'=) > `. )----' (")_(") > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Skype: gosiminn, gsm: +3546985532 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
If I say anything more, I would be more inclined to say b is (i.@# = i.~) y than #.b is maximized ----- Original Message ----- From: Henry Rich <HenryHRich@xxxxxxxxx> Date: Thursday, August 31, 2006 9:14 am Subject: [Jprogramming] Incomplete specification of monad ~: > ~:y is the boolean list b such that b#y is the nub of y > > > This is incomplete. There may be many possible values > of b that qualify; ~: produces the one such that #. b > is maximized. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
Dan Bron wrote:
> 'Sides, I'd be more impressed with someone who could make an
> arbitrary J sentence execute using a constant number of tokens...
Trivial to do with constant number of characters: write
J code which downloads and executes code from some other
location. Include a half dozen characters in the
url to select the particular bit of code to run and
you've the potential of far more applications than anyone
would want to see in forum posts.
> ... (without resorting to ". : or !:) ...
Excluding useful primitives makes things harder, but not
impossible. Consider, as an example of what can be done
without the presence of those three primitives:
({~ }.&.":) '* -.2|!/~i.8'
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Dan Bron <jf@xxxxxxxxx>
In-reply-to:
<432e463432d383.432d383432e463@xxxxxxx>
References:
<432e463432d383.432d383432e463@xxxxxxx>
Roger wrote: > Or just post "interesting" solutions to problems. The point is, in a contest, one wants to have an unambigous winner. When a question is not explicitly a contest, individual taste will suffice, but a contest should declare a winner, and it needs a metric to determine one. If the metric is subverted, the next contest will tighten the rules. Which, in this case, will have a useful outcome: a comprehensive list of everything that can make a J script non-deterministic. It's a goal unto itself. 'Sides, I'd be more impressed with someone who could make an arbitrary J sentence execute using a constant number of tokens (without resorting to ". : or !:) than a person who could generate a Sierpinski triangle in 5 characters less. -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
As I said yesterday: Or just post "interesting" solutions to problems. Forum readers can decide for themselves which are the interesting attributes. - number of characters - number of tokens - time - space - innovative use of the language - elegance - etc. That is, the "rules" as they have been all along. ----- Original Message ----- From: greg heil <gheil.j@xxxxxxxxx> Date: Thursday, August 31, 2006 9:29 am Subject: Re: [Jprogramming] Re: Sierpinski triangle > On 8/31/06, Roger Hui <rhui000@xxxxxxx> wrote: > > However, comb takes time and space linear in the size of the > result whereas comb1 takes exponential. Yet comb1 would have been > preferred according to the "number of characters" criterion. > > Switching to a words criteria would not affect that. Any one > dimensional valuation will have the same kind of deficits. ... unless > there is a robust "market" of intelligent "bidders" which backs a > "price" valuation. Even so some "bidders" will have variations in > "preferences". And most "markets" have "externalities" which are not > fully "costed". > > A measure based on actual storage costs and easily evaluated has some > constancy which supports a broad valuation of solution classes. In a > sense the character metric is one of the broadest and most convenient. > Metrics based on performance are either inexact (eg big O) or have > constricting architectural assumptions (counting assembly language > ops), and can be hard to evaluate. Characters are simple and broadly > understood. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
The dictionary description on /: is a specification and not a prescription on how to implement it. The fact that /: (i.1e6),"1 0 ]33 11 44 22 1 3 0 2 gives the correct answer is a pretty good indication that the base value is not used in the implementation. ----- Original Message ----- From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx> Date: Thursday, August 31, 2006 8:40 am Subject: RE: [Jprogramming] Grade Up/Down with tables > June Kim wrote: > > What does "base" mean here? > > #. > > > For example, > > /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > > 3 1 1 8 3 > > 3 1 4 1 6 > > 6 1 8 0 3 > > > > What is the base value of the rows in this case(and why twice the > > magnitude of any of the elements)? > > x=.3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > >:+:>./,|x > 17 > /: x > 1 0 2 > /:17#.x > 1 0 2 > > Twice, to allow for negative numbers. > > That said, the sorting algorithm probably does not use 17 in > this case. It probably "uses" 2^32. > > More generally, I expect that internally the base value > primitive is not being used -- this would be slow, and > would cause precision problems, with floating point arrays. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "greg heil" <gheil.j@xxxxxxxxx>
In-reply-to:
<431110a4311ad3.4311ad3431110a@xxxxxxx>
References:
<431110a4311ad3.4311ad3431110a@xxxxxxx>
On 8/31/06, Roger Hui <rhui000@xxxxxxx> wrote:
However, comb takes time and space linear in the size of the result whereas comb1 takes exponential. Yet comb1 would have been preferred according to the "number of characters" criterion.
Switching to a words criteria would not affect that. Any one dimensional valuation will have the same kind of deficits. ... unless there is a robust "market" of intelligent "bidders" which backs a "price" valuation. Even so some "bidders" will have variations in "preferences". And most "markets" have "externalities" which are not fully "costed". A measure based on actual storage costs and easily evaluated has some constancy which supports a broad valuation of solution classes. In a sense the character metric is one of the broadest and most convenient. Metrics based on performance are either inexact (eg big O) or have constricting architectural assumptions (counting assembly language ops), and can be hard to evaluate. Characters are simple and broadly understood. ~greg ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
The dictionary description is one way to avoid having to describe what a major sort key is. ----- Original Message ----- From: Henry Rich <HenryHRich@xxxxxxxxx> Date: Thursday, August 31, 2006 8:39 am Subject: RE: [Jprogramming] Grade Up/Down with tables > All this means is that the first item in each row is the > major sort key, followed by the second item, and so on. > > The base value is the single number you would get from applying > # to the row. In your example, you could use > > 20 #. 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > 489626 488563 971203 > > as the values to be sorted. > > The base needs to be more than twice the magnitude to make sure > that 0 10 is less than 1 _10 for example. > > Henry Rich > > > > -----Original Message----- > > From: programming-bounces@xxxxxxxxxxxxx > > [programming-bounces@xxxxxxxxxxxxx] On Behalf Of June Kim > > Sent: Thursday, August 31, 2006 11:34 AM > > To: Programming forum > > Subject: [Jprogramming] Grade Up/Down with tables > > > > >From J Dictionary: > > > > <quote> > > If y is a table, /:y grades the base value of the rows, using a base > > larger than twice the magnitude of any of the elements. > > </quote> > > > > What does "base" mean here? > > > > For example, > > > > /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > > 3 1 1 8 3 > > 3 1 4 1 6 > > 6 1 8 0 3 > > > > What is the base value of the rows in this case(and why twice the > > magnitude of any of the elements)? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Henry Rich" <HenryHRich@xxxxxxxxx>
In-reply-to:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
References:
<42de1fc42e40e1.42e40e142de1fc@xxxxxxx>
~:y is the boolean list b such that b#y is the nub of y This is incomplete. There may be many possible values of b that qualify; ~: produces the one such that #. b is maximized. Henry Rich ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
The following verbs find all size x combinations of i.y, in lexicographic order: comb=: 4 : 0 k=. i.>:d=.y-x z=. (d$<i.0 0),<i.1 0 for. i.x do. z=. k ,.&.> ,&.>/\. >:&.> z end. ; z ) comb1=: ((= +/"1) |.@:I.@# ]) #:@i.@(2&^) For example, 3 comb 5 . However, comb takes time and space linear in the size of the result whereas comb1 takes exponential. Yet comb1 would have been preferred according to the "number of characters" criterion. The same point can be made with other programming problems, such as: compositions permutations self-upgrading permutations self-downgrading permutations ----- Original Message ----- From: greg heil <gheil.j@xxxxxxxxx> Date: Thursday, August 31, 2006 8:05 am Subject: Re: [Jprogramming] Re: Sierpinski triangle > Number of characters is best. It shows the compressibility of the > language, as well as the solution. Eg Arthur notes, with some pride, > that running his K code through a zip compressor yields no benefit. > Hopefully such a goal is attainable in J.Perhaps someday inflected > vocabulary can have single unicode alternatives... Then it will be > like the old days with APL keyboards. With a character metric we can > have cross language comparisons. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Henry Rich" <HenryHRich@xxxxxxxxx>
In-reply-to:
<6f80c1520608310834y7d2f0025tceafa33ea924ce14@xxxxxxxxxxxxxx>
References:
<6f80c1520608310834y7d2f0025tceafa33ea924ce14@xxxxxxxxxxxxxx>
All this means is that the first item in each row is the major sort key, followed by the second item, and so on. The base value is the single number you would get from applying # to the row. In your example, you could use 20 #. 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 489626 488563 971203 as the values to be sorted. The base needs to be more than twice the magnitude to make sure that 0 10 is less than 1 _10 for example. Henry Rich > -----Original Message----- > From: programming-bounces@xxxxxxxxxxxxx > [mailto:programming-bounces@xxxxxxxxxxxxx] On Behalf Of June Kim > Sent: Thursday, August 31, 2006 11:34 AM > To: Programming forum > Subject: [Jprogramming] Grade Up/Down with tables > > >From J Dictionary: > > <quote> > If y is a table, /:y grades the base value of the rows, using a base > larger than twice the magnitude of any of the elements. > </quote> > > What does "base" mean here? > > For example, > > /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > 3 1 1 8 3 > 3 1 4 1 6 > 6 1 8 0 3 > > What is the base value of the rows in this case(and why twice the > magnitude of any of the elements)? > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
June Kim wrote: > What does "base" mean here? #. > For example, > /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 > 3 1 1 8 3 > 3 1 4 1 6 > 6 1 8 0 3 > > What is the base value of the rows in this case(and why twice the > magnitude of any of the elements)? x=.3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 >:+:>./,|x 17 /: x 1 0 2 /:17#.x 1 0 2 Twice, to allow for negative numbers. That said, the sorting algorithm probably does not use 17 in this case. It probably "uses" 2^32. More generally, I expect that internally the base value primitive is not being used -- this would be slow, and would cause precision problems, with floating point arrays. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "June Kim" <juneaftn@xxxxxxxxx>
From J Dictionary:
<quote> If y is a table, /:y grades the base value of the rows, using a base larger than twice the magnitude of any of the elements. </quote> What does "base" mean here? For example, /:~ 3 1 4 1 6,3 1 1 8 3,:6 1 8 0 3 3 1 1 8 3 3 1 4 1 6 6 1 8 0 3 What is the base value of the rows in this case(and why twice the magnitude of any of the elements)? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "greg heil" <gheil.j@xxxxxxxxx>
In-reply-to:
<26034899.1156972090323.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References:
<26034899.1156972090323.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Number of characters is best. It shows the compressibility of the language, as well as the solution. Eg Arthur notes, with some pride, that running his K code through a zip compressor yields no benefit. Hopefully such a goal is attainable in J.Perhaps someday inflected vocabulary can have single unicode alternatives... Then it will be like the old days with APL keyboards. With a character metric we can have cross language comparisons. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
See my user page on the Wikipedia: http://en.wikipedia.org/wiki/User:Roger_Hui The syntax is explained in: http://commons.wikimedia.org/wiki/Standard_chess_diagram The chess diagrams you see on my user page are generated with the following code: {{Chess diagram small|=|tleft| | | | | | | |ql| |= | |ql| | | | | | |= | | | | | |ql| | |= | | |ql| | | | | |= |ql| | | | | | | |= | | | | | | | |nl|= | | | |nl|nl| | |nl|= | | | | |nl| | | |= | }} {{Chess diagram small|=|| | | | | | | |nl|nl|= | | | |ql| | | | |= | |ql| | | | | | |= | | | | | | |nl|nl|= | | | | | | | |nl|= |ql| | | | | | | |= | | |ql| | | | | |= | | | | | |ql| | |= | }} ----- Original Message ----- From: Björn Helgason <gosinn@xxxxxxxxx> Date: Thursday, August 31, 2006 0:07 am Subject: Re: [Jprogramming] Dealing a bridge hand ... And on a similar topic - do you know how to get the chess pieces to display like you do with the cards? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Kip Murray <km@xxxxxxxxxxx>
In-reply-to:
<002201c6ccae$f3e1dfc0$4001a8c0@vaio
>
References:
<20060831000512.20593.qmail@xxxxxxxxxxxxxxxxxxxxxxx> <002201c6ccae$f3e1dfc0$4001a8c0@vaio
>
Remembering an earlier discussion of symmetric arrays (not just matrices), we could ask for efficient ways of dealing with them/representing them. What can be done with existing facilities? About matrices, Gilbert Strang comments in Linear Algebra and Its Applications: "Symmetric matrices appear in every subject whose laws are fair. 'Each action has an equal and opposite reaction.' The entry a_ij that gives the action of i onto j is matched by a_ji." On Thu, 31 Aug 2006, Fraser Jackson wrote: | There are many problems where for a matrix a either the following | | a fn"1 1 / a | | or | | | a f . g |: a | | generate a symmetric matrix. | | | I could well do with the saving of half the time on a computation. | | 1. Has anyone good suggestions for handling this? | 2. Isn't this such a common problem that some way of telling the | interpreter to only do one triangle should be constructed? | | Fraser Kip Murray Math, UofHouston cmurray@xxxxxx http://www.math.uh.edu/~km ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Oleg Kobchenko <olegykj@xxxxxxxxx>
In-reply-to:
<4031fef0608310007p2ca0bb12pe7b1e1d2749832eb@xxxxxxxxxxxxxx>
References:
<4031fef0608310007p2ca0bb12pe7b1e1d2749832eb@xxxxxxxxxxxxxx>
J Wiki does not allow BMP attachments. So I extended the instructions how to download the PNG attachment and convert it to BMP. http://www.jsoftware.com/jwiki/Scripts/Cards_Generator It is also possible to use the f_save'' to save the generated cards as bitmap in correct location. --- Björn Helgason <gosinn@xxxxxxxxx> wrote: > Where do I get cards28x40.png? > Or better still cards28x40.bmp? > > And on a similar topic - do you know how to get the chess pieces to display > like you do with the cards? > > 2006/8/31, Oleg Kobchenko <olegykj@xxxxxxxxx>: > > > > You need to have the bmp file beforehand. > > The easiest way is to download the cards28x40.png, > > open it in your favorite image viewer/editor as > > same as cards28x40.bmp. > > > > --- Björn Helgason <gosinn@xxxxxxxxx> wrote: > > > > > F=: readbmp jpath'~user/cards/cards28x40.bmp' > > > > > > is missing > > > > > > length error: script > > > | C=:,/}:"_1]0 3 2 1{(,:~40 28) ];.3 F > > > |[-5] c:\j601\temp\21.ijs > > > F > > > file read error > > > > > > > > > > > > 2006/8/30, Oleg Kobchenko <olegykj@xxxxxxxxx>: > > > > > > > > There is an update to the card generator with > > > > an example of dealing a table of bridge. > > > > > > > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > > > > > > > > > > > --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote: > > > > > > > > > I have published a script that generates a deck > > > > > of cards at a small size both for Pocket PC and i > > > > > nteractive compositing for display with `viewrgb` etc. > > > > > > > > > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > > > > > > > > > It is not necessary to re-run the script, instead the > > > > > resulting bitmap can be used with `readbmp`. > > > > > The picutre layout allows partially covered stacking. > > > > > I hope that with some auxiliary verbs it would be > > > > > possible to pack such subsets in an image and > > > > > display various arrangements. > > > > > > > > > > > > > > > --- Roger Hui <rhui000@xxxxxxx> wrote: > > > > > > > > > > > Björn meant presenting the bridge hands using the > > > > > > card images as in Solitarie. > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx> > > > > > > Date: Tuesday, August 29, 2006 4:29 pm > > > > > > Subject: RE: [Jprogramming] Dealing a bridge hand > > > > > > > > > > > > > Björn Helgason wrote: > > > > > > > > More interesting would be to see the hand using the cards > > > > > > > > used by Solitaire or similar. > > > > > > > > > > > > > > For example? > > > > > > > > > > > > > > (There seem to be hundreds of differing sets of rules for > > > > > > > Solitaire, and no standardized representation for the > > > > > > > initial state of a Solitaire game.) > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > > > http://mail.yahoo.com > > > > > > > ---------------------------------------------------------------------- > > > > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > > http://mail.yahoo.com > > > > ---------------------------------------------------------------------- > > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > > > > > > > > > > > -- > > > Björn Helgason, Verkfræðingur > > > Fugl&Fiskur ehf, Þerneyjarsund 23, > > > Skype: gosiminn, gsm: +3546985532 > > > 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx > > > Landslags og skrúðgarðagerð, gröfuþjónusta > > > http://groups.google.com/group/J-Programming > > > > > > > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari > > einfaldleikans > > > > > > góður kennari getur stigið á tær án þess að glansinn fari af skónum > > > /|_ .-----------------------------------. > > > ,' .\ / | Með léttri lund verður | > > > ,--' _,' | Dagurinn í dag | > > > / / | Enn betri en gærdagurinn | > > > ( -. | `-----------------------------------' > > > | ) | (\_ _/) > > > (`-. '--.) (='.'=) > > > `. )----' (")_(") > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > Björn Helgason, Verkfræðingur > Fugl&Fiskur ehf, Þerneyjarsund 23, > Skype: gosiminn, gsm: +3546985532 > 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx > Landslags og skrúðgarðagerð, gröfuþjónusta > http://groups.google.com/group/J-Programming > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans > > góður kennari getur stigið á tær án þess að glansinn fari af skónum > /|_ .-----------------------------------. > ,' .\ / | Með léttri lund verður | > ,--' _,' | Dagurinn í dag | > / / | Enn betri en gærdagurinn | > ( -. | `-----------------------------------' > | ) | (\_ _/) > (`-. '--.) (='.'=) > `. )----' (")_(") > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Björn Helgason" <gosinn@xxxxxxxxx>
In-reply-to:
<20060831000512.20593.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<4031fef0608301651u184b120ch26b1a04fb34953d@xxxxxxxxxxxxxx> <20060831000512.20593.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Where do I get cards28x40.png? Or better still cards28x40.bmp? And on a similar topic - do you know how to get the chess pieces to display like you do with the cards? 2006/8/31, Oleg Kobchenko <olegykj@xxxxxxxxx>:
You need to have the bmp file beforehand.
The easiest way is to download the cards28x40.png,
open it in your favorite image viewer/editor as
same as cards28x40.bmp.
--- Björn Helgason <gosinn@xxxxxxxxx> wrote:
> F=: readbmp jpath'~user/cards/cards28x40.bmp'
>
> is missing
>
> length error: script
> | C=:,/}:"_1]0 3 2 1{(,:~40 28) ];.3 F
> |[-5] c:\j601\temp\21.ijs
> F
> file read error
>
>
>
> 2006/8/30, Oleg Kobchenko <olegykj@xxxxxxxxx>:
> >
> > There is an update to the card generator with
> > an example of dealing a table of bridge.
> >
> > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator
> >
> >
> > --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote:
> >
> > > I have published a script that generates a deck
> > > of cards at a small size both for Pocket PC and i
> > > nteractive compositing for display with `viewrgb` etc.
> > >
> > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator
> > >
> > > It is not necessary to re-run the script, instead the
> > > resulting bitmap can be used with `readbmp`.
> > > The picutre layout allows partially covered stacking.
> > > I hope that with some auxiliary verbs it would be
> > > possible to pack such subsets in an image and
> > > display various arrangements.
> > >
> > >
> > > --- Roger Hui <rhui000@xxxxxxx> wrote:
> > >
> > > > Björn meant presenting the bridge hands using the
> > > > card images as in Solitarie.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
> > > > Date: Tuesday, August 29, 2006 4:29 pm
> > > > Subject: RE: [Jprogramming] Dealing a bridge hand
> > > >
> > > > > Björn Helgason wrote:
> > > > > > More interesting would be to see the hand using the cards
> > > > > > used by Solitaire or similar.
> > > > >
> > > > > For example?
> > > > >
> > > > > (There seem to be hundreds of differing sets of rules for
> > > > > Solitaire, and no standardized representation for the
> > > > > initial state of a Solitaire game.)
> > > >
> > > >
> > > >
----------------------------------------------------------------------
> > > > For information about J forums see
http://www.jsoftware.com/forums.htm
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
----------------------------------------------------------------------
> > > For information about J forums see
http://www.jsoftware.com/forums.htm
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf, Þerneyjarsund 23,
> Skype: gosiminn, gsm: +3546985532
> 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
> /|_ .-----------------------------------.
> ,' .\ / | Með léttri lund verður |
> ,--' _,' | Dagurinn í dag |
> / / | Enn betri en gærdagurinn |
> ( -. | `-----------------------------------'
> | ) | (\_ _/)
> (`-. '--.) (='.'=)
> `. )----' (")_(")
> > ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Skype: gosiminn, gsm: +3546985532 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Roger Hui <rhui000@xxxxxxx>
- A factor of 2 isn't very exciting. Scan the factors quoted in the release notes: http://www.jsoftware.com/books/help/release/contents.htm - Special code is more likely for an expression which is tacit and is the simplest possible. For example: fn"1/~ and (f . g |:) ----- Original Message ----- From: Fraser Jackson <fraser.jackson@xxxxxxxxxx> Date: Wednesday, August 30, 2006 8:38 pm Subject: [Jprogramming] Symmetric inner and outer products > There are many problems where for a matrix a either the following > > a fn"1 1 / a > > or > > > a f . g |: a > > generate a symmetric matrix. > > > I could well do with the saving of half the time on a computation. > > 1. Has anyone good suggestions for handling this? > 2. Isn't this such a common problem that some way of telling > the > interpreter to only do one triangle should be constructed? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: "Fraser Jackson" <fraser.jackson@xxxxxxxxxx>
References:
<20060831000512.20593.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
There are many problems where for a matrix a either the following a fn"1 1 / a or a f . g |: a generate a symmetric matrix. I could well do with the saving of half the time on a computation. 1. Has anyone good suggestions for handling this?2. Isn't this such a common problem that some way of telling the interpreter to only do one triangle should be constructed?
Fraser ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 31, 2006
From: Oleg Kobchenko <olegykj@xxxxxxxxx>
In-reply-to:
<4031fef0608301651u184b120ch26b1a04fb34953d@xxxxxxxxxxxxxx>
References:
<4031fef0608301651u184b120ch26b1a04fb34953d@xxxxxxxxxxxxxx>
You need to have the bmp file beforehand.
The easiest way is to download the cards28x40.png,
open it in your favorite image viewer/editor as
same as cards28x40.bmp.
--- Björn Helgason <gosinn@xxxxxxxxx> wrote:
> F=: readbmp jpath'~user/cards/cards28x40.bmp'
>
> is missing
>
> length error: script
> | C=:,/}:"_1]0 3 2 1{(,:~40 28) ];.3 F
> |[-5] c:\j601\temp\21.ijs
> F
> file read error
>
>
>
> 2006/8/30, Oleg Kobchenko <olegykj@xxxxxxxxx>:
> >
> > There is an update to the card generator with
> > an example of dealing a table of bridge.
> >
> > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator
> >
> >
> > --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote:
> >
> > > I have published a script that generates a deck
> > > of cards at a small size both for Pocket PC and i
> > > nteractive compositing for display with `viewrgb` etc.
> > >
> > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator
> > >
> > > It is not necessary to re-run the script, instead the
> > > resulting bitmap can be used with `readbmp`.
> > > The picutre layout allows partially covered stacking.
> > > I hope that with some auxiliary verbs it would be
> > > possible to pack such subsets in an image and
> > > display various arrangements.
> > >
> > >
> > > --- Roger Hui <rhui000@xxxxxxx> wrote:
> > >
> > > > Björn meant presenting the bridge hands using the
> > > > card images as in Solitarie.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
> > > > Date: Tuesday, August 29, 2006 4:29 pm
> > > > Subject: RE: [Jprogramming] Dealing a bridge hand
> > > >
> > > > > Björn Helgason wrote:
> > > > > > More interesting would be to see the hand using the cards
> > > > > > used by Solitaire or similar.
> > > > >
> > > > > For example?
> > > > >
> > > > > (There seem to be hundreds of differing sets of rules for
> > > > > Solitaire, and no standardized representation for the
> > > > > initial state of a Solitaire game.)
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > For information about J forums see http://www.jsoftware.com/forums.htm
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf, Þerneyjarsund 23,
> Skype: gosiminn, gsm: +3546985532
> 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
> /|_ .-----------------------------------.
> ,' .\ / | Með léttri lund verður |
> ,--' _,' | Dagurinn í dag |
> / / | Enn betri en gærdagurinn |
> ( -. | `-----------------------------------'
> | ) | (\_ _/)
> (`-. '--.) (='.'=)
> `. )----' (")_(")
> > ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 30, 2006
From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx>
Fraser Jackson wrote: > If you are wanting different sized samples I suggest you > write SAMPLES so it works for unboxed arguments. Then ... >From the description provided by Leigh, the case that concerned him was where the arguments were the same size, but the results were differing in size (the left argument specified the size of the result. A variation on Henry's suggestion would actually work rather nicely for this case: 50 100 <@SAMPLE"0 2 y1 (Though I should add: if the definition of SAMPLE was such that the left argument was always assumed to be an atomic number and the right argument was always assumed to have no more than 2 dimensions, I'd be inclined to put "0 2 in the definition of SAMPLE. The only exception here would be if I were trying to debug SAMPLE -- the debugger behaves nicer when explicit by themselves have names. But I do not think that debugger limitations should coding style outside of the debugging context.) -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 30, 2006
From: "Björn Helgason" <gosinn@xxxxxxxxx>
In-reply-to:
<20060830233951.6138.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<20060830070111.98930.qmail@xxxxxxxxxxxxxxxxxxxxxxx> <20060830233951.6138.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
F=: readbmp jpath'~user/cards/cards28x40.bmp'
is missing
length error: script
| C=:,/}:"_1]0 3 2 1{(,:~40 28) ];.3 F
|[-5] c:\j601\temp\21.ijs
F
file read error
2006/8/30, Oleg Kobchenko <olegykj@xxxxxxxxx>:
There is an update to the card generator with an example of dealing a table of bridge. http://www.jsoftware.com/jwiki/Scripts/Cards_Generator --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote: > I have published a script that generates a deck > of cards at a small size both for Pocket PC and i > nteractive compositing for display with `viewrgb` etc. > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > It is not necessary to re-run the script, instead the > resulting bitmap can be used with `readbmp`. > The picutre layout allows partially covered stacking. > I hope that with some auxiliary verbs it would be > possible to pack such subsets in an image and > display various arrangements. > > > --- Roger Hui <rhui000@xxxxxxx> wrote: > > > Björn meant presenting the bridge hands using the > > card images as in Solitarie. > > > > > > > > ----- Original Message ----- > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx> > > Date: Tuesday, August 29, 2006 4:29 pm > > Subject: RE: [Jprogramming] Dealing a bridge hand > > > > > Björn Helgason wrote: > > > > More interesting would be to see the hand using the cards > > > > used by Solitaire or similar. > > > > > > For example? > > > > > > (There seem to be hundreds of differing sets of rules for > > > Solitaire, and no standardized representation for the > > > initial state of a Solitaire game.) > > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Skype: gosiminn, gsm: +3546985532 801 Grímsnes ,t-póst: gosinn@xxxxxxxxx Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Date: August 30, 2006
From: Oleg Kobchenko <olegykj@xxxxxxxxx>
In-reply-to:
<20060830070111.98930.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
References:
<20060830070111.98930.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
There is an update to the card generator with an example of dealing a table of bridge. http://www.jsoftware.com/jwiki/Scripts/Cards_Generator --- Oleg Kobchenko <olegykj@xxxxxxxxx> wrote: > I have published a script that generates a deck > of cards at a small size both for Pocket PC and i > nteractive compositing for display with `viewrgb` etc. > > http://www.jsoftware.com/jwiki/Scripts/Cards_Generator > > It is not necessary to re-run the script, instead the > resulting bitmap can be used with `readbmp`. > The picutre layout allows partially covered stacking. > I hope that with some auxiliary verbs it would be > possible to pack such subsets in an image and > display various arrangements. > > > --- Roger Hui <rhui000@xxxxxxx> wrote: > > > Björn meant presenting the bridge hands using the > > card images as in Solitarie. > > > > > > > > ----- Original Message ----- > > From: "Miller, Raul D" <rdmiller@xxxxxxxxxxxx> > > Date: Tuesday, August 29, 2006 4:29 pm > > Subject: RE: [Jprogramming] Dealing a bridge hand > > > > > Björn Helgason wro