Re: [Jprogramming] During lulls in the games can you simplify this code?

2015-01-08 Thread Don Kelly
How about this (1+i.n) u table 1+i.m this will remove * by 0 and 0% whatever as well as whatever %0 For division it might be practical to use 1r1+i.m) if you wish to stay with fractions (1+i.5) % table 1r1+i.10 ┌─┬──┐ │%│1 2 3 4 5 6 7 8 9 1

[Jprogramming] test from HP # 3

2015-01-08 Thread Linda Alvord
Ignore - this is a test -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] awesome j image

2015-01-08 Thread Devon McCormick
blit {: |:#:!/~i.64x |value error: hext |blit[0] On Thu, Jan 8, 2015 at 4:12 PM, Devon McCormick wrote: > You might try using "64x" instead of 64 as the argument. > > On Thu, Jan 8, 2015 at 4:02 PM, Michal Wallace > wrote: > >> I just stumbled onto this image, and I have to say it >> is prob

Re: [Jprogramming] awesome j image

2015-01-08 Thread Devon McCormick
You might try using "64x" instead of 64 as the argument. On Thu, Jan 8, 2015 at 4:02 PM, Michal Wallace wrote: > I just stumbled onto this image, and I have to say it > is probably my favorite J image of all time. > > (replace blit with viewmat for a better picture) > >blit {: |:#:!/~i.64 >

[Jprogramming] awesome j image

2015-01-08 Thread Michal Wallace
I just stumbled onto this image, and I have to say it is probably my favorite J image of all time. (replace blit with viewmat for a better picture) blit {: |:#:!/~i.64 ▙ ▙▙ ▙ ▙ ▙ ▙ ▙▙ ▙▙ ▙ ▙ ▙ ▙ ▙ ▙ ▙▙ ▙▙ ▙ ▙ ▙ ▙ ▙ ▙ ▙ ▙ ▙▙ ▙▙ ▙▙ ▙▙ ▙ ▙ ▙ ▙

Re: [Jprogramming] A striggle with "inverse"

2015-01-08 Thread Don Guinn
Obverse/inverse applies to the monadic use of a verb. So, + b._1 NB. Conjugate + - b._1 NB. Negation - * b._1 NB. Signum. Cannot undo this. |domain error | *b._1 % b._1 NB. Inverse % When applied to a dyadic use it is interpreted as the left argument bound to the verb making a m

Re: [Jprogramming] Rail Fence Cipher

2015-01-08 Thread Linda Alvord
I guess I better work on remembering it too! A helpful lesson. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert therriault Sent: Thursday, January 8, 2015 11:12 AM To: programm...@jsoftware.com S

[Jprogramming] A striggle with "inverse"

2015-01-08 Thread Linda Alvord
This is from the vocabulary: The obverse (which is normally the inverse) is specified for six cases: 1. The self-inverse functions + - -. % %. |. |: /: [ ] C. p. Why is * deleted from the list? What is the inverse of * ? If that is correct, then shouldn't + be deleted from the list?

Re: [Jprogramming] Rail Fence Cipher

2015-01-08 Thread robert therriault
Hi Linda, The way I remember this effect is to imagine that when you define a verb tacitly the last step is to parenthesize it in your mind. So, > enc =: ;@:( enc =: (;@:( ;( enc2 =: ;( enc2 =: (;( wrote: > > > This is odd, Pascal > > > > Remove @: in one situation and the results agree.

Re: [Jprogramming] Rail Fence Cipher

2015-01-08 Thread Raul Miller
https://en.wikipedia.org/wiki/SIMD I'd say that slightly differently: J has been *implemented* as a single instruction multiple data language. There is nothing in the syntax of the language, nor in the dictionary description of the language, which prevents a multiple instruction implementation.

Re: [Jprogramming] J803 Qt IDE Regex Bug

2015-01-08 Thread Thomas Costigliola
Bill, both give: '"/home/thomas/downloads/j64-803/tools/regex/libjpcre.so" regexec + i *x *c x *i i'&(15!:0) Chris, there must be something very strange about my setup. I am using Arch Linux. Does jqt cause any library loads to be intercepted? These steps reproduce the behavior on my machine:

Re: [Jprogramming] Rail Fence Cipher

2015-01-08 Thread David Lambert
J is a single data multi-instruction language. The trains and many of the adverbs and conjunctions control data flow. enc2 is a hook. Below, find where A appears in the explicit equivalent sentence. boxdraw_j_ 1 enc2 =: ;( Date: Thu, 08 Jan 2015 02:31:07 -0500 From: "Linda Alvord" To: