Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread bob therriault
Thanks Ric, I guess that why the specs were written, huh? New version back up to 63 characters. (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k' l m n o p q r s t u v w x y z a b c d e f g h i j (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k.' l m

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Bob Therriault wrote: > Thanks Ric, > > I guess that why the specs were written, huh? > > New version back up to 63 characters. > > (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k' > l m n o p q r s t u v w x y z a b c d e f g h i j > [...] > A straightforward patch

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Raul Miller wrote: > Borrowing some ideas from other people in this thread: > >f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0 > > Example uses: > f 'a' > f '-' > f 'C.' > Here is a 4 characters shorter version: ([:|:(25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.)"0) #'([:|:((i.|

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Mon, Aug 27, 2012 at 11:24 PM, Ric Sherlock wrote: > The only part of the problem specification that I don't think many of > the J versions are addressing is that the list of letters should be > separated by spaces. That's probably my fault, since I overlooked that part of the spec originally.

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Mon, Aug 27, 2012 at 9:29 PM, bob therriault wrote: > Raul, you should put that up on the contest site. If anyone wants to post any of these up on the contest, site, feel free. I'm not going to bother, though, myself. This is an interesting exercise, taken by itself, but the "contest" aspect

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Devon McCormick
If no one else posts this in the next few days, I will on behalf of "J. BossCerovskiCyrHuiLambertMillerSchottSherlockTherriault" - publicity never hurts. On Tue, Aug 28, 2012 at 9:03 AM, Raul Miller wrote: > On Mon, Aug 27, 2012 at 9:29 PM, bob therriault wrote: >> Raul, you should put that up o

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Jose Mario Quintana
Speaking of "seems to be an exercise in extreme arbitrariness"; is the following, (1j1#"1&|:(25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.)"0) '.a' b c d e f g h i j k l m n o p q r s t u v w x y z a bug, a feature, or both? On Tue, Aug 28, 2012 at 9

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread bob therriault
There's always one in a group isn't there :) I'd would say that the specs suggest that the period is added so that the case of '.a' wouldn't come up as the only two letter arguments allowable end in a period. Subject to interpretation, I'd call it a feature :) By the way, I picked some low han

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
I'd say that it's both. More specifically, though, it's not explicitly covered by the specifications, or rather it's my interpretation of the specifications. That said, it's not likely to be compatible with the golf implementation, and this task has "emulate golf" written all over it. (And if thi

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
Here's another couple characters shaved off: 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
On Tue, Aug 28, 2012 at 2:56 PM, bob therriault wrote: > I'd would say that the specs suggest that the period is added so that the > case of '.a' wouldn't come up as the only two letter arguments allowable end > in a period. Subject to interpretation, I'd call it a feature :) I think your point

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
And, I think this is one more character shaved off (45 here): 1j1#"1&|:(25{.]}.~1+i.~)&(u:,2#65 97+/i.26)"0 -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Jose Mario Quintana
$ 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 '!@#$%^&*' 25 16 1j1#"1&|:(25{.(u:,2#65 97+/i.26)(>:@i.}.[)])"0 '!@#$%^&*' I wonder how faithful the other "solutions" are to the specifications of this "challenge." The argument ('!@#$%^&*') might apply to the specif

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Raul Miller
One interesting issue, here, is that the concise expression in J is not because J was specifically optimized for this task, but because J has so many expressions which can be used for this task. But some people had expressed confusion, about how to read one of my drafts: f=:[:|:((i.|.-.)~(a.{~

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Alan Stebbens
Raul, I very much appreciate your contributions, and this one even more than usual. thanks! -- Alan On Tuesday, August 28, 2012 at 4:16 PM, Raul Miller wrote: > One interesting issue, here, is that the concise expression in J is > not because J was specifically optimized for this task, but b