home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.apl
- Path: sparky!uunet!uunet.ca!geac!itcyyz!yrloc!intern
- From: eem@ipsaint.ipsa.reuter.COM (Mcdonnell, Eugene E.)
- Subject: questions from Emmett McLean
- Message-ID: <1992Dec25.012836.27671@yrloc.ipsa.reuter.COM>
- Sender: intern@yrloc.ipsa.reuter.COM (Intern via QUADRAM)
- Reply-To: eem@ipsaint.ipsa.reuter.COM (Mcdonnell, Eugene E.)
- Organization: Reuters Information Services (Canada)
- Date: 25 Dec 92 01:00:06 UT
- Lines: 52
-
-
- -----------Message forwarded from IPSA Mailbox-------------
-
-
- no. 6853576 filed 0.35.58 fri 25 dec 1992
- from eem
- to uclapl
- subj questions from Emmett McLean
-
-
- A. For gerund m, m`:6 is equivalent to m\ which is equivalent to
- the train of verbs in the gerund m. For example, if m=.f`g`h
- then m`:6 is equivalent to the train f g h which is a fork, so
- m`:6 y is the same as m\y which is the same as (f g h) y which is
- the same as (f y) g (h y).
-
- I don't think J has ever implemented the MIMD construction
- described in the Bernecky-Hui paper "Gerunds & Representations"
- as given by g`:6. I believe the Dictionary of J has always said
- that g`:6 is the same as g\ which is the train of verbs in g. At
- least such is the case in a copy of the Dictionary for version
- 3.3. Even though the MIMD control structure would be useful
- notationally even on a single cpu machine, its real importance
- would only show up in the greater execution efficiencies possible
- on a real MIMD machine. I expect we'll have to wait until J is
- available on such machines before anyone gets too excited about
- implementing it.
-
- B. Regarding your "iteration index" message: If you modify your
- verb r you can achieve the result you desire. By the way, $. is
- not an iteration index, it is a list of statement numbers to be
- executed.
-
- Try:
- r=.,1000&*@#
-
- Then:
- h^:(10) 2
- 2 1000 2000 1000 500 5000 2500 5000 10000 9000 4500
- h^:(10) 2
- 2 4 2000 3000 1500 5000 10000 20000 8000 4000 8000
- h^:(10) 2
- 2 4 2 3000 1500 750 375 7000 8000 4000 2000
- h^:(10) 2
- 2 4 2 1 0.5 0.25 6000 7000 14000 28000 56000
-
-
- -----------------------------------------------------------
- This posting is forwarded from an internal Reuters mailbox.
- No statement or opinion contained herein should be taken as
- being Reuters policy, or even as being approved by Reuters,
- in any way.
-