Note that there are multiple concepts of "use". You might want to be more
specific about that.
For example, here's an expression which uses every ascii character:
128{a.
You might have meant where every printable ascii character appears in the
script of the program. But that raises another question: what is a program?
This isn't an entirely moot point because we have stuff that can copied and
pasted from email (which has line length limitations), we have stuff that
can be loaded using the load command, and we have programs which can be
valid at the OS command line (for various different operating systems).
Worse, your "overreliant" clause is so ambiguous that I don't really know
what you intend. Is 25% of each overreliant? 1%?
Anyways, this has some possibilities, but my pedantic side is going to need
to test the boundaries quite a bit for something this ambiguous.
Thanks,
--
Raul
On Mon, May 19, 2014 at 12:01 PM, Dan Bron <[email protected]> wrote:
> Write the shortest valid J program that uses all printable ASCII
> characters. More specifically, write a J program which:
>
> - Doesn't raise an error
> - Returns something other than itself (e.g. 'abcde...!@$%' doesn't count;
> a ;: c / @ e. i: .. doesn't count, etc).
> - Uses each of the following characters at least once:
>
> a. {~ 32 +i.5 19
>
> !"#$%&'()*+,-./012
> 3456789:;<=>?@ABCDE
> FGHIJKLMNOPQRSTUVWX
> YZ[\]^_`abcdefghijk
> lmnopqrstuvwxyz{|}~
>
> Solutions which are overreliant on character literals (e.g.
> #'abcdef..!@$...') or undefined names (e.g. abc`def`ghi etc) will be
> considered cop-outs and be disqualified. If there is more than one
> shortest program, the first to be posted (based on Forum timestamp) will
> be declared the winner.
>
> -Dan
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm