Re: [Jprogramming] Fwd: [Jchat] At Play With J: Boggle

2009-04-03 Thread Ian Clark
Tracy -- thank you for taking the trouble to wrestle with problems like this. It wasn't in my mind to ask this of the J community. Primarily I shall use my record of Chat Forum traffic as a checklist when revising the printed book. This is where Chris Burke directed the APWJ business. I

Re: [Jprogramming] Italic Fonts?

2009-05-30 Thread Ian Clark
, incoming source material often lacks clear delineation of the in-line J code -- or if present it can't be trusted. It's a compounding factor that the back-tick used by Moinmoin to delineate in-line J is also a valid J character. Ian Clark 2009/5/30 Björn Helgason gos...@gmail.com: =. It could

Re: [Jprogramming] Italic Fonts?

2009-05-30 Thread Ian Clark
/article/SB123992364819927171.html The memory of that article jumped out of the remarks below... - joey At 20:41 +0100 2009/05/30, Ian Clark wrote: Watching this with interest, due to my typesetting task of At Play With J Edn 2. (See JChat). It's the considered opinion of BAA Vector

Re: [Jprogramming] Italic Fonts?

2009-05-30 Thread Ian Clark
: I am very surprised by this. Why should in-line J be any harder than in-line APL, since the J alphabet (7-bit ASCII) is a subset of ⎕av ? (At least the Dyalog ⎕av.) - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Saturday, May 30, 2009 12:42 Subject: Re

Re: [Jprogramming] Italic Fonts?

2009-05-31 Thread Ian Clark
IME. That counts for a lot in my game. So avoiding MSWord entirely is for people with clean earth to till. Ian On Sun, May 31, 2009 at 2:19 PM, Raul Miller rauldmil...@gmail.com wrote: On Sat, May 30, 2009 at 11:12 PM, Ian Clark earthspo...@googlemail.com wrote: However the typesetter's job

Re: [Jprogramming] Off-topic ancient history query

2009-06-29 Thread Ian Clark
Do tell us, Eugene :) On Mon, Jun 29, 2009 at 1:29 AM, Eugene McDonnellee...@mac.com wrote: Who was the man A who said about man B that He says without going what goes without saying. (My wife knew the answer.) Eugene McDonnell

[Jprogramming] Puzzle Corner: APWJ Chapter 32 (Black-Scholes)

2009-06-29 Thread Ian Clark
use as a work-variable to hold the second element of yc. This can be overcome by adhering rigidly to the earlier convention of using S X T for the first 3 elements of yc instead of s x t --which the article lapses into doing. But that is (I think) an independent issue. Ian Clark

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 32 (Black-Scholes)

2009-06-30 Thread Ian Clark
have to change the first cnd verb to: cnd =: 3 : 'normalprob 0, 1,__,y'0 Hallo Ian Clark, je schreef op 30-06-09 07:54: To follow this you'll need to refer to the page: http://www.jsoftware.com/jwiki/Doc/Articles/Play193 I'm testing the code for Edn 2 of APWJ, and it doesn't give

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 32 (Black-Scholes)

2009-06-30 Thread Ian Clark
),d2 yc 0.3724829 0.317292 So leave cnd as it is and change BlackScholes: BlackScholes=: 4 : 0 'S X T r v' =. y d1=. ((ln S%X)+(r+-:*:v)*T)%(v * sqrt T) d2=. d1 - v * sqrt T (S, X * exp-r*T) (-/ . * cnd0 )(-^:x) d1, d2 ) Hallo Ian Clark, je schreef op 30-06-09 18:45: Neat

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 32 (Black-Scholes)

2009-07-01 Thread Ian Clark
Thanks, Devon. utf-8 strikes again! And that was supposed to be a dumb single-quote! Watch out, there may be more of those. Moving a straighforward TXT file from Win2000 to the Mac is a minefield nowadays. Ian On Wed, Jul 1, 2009 at 5:23 PM, Devon McCormickdevon...@gmail.com wrote: I changed

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 32 (Black-Scholes)

2009-07-02 Thread Ian Clark
wrote: From: Ian Clark I've tried it with without the tilde, as the original paper had it, and both load the required verb. But since the tilde is standard nowadays, I've put it in. With the tilde is safer. It will work without the tilde if the current working directory (1!:43'') is the j602

[Jprogramming] Puzzle Corner: APWJ Chapter 38 (Google Test)

2009-07-12 Thread Ian Clark
In http://www.jsoftware.com/jwiki/Doc/Articles/Play211/ can anyone tell me the sixth number? -- left at the bottom as an exercise for the reader. In the circumstances, I think the answer ought to be provided as a footnote in Edn 2 of the book. Ian Clark

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 38 (Google Test)

2009-07-14 Thread Ian Clark
I'd thought of that. But an appendix with one entry might look a bit silly. Ian On Tue, Jul 14, 2009 at 12:27 AM, Skip Caves...@caveconsulting.com wrote: All puzzle answers should be in an appendix at the end of the book, organized by chapter. Skip Ian Clark wrote: Sad, I know, from

Re: [Jprogramming] Puzzle Corner: APWJ Chapter 38 (Google Test)

2009-07-15 Thread Ian Clark
Sorry... it's Gene's book. And I've just finished the typesetting. Just need to complete the final testing. Expect Edn 2 real-soon-now. Ian On 7/14/09, Devon McCormick devon...@gmail.com wrote: So come up with more puzzles... On Tue, Jul 14, 2009 at 3:27 AM, Ian Clark earthspo

Re: [Jprogramming] Reimplementing J

2009-07-22 Thread Ian Clark
Years ago I recall Burroughs staff telling me that the Algol compiler was itself implemented definitively in Algol -- not just as a research tool but operationally, to implement all future releases. On my protesting what a crazy thing to do, they assured me it wasn't as chicken-and-egg as it

Re: [Jprogramming] Reimplementing J

2009-07-22 Thread Ian Clark
mean)! Would a J interpreter implemented in J outperform the original? (I doubt it, but) From: Ian Clark earthspo...@googlemail.com To: Programming forum programming@jsoftware.com Sent: Wednesday, July 22, 2009 4:33:40 PM Subject: Re: [Jprogramming

Re: [Jprogramming] Reimplementing J

2009-07-22 Thread Ian Clark
* !0 D:1 ])^:_ .170^:(-:+)^.y' :.! If you are serious about implementing J you should read Ken's APL87 paper, APL87: http://www.jsoftware.com/papers/apl87.htm - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Wednesday, July 22, 2009 17:15 Subject: Re

Re: [Jprogramming] Reimplementing J

2009-07-23 Thread Ian Clark
At some point you will have to issue machine instructions of some sort. Otherwise, you will still be using the machine instructions generated in the current C implementation of J. Correction: your new interpreter will need to execute machine code somewhere, even if it's inherited from the

Re: [Jprogramming] Reimplementing J

2009-07-23 Thread Ian Clark
:1 ])^:_ .170^:(-:+)^.y' for the inverse of ! . - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Wednesday, July 22, 2009 19:03 Subject: Re: [Jprogramming] Reimplementing J To: Programming forum programming@jsoftware.com If you are serious about implementing

Re: [Jprogramming] Reimplementing J

2009-07-23 Thread Ian Clark
a mathematician is that I have a PhD in the subject. Gene in his book APWJ claims he _isn't_ a mathematician. I must say he's a better one than I am! (There's something Wizard- of-Oz about that.) http://keiapl.org/anec/#Dickey - Original Message - From: Ian Clark earthspo

Re: [Jprogramming] Reimplementing J

2009-07-24 Thread Ian Clark
%20Tries%20To%20Read%20J Ian On 7/24/09, Ian Clark earthspo...@googlemail.com wrote: minus/ . times 3 3$'abcdefghi' NB. determinant +-+ |((a*((e*i)-(h*f)))-((d*((b*i)-(h*c)))-(g*((b*f)-(e*c

[Jprogramming] Reimplementing J

2009-07-24 Thread Ian Clark
Thanks,Brian. I hadn't realised Dan had got so far with my proposal. :-) ...and I've also made friends with the wiki search facility. Does Dan's list have any official standing? I ask because on the IAPL project we found that one of its sweetest uses was as a reference model, since it was

Re: [Jprogramming] Reimplementing J

2009-07-25 Thread Ian Clark
Can I play too? I've been meaning to do this for years, but I never got up the initiative. If you start the project I'm happy Delighted to have a co-worker (=player). Will keep you up-to-date. Thanks for the leads. Itching to get started. Must get APWJ Edn 2 tested released first, though.

Re: [Jprogramming] Reimplementing J

2009-07-26 Thread Ian Clark
since I have not compiled for decades a program written in a familiar programming language. From: Ian Clark earthspo...@googlemail.com To: Programming forum programming@jsoftware.com Sent: Saturday, July 25, 2009 4:05:33 PM Subject: Re: [Jprogramming

Re: [Jprogramming] Reimplementing J

2009-07-27 Thread Ian Clark
Thanks, Dan. Noted bookmarked. Ian On Mon, Jul 27, 2009 at 11:35 PM, Dan Bronj...@bron.us wrote: Jose wrote: You might also be interested in an old thread http://www.jsoftware.com/pipermail/general/2001-November/008262.html

[Jprogramming] Phr (J Phrases)

2009-08-05 Thread Ian Clark
The Phrases document (Phr) in J Help contains a lot of useful definitions which are graced by their own names, eg by, over, tab. But Phr doesn't appear to have an Index or an easy way of searching it. Have these named words been collected into a list or script somewhere? If not, how should I go

Re: [Jprogramming] Phr (J Phrases)

2009-08-06 Thread Ian Clark
, Ricr.g.sherl...@massey.ac.nz wrote: From: Ian Clark The Phrases document (Phr) in J Help contains a lot of useful definitions which are graced by their own names, eg by, over, tab. But Phr doesn't appear to have an Index or an easy way of searching it. Have these named words been collected

[Jprogramming] How do I enter a Unicode char in the J session?

2009-09-05 Thread Ian Clark
there. Ian Clark for Vector Books. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] How do I enter a Unicode char in the J session?

2009-09-05 Thread Ian Clark
a bit like Menu Insert Symbol... in MSWord? If we have a Wiki page for it, it would be a courtesy to have a footnote directing readers there. Ian Clark for Vector Books. -- For information about J forums see http

Re: [Jprogramming] How do I enter a Unicode char in the J session?

2009-09-05 Thread Ian Clark
Thanks, Bill. That's just what I was looking for. Ian On Sun, Sep 6, 2009 at 3:53 AM, bill lambbill@gmail.com wrote: or just use base 16 number 16b2663 ?  However J does not accept upper case hex digits. On Sun, 06 Sep 2009, Ian Clark wrote: Thanks, Bill. ...I've just recalled Gilles

Re: [Jprogramming] How do I enter a Unicode char in the J session?

2009-09-06 Thread Ian Clark
Yes, it's a long way from (a.) ;-) Question from my son, who teaches English as a foreign language: how do you type IPA (International Phonetic Alphabet) into Twitter or Facebook? He thinks it would be too tedious to copy/paste from a program that lets you compose a unicode string. Microsoft

Re: [Jprogramming] Extending dates.ijs

2009-09-11 Thread Ian Clark
I've been watching this thread with a certain amount of awe. Personally I would like to see an accurate J replication of the DATES.w3 package shipped with APL+Win, of which I am a heavy user. It's on my list to do the conversion myself, but I'd be indebted to anyone else doing it first (plus

Re: [Jprogramming] Extending dates.ijs

2009-09-11 Thread Ian Clark
Not sure Easter is simply anything, Devon, though that's basically it... The most thorough account of the problem I know is Ray Cannon's readable entertaining paper: http://www.vector.org.uk/archive/v103/cannon103_67.htm Ian On Fri, Sep 11, 2009 at 8:27 PM, Devon McCormick devon...@gmail.com

Re: [Jprogramming] Extending dates.ijs

2009-09-11 Thread Ian Clark
recent evolutions of dSpell dTime. Ric From: Ian Clark I've been watching this thread with a certain amount of awe. Personally I would like to see an accurate J replication of the DATES.w3 package shipped with APL+Win, of which I am a heavy user. It's on my list to do the conversion myself

[Jprogramming] What's in the z locale?

2009-10-16 Thread Ian Clark
Quickie... A simple task that eludes me: Where am I supposed to find an up-to-date table of z locale contents with a single line statement of what each word does? Ian -- For information about J forums see

Re: [Jprogramming] What's in the z locale?

2009-10-16 Thread Ian Clark
-to-date. And anyway I can't find it again. (And of course there's a similar question in my mind regarding the Library scripts.) Ian On Sat, Oct 17, 2009 at 12:50 AM, Raul Miller rauldmil...@gmail.com wrote: On Fri, Oct 16, 2009 at 7:46 PM, Ian Clark earthspo...@googlemail.com wrote: Where am I

Re: [Jprogramming] What's in the z locale?

2009-10-16 Thread Ian Clark
http://www.jsoftware.com/jwiki/OlegKobchenko/Namedoc; from will display the comments for a word in the session. (Works with jconsole too). From: Ian Clark Right... I could do the names bit. I just want to direct readers to elementary documentation on each word. Most of them lack

Re: [Jprogramming] Phr (J Phrases)

2009-10-19 Thread Ian Clark
Thanks, Oleg. Will have to study this carefully. Busy with other things right now. /Ian On Mon, Oct 19, 2009 at 11:39 PM, Oleg Kobchenko oleg...@yahoo.com wrote: From: Ian Clark earthspo...@googlemail.com The Phrases document (Phr) in J Help contains a lot of useful definitions which

Re: [Jprogramming] BLT: a missing blist verb

2009-10-21 Thread Ian Clark
Thanks for opening this up to the list, Oleg. ...this plus another ten or so puzzles, about which I'll get back to individual volunteers over the next couple of weeks in the first instance, then open up to the list. Status of APWJ Edn 2: The testing of the ms is done: URLs checked out,

Re: [Jprogramming] BLT: a missing blist verb

2009-10-23 Thread Ian Clark
Thank you, David, for your reconstruction of verb BLT. It works fine and gives the expected results. I have inserted it in http://www.jsoftware.com/jwiki/Doc/Articles/Play171 after the first mention of BLT. I will also include you in the list of those acknowledged in the production of APWJ Edn 2.

Re: [Jprogramming] BLT: a missing blist verb

2009-10-24 Thread Ian Clark
with the other verb definitions in the article, I'd suggest using 13 : '' rather than 3 : 0 to define David's BLT i.e. BLT=: 13 : '~. bl1 (y#y)#: i.y^y' From: Ian Clark Thank you, David, for your reconstruction of verb BLT. It works fine and gives the expected results. I have inserted

Re: [Jprogramming] BLT: a missing blist verb

2009-10-25 Thread Ian Clark
Right, Brian... occurred to me after I sent it. My remarks should have referred to single versus multi line definition, which has nothing to do with 3 vs 13. Put it down to overwork distraction. Ian On 10/24/09, Brian Schott schott.br...@gmail.com wrote: Ian, I am a little confused by your

[Jprogramming] APWJ exercises for the reader [1 of 4]

2009-11-11 Thread Ian Clark
, in successive pairs of items, all possible choices of 2 items from n, with no duplications. Problem 2: How many of the !n permutations of even order n are solutions to problem 1? + Ian Clark Subeditor, APWJ Edn 2

[Jprogramming] APWJ exercises for the reader [2 of 4]

2009-11-11 Thread Ian Clark
in a separate thread. + In: Ch 10 Years Digits http://www.jsoftware.com/jwiki/Doc/Articles/Play124 [see end-of-page] There is a solution to 91 which is shorter than this, by the way. + Ian Clark Subeditor, APWJ Edn 2

[Jprogramming] APWJ exercises for the reader [3 of 4]

2009-11-11 Thread Ian Clark
the student numbers of the students that touched both locker 24 and locker 36? F. Which students touched both locker 100 and 120? What do you notice about their student numbers? + Ian Clark Subeditor, APWJ Edn 2

[Jprogramming] APWJ exercises for the reader [4 of 4]

2009-11-11 Thread Ian Clark
The first and second overlap, as do the third and fourth. I'll give two hints, the second vacuous: Hint 1: Primarily, the sixth number has three doublets and overlaps the fifth. Hint 2: Alternately, something for nothing. + Ian Clark Subeditor, APWJ Edn 2

Re: [Jprogramming] APWJ exercises for the reader [1 of 4]

2009-11-11 Thread Ian Clark
- Original Message - From: Ian Clark earthspo...@googlemail.com Date: Wednesday, November 11, 2009 3:56 Subject: [Jprogramming] APWJ exercises for the reader [1 of 4] To: Programming forum programming@jsoftware.com In At Play With J Edn 1, there were 4 questions left

Re: [Jprogramming] APWJ exercises for the reader [2 of 4]

2009-11-11 Thread Ian Clark
- From: Ian Clark earthspo...@googlemail.com Date: Wednesday, November 11, 2009 3:56 Subject: [Jprogramming] APWJ exercises for the reader [2 of 4] To: Programming forum programming@jsoftware.com In At Play With J Edn 1, there were 4 questions left as exercises for the reader. In Edn 2

Re: [Jprogramming] APWJ exercises for the reader [2 of 4]

2009-11-11 Thread Ian Clark
. - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Wednesday, November 11, 2009 15:00 Subject: Re: [Jprogramming] APWJ exercises for the reader [2 of 4] To: Programming forum programming@jsoftware.com Any advances on that? Ian PS: selected contributors (my choice

[Jprogramming] APWJ: Year's Digits for 1996

2009-11-15 Thread Ian Clark
solution (sorry, Ewart). We really, really are on the last lap with APWJ Edn 2, and I want it out in time for Christmas. Ian Clark Subeditor, APWJ Edn 2. -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] APWJ Obscure reference

2009-11-15 Thread Ian Clark
AS 26.2.16 means? It may be a well-understood reference to statisticians, but it needs an explanatory footnote in APWJ Edn 2. Ian Clark Subeditor, APWJ Edn 2. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] APWJ Obscure reference

2009-11-15 Thread Ian Clark
Thanks, Dan and Devon. I'm adding a proper reference (to the webpage). Ian On Sun, Nov 15, 2009 at 10:48 PM, Devon McCormick devon...@gmail.com wrote: Abramowitz Stegun - see http://www.math.sfu.ca/~cbm/aands/intro.htm#006 . On Sun, Nov 15, 2009 at 5:34 PM, Ian Clark earthspo

Re: [Jprogramming] APWJ Obscure reference

2009-11-15 Thread Ian Clark
Right, I've learned something! And I thought I was a mathematician... I wonder how well-known AS is in Europe? My contemporaries would have turned to Rektorys Survey of Applicable Mathematics. But I'm talking 1960s - 70s now... Ian On Sun, Nov 15, 2009 at 10:59 PM, Sherlock, Ric

[Jprogramming] APWJ Chapter 31: missing object: nimsum

2009-11-15 Thread Ian Clark
, the nim sum derived at the start of the article, but although mt then runs, it does not produce the same table as the previous definition of mt (quite apart from needing to be run as (mt 4) not (mt 5) like the previous one). Ian Clark Subeditor, APWJ Edn 2

Re: [Jprogramming] APWJ Chapter 31: missing object: nimsum

2009-11-16 Thread Ian Clark
. Henry Rich Ian Clark wrote: In: http://www.jsoftware.com/jwiki/Doc/Articles/Play191 (Chapter 31, J be nimble, J be quick) the version of mt attributed to Mike Day fails with value error: nimsum Can anyone see what nimsum is supposed to be? It only occurs once (outside a comment). I've tried

Re: [Jprogramming] APWJ Obscure reference

2009-11-16 Thread Ian Clark
Thanks, Raul, that link is appealing. But since it's a preview release I think I'd better go with Devon's link. In view of my limited aim in annotating the existing text (for preference), I'm going to give AS an entry in References at the end of the chapter. There I shall add Devon's URL

Re: [Jprogramming] APWJ Obscure reference

2009-11-16 Thread Ian Clark
I cannot find an ISBN for AS. Do I take it that because it's a govt report it doesn't have one? Ian On Mon, Nov 16, 2009 at 9:04 PM, Ian Clark earthspo...@googlemail.com wrote: Thanks, Raul, that link is appealing. But since it's a preview release I think I'd better go with Devon's link

Re: [Jprogramming] APWJ Obscure reference

2009-11-16 Thread Ian Clark
Thanks Kenneth, you succeeded with amazon.com where I failed (I must have asked the wrong question:) Thanks, Ric -- I should have checked that straightaway. Ian On Mon, Nov 16, 2009 at 9:48 PM, Sherlock, Ric r.g.sherl...@massey.ac.nz wrote: From: Ian Clark I cannot find an ISBN for AS. Do

[Jprogramming] labelling a table

2009-11-16 Thread Ian Clark
Suppose I have an arbitrary table, eg zz 1 2 3 4 5 2 3 1 8 10 3 1 2 12 15 4 8 12 6 2 5 10 15 2 7 what's a slick way of displaying it boxed and labelled, like this? ... +-+-+ |s|0 1 2 3 4| +-+-+ |0|1 2 3 4 5| |1|2 3 1 8 10| |2|3 1 2 12 15|

Re: [Jprogramming] labelling a table

2009-11-16 Thread Ian Clark
. - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Monday, November 16, 2009 16:16 Subject: [Jprogramming] labelling a table To: Programming forum programming@jsoftware.com Suppose I have an arbitrary table, eg    zz 1  2  3  4  5 2  3  1  8 10 3  1  2 12

Re: [Jprogramming] labelling a table

2009-11-16 Thread Ian Clark
- From: Ian Clark earthspo...@googlemail.com Date: Monday, November 16, 2009 16:16 Subject: [Jprogramming] labelling a table To: Programming forum programming@jsoftware.com Suppose I have an arbitrary table, eg    zz 1  2  3  4  5 2  3  1  8 10 3  1  2 12 15 4  8 12  6  2 5

Re: [Jprogramming] labelling a table

2009-11-16 Thread Ian Clark
with the verb ({. ; }.). Then it avoids my reshape (2 2$...) by leveraging the property of stitch (,.) Neat, Roger. Thanks for that potted masterclass. Ian On Tue, Nov 17, 2009 at 3:53 AM, Ian Clark earthspo...@googlemail.com wrote: Our postings crossed, Roger. You're reading my thoughts. Yes

Re: [Jprogramming] APWJ Chapter 31: missing object: nimsum

2009-11-17 Thread Ian Clark
: In the printed copy  (Vector 19.1) it gives nimsum =: ~:/.#:@,0/~    NB. EEmcD That gives the correct results from Mike Day's function. Fraser - Original Message - From: Ian Clark earthspo...@googlemail.com To: Programming forum programming@jsoftware.com Sent: Tuesday, November 17, 2009 7:27

Re: [Jprogramming] APWJ Chapter 31: missing object: nimsum

2009-11-17 Thread Ian Clark
...Clarification: it's the Nim-addition table that has 0s down the main diagonal, not the Nim-multiplication table. I've updated http://www.jsoftware.com/jwiki/Doc/Articles/Play191 to include all this new material: nimsum, label and References. Ian On Tue, Nov 17, 2009 at 10:05 AM, Ian Clark

Re: [Jprogramming] labelling a table

2009-11-18 Thread Ian Clark
...@jsoftware.com wrote: Perhaps system/packages/misc/border.ijs does what you want. On Tue, Nov 17, 2009 at 2:23 PM, Ian Clark earthspo...@googlemail.comwrote: And label1 grabs a left argument for Format from... somewhere :-) ...I was wrong. Format is used monadically throughout. label1 simply combines

Re: [Jprogramming] APWJ exercises for the reader [4 of 4]

2009-11-18 Thread Ian Clark
Almost ready to publish APWJ Edn. Just need answers to these 2 problems, [3 of 4] and [4 of 4]. Ian On Wed, Nov 11, 2009 at 11:56 AM, Ian Clark earthspo...@googlemail.com wrote: In At Play With J Edn 1, there were 4 questions left as exercises for the reader. In Edn 2 we want to provide

Re: [Jprogramming] APWJ exercises for the reader [3 of 4]

2009-11-18 Thread Ian Clark
Almost ready to publish APWJ Edn. Just need answers to these 2 problems, [3 of 4] and [4 of 4]. Ian On Wed, Nov 11, 2009 at 11:55 AM, Ian Clark earthspo...@googlemail.com wrote: In At Play With J Edn 1, there were 4 questions left as exercises for the reader. In Edn 2 we want to provide

Re: [Jprogramming] At Play with J - help needed

2009-11-24 Thread Ian Clark
as discussions were appended. Here's the first instance of this. Ian Clark Subeditor, APWJ Edn 2. On Tue, Nov 24, 2009 at 2:02 AM, Chris Burke cbu...@jsoftware.com wrote: Just following up on Ian's recent messages, see below. Ian tells me the only major items outstanding for publishing the second

Re: [Jprogramming] At Play with J problem

2009-11-25 Thread Ian Clark
This comes just in time. I was about to go to press. Ian Clark Subeditor, APWJ Edn 2. On Wed, Nov 25, 2009 at 2:39 PM, Shaw, Ewart ewart.s...@warwick.ac.uk wrote: Dear Ian, I've put a suggested solution to the pi digits problem on the article page; note that 10 digit sequences beginning '0' must

Re: [Jprogramming] Basic animation in J

2009-12-10 Thread Ian Clark
Thanks for that, Dan It would look a lot terser if you did what everyone else does: omit comments and be sparing with blank lines and those containing only ')'. IMO the result is just as readable. I'm not saying comments aren't appealing. What if you confined them all to one block? Some verbs

Re: [Jprogramming] Basic animation in J

2009-12-14 Thread Ian Clark
Tried to reproduce these bugs using the latest Basic_Animation#J on my iMac, running Mac OS X 10.5.8. (i.e. Leopard, not Snow Leopard) I agree about 1. Every time the timer fires, it deletes the char just typed in the .ijx window. On the other hand a new ijs window can be created by Cmd-N and

[Jprogramming] Cancelling the dialog box in wdquery defaults to OK --a bug or a feature?

2009-12-16 Thread Ian Clark
On my iMac, on entering: (?5) wdquery 'myapp' ; 'my message' if you press Esc or click the GoAway button in the window's titlebar, this is equivalent to clicking OK, viz 0 is returned in all cases of left arg. The same thing happens when you try to quit J itself and see the message: Do you

Re: [Jprogramming] Basic animation in J

2009-12-18 Thread Ian Clark
. Few of us learn how to handle even a button-press properly. Ian Clark On Fri, Dec 18, 2009 at 8:59 AM, Oleg Kobchenko oleg...@yahoo.com wrote: Here's another version. See if it works better on Mac. Invalidated WD is considered more proper way to update UI. NB

Re: [Jprogramming] Basic animation in J

2009-12-18 Thread Ian Clark
Can't see any stutter on my iMac. Is this just Windows being Windows? Ian may be stuck in motel bathroom memories, ...I'm throwing in the towel. :) ...and putting another quarter in the shaky bed. On Fri, Dec 18, 2009 at 3:31 PM, Brian Schott schott.br...@gmail.com wrote: Oleg, Ian may be

Re: [Jprogramming] Tacit exercise

2009-12-20 Thread Ian Clark
, then Andrew is right. Psychology holds the key. Gerry Weinberg (in The Psychology of Then I (for one) am very glad that our company does not sell, at least not directly, the tacit systems that we code! From: Ian Clark earthspo...@googlemail.com

Re: [Jprogramming] Tacit exercise

2009-12-20 Thread Ian Clark
have my own answer of course. But I'd like to hear others' first.    items _1    erase'items' 1    items=: 13 : 'i. #TT'    items 3 : 'i. #TT'    TT=. i.2 3    items=: 13 : 'i. #TT'    items 0 1_ From: Ian Clark earthspo...@googlemail.com

Re: [Jprogramming] Tacit exercise

2009-12-20 Thread Ian Clark
approach in J) On Mon, Dec 21, 2009 at 4:01 AM, Ian Clark earthspo...@googlemail.com wrote: Too right. My aim in using a function to calculate items based on the (current) TT was to avoid using a global variable as a cache, like this: items =: i. #TT It seems that:   items=: 13 : 'i. #TT

Re: [Jprogramming] Tacit exercise

2009-12-21 Thread Ian Clark
and ... thank you, Dan ... now I've taken the trouble to read your post carefully at: http://www.jsoftware.com/pipermail/programming/2009-August/016123.html ... I believe I've just said what you did, only another way. Ian On Tue, Dec 22, 2009 at 3:22 AM, Ian Clark earthspo...@googlemail.com

Re: [Jprogramming] Tacit exercise

2009-12-21 Thread Ian Clark
Like you, Henry, I wonder what students on a course called Engineering for Programmers got out of it. Apart from a good laugh. For a long while the IEEE in the UK resisted a proposal to confer the CEng (Chartered Engineer) qualification to programmers, arguing that programmers knew d***-all about

Re: [Jprogramming] Tacit exercise

2009-12-22 Thread Ian Clark
Viktor and Dan -- thanks a bunch. That's tempted me with hosts of forbidden ideas. But I fear in the end that any process creating/updating TT in my base locale will have to be asked to do the ethical thing and lay some tracks for my engine after it has done it. Or else CAL tries to be as

Re: [Jprogramming] Holiday graphics Nr.2 (again)

2009-12-22 Thread Ian Clark
I've got it to run by: 1. Correcting: CONG=. +/ L:0 INDX=: (1, L:0 }. L:0 -. L:0 y);.1 L:0 y NB. search congestio m to: CONG=. +/ L:0 INDX=: (1, L:0 }. L:0 -. L:0 y);.1 L:0 y NB. search congestion and... 2. correcting: TMP=. ‾. /:‾ x metropolis0 y NB. not burn_in and sort to: TMP=.

Re: [Jprogramming] Holiday graphics Nr.2 (again)

2009-12-22 Thread Ian Clark
=. MP,-.1 e. MP=.MP in index_zrp_sub1 directly after the else.. On Tue, Dec 22, 2009 at 12:27 PM, Ian Clark earthspo...@googlemail.comwrote: That's a really useful site, June! I can think of all sorts of uses for it. How about this: http://pastebin.com/m2b4a375c (Excuse me, Mr Shimura

Re: [Jprogramming] At Play with J (page 88)

2009-12-23 Thread Ian Clark
Yes Luca, a glance back at Keith Smillie's original article shows the intention is to use Wind there -- which Eugene shortens to Wd -- and not some new word W. It's wrong in http://www.jsoftware.com/jwiki/Doc/Articles/Play132 too. Most embarrassing. I wondered how it got past my rigorous testing

[Jprogramming] wd question: listbox events

2010-01-04 Thread Ian Clark
I have a listbox called panel. As rows of panel are selected I want to provide details of the selection elsewhere on the form (called topend). Clicking a line fires the event: topend_panel_select, which I can use to do what I need. I would like pressing key: downarrow to fire this event too. But

Re: [Jprogramming] wd question: listbox events

2010-01-04 Thread Ian Clark
the grid control. Besides the arrow support and other key events, you get additional columns etc as a bonus. For an example, see   load 'gui/util/cobrowse' Use Tab key to switch between lists and Arrow keys to select list items. From: Ian Clark earthspo...@googlemail.com I have

[Jprogramming] When does wd need a star?

2010-01-16 Thread Ian Clark
Trying to make sense of JHelp wd ... I have a char vec in var: TEXT. I wish to copy it to the clipboard. I turn to JHelp. It points me to the wd page and I can code: wd 'clipcopy ',TEXT from the info on the page -- but it doesn't work. However (*inspiration!*) ... wd 'clipcopy *',TEXT That

Re: [Jprogramming] When does wd need a star?

2010-01-16 Thread Ian Clark
, 2010 at 7:04 AM, Ian Clark earthspo...@googlemail.com wrote: AFAICS the need (...occasionally?!) for a leading star is nowhere mentioned on the JHelp page. Should it be? How? When is a star needed and when not? * is documented in the first paragraph at http://www.jsoftware.com/help/user

Re: [Jprogramming] At Play with J - missing fns?

2010-01-16 Thread Ian Clark
Hahaha! For my testing process I went through the book blindly executing every code-block in turn. I don't know how I missed a footnote for that one. I guess I felt I couldn't add anything to Eugene's preceding phrase: ...at the heart of it... ...So a lot has gone before. I supposed readers

Re: [Jprogramming] The Ambiguous Dictionary

2010-01-16 Thread Ian Clark
Anyway, Devon has started the effort at http://www.jsoftware.com/jwiki/Vocabulary . Spot-on. I'd like to be in on this. And I have one clear advantage over you all ... (*preen-preen*) ... I'm a genuine Beginner! :-P Seriously though, I'm worried that (without a human factors lab to test it

Re: [Jprogramming] The Ambiguous Dictionary

2010-01-16 Thread Ian Clark
PS: We need a better name for this project. Dictionary2, Phrases2, Vocabulary2, etc are clunky (plus these efforts aren't really new superceding versions, but parallel texts with different goals). I like Henry's Wiktionary but that name is already taken by a more famous project. I'd

Re: [Jprogramming] The Ambiguous Dictionary

2010-01-19 Thread Ian Clark
Yes, Don, this is potentially most useful to me and I'd like to get it working (again). I tried converting all x.--x y.--y and \--/ (for the Mac) but I hit snags, like use of (m.) So I gave up that approach, enabled (x.) and (y.) (etc...!!!) and ran it. Then it did indeed run, but all the

Re: [Jprogramming] The Ambiguous Dictionary

2010-01-19 Thread Ian Clark
the same objective, I would catenate all the pages together into a single HTML page (removing the prolog and epilog parts), and then just use the Find facility of the browser on the one HTML page. - Original Message - From: Ian Clark earthspo...@googlemail.com Date: Tuesday, January 19

[Jprogramming] LoBrow: browser for locale contents

2010-01-19 Thread Ian Clark
old-hands on where my code could be improved. See Observations and Discussion right at the bottom, for starters. I can't believe nobody's written something like this already, only better. Perhaps there's an item in the J menu I've overlooked...? Ian Clark

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-19 Thread Ian Clark
Yes Kenneth, that's exactly what I was expecting. Oh well... you have to write these things yourself in order to understand what other people have done. Never mind. All good practice. Ian On Tue, Jan 19, 2010 at 6:22 PM, Lettow, Kenneth klet...@thomasnet.com wrote: Ian Clark wrote: I

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-20 Thread Ian Clark
. _  *) as is profuse commenting, typical of a language    rookie, which goes away with more confidence. From: Ian Clark earthspo...@googlemail.com Yes Kenneth, that's exactly what I was expecting. Oh well... you have to write these things yourself in order to understand what other people have

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-20 Thread Ian Clark
Why do you want the extra 'reset' after closing? It will close all other windows as well. So *that's* what's doing it! :-) I was blindly lifting code from some other example, I forget which. an alternative for try-catch could be the adverse conjunction (::) Yes, that looks much neater. (I

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-21 Thread Ian Clark
: programming@jsoftware.com Onderwerp: Re: [Jprogramming] LoBrow: browser for locale contents mer, 20 Jan 2010, Ian Clark skribis: PS nobody's told me off for nilad define! ;) That's your own coding style, I myself just use plain text like 0 : 0 or 3 : 0 because it types less and unambiguous

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-21 Thread Ian Clark
...@gmail.com wrote: On Thu, Jan 21, 2010 at 5:36 PM, Ian Clark earthspo...@googlemail.com wrote: Of course using a word like nilad to parameterise define enforces nothing in the subsequent code, so really I'm fooling myself. If you do not mind slightly different grammar: niladic=: (0 :) (1 :0

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-22 Thread Ian Clark
; composed on a handheld device. -Original Message- From: Raul Miller rauldmil...@gmail.com Date: Fri, 22 Jan 2010 06:50:10 To: Programming forumprogramming@jsoftware.com Subject: Re: [Jprogramming] LoBrow: browser for locale contents On Fri, Jan 22, 2010 at 6:29 AM, Ian Clark

Re: [Jprogramming] LoBrow: browser for locale contents

2010-01-22 Thread Ian Clark
I'd noticed that from SAJ.ijs. Actually my example is a bozo one, just for illustration. Since I've had such bad experiences of this nature, I take special care when coding logical tests. But I've seen some strange side-effects from writing =: for =., especially with y involved, that I resolve

  1   2   3   4   5   >