By the way, the sentence preceding the third paragraph is priceless:
I was sitting in the audience sandwiched between two very esteemed people
in computer science and computing — Fritz Bauer, who runs computing in
Bavaria from his headquarters in Munich, and Edsger Dijkstra, who runs
computing all over the world from his headquarters in Holland.
I need to learn to write like that, wielding words like a rapier rather
than like a battle axe.
The phrase p{~ q i. ] is useful and (for char lists p and q) are
implemented by special code. See
http://www.jsoftware.com/help/dictionary/special.htm and
http://www.jsoftware.com/help/release/charmap.htm
On Wed, Jan 15, 2014 at 9:47 AM, Joe Bogner <[email protected]> wrote:
> I looked at Devon's answer and had a response very similar to the
> paper (before reading the paper). It'd be like if I was riding a
> horse and carriage in 1910 and an automobile raced by. J has a
> pleasant way of humbling in 10 characters or less.
>
> It still took me about 15 minutes to figure it out, so I'll post here
> for any other beginners more explicitly
>
> BraceIdx =: '{}' i. '@{ foo; if (abc) { if (q) { m; } } }'
> BraceAddSubtract =: BraceIdx { (1 _1 0) NB. Add 1 for { and
> subtract 1 for }, do nothing for other characters
> ]BraceRunSum =: +/\BraceAddSubtract
>
>
>
> On Wed, Jan 15, 2014 at 11:22 AM, Roger Hui <[email protected]>
> wrote:
> > An oldie but a goodie. See the third paragraph of Perlis, APL is more
> > French than English <http://www.jsoftware.com/papers/perlis78.htm>,
> 1978,
> > talking about events in the 1960s.
> >
> >
> >
> > On Wed, Jan 15, 2014 at 8:01 AM, Devon McCormick <[email protected]>
> wrote:
> >
> >> This (old) trick works nicely if you can fit complete expressions into
> >> memory:
> >>
> >> +/\(1 _1 0){~'{}' i. '@{ foo; if (abc) { if (q) { m; } } }'
> >> 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 2 2 1 1 0
> >>
> >> It becomes clunkier if you have to process expressions in sequential
> chunks
> >> but can be made to work.
> >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm