@David – It's irrelevant whether I trust you. This is a wiki. You are
entitled – nay encouraged – to correct it. All I can do is offer advice.

The section you touch on is a sore spot. Bernard was using APL in Index
Origin 1. J is compelled to use Index Origin 0. This gives rise to
inevitable incompatibilities, like execution results differing by 1

I did last-minute touch-ups when I realised that the results in the
original APL paper did not compute. Maybe I got it all wrong? It wouldn't
surprise me.

I recommend you to…

++ edit the 2 pages in tandem, so as to converge the execution results,
even if this means using J idioms that don't exactly correspond.
++ verify the code examples check out with J, >=j805, plus a respectable
APL if you've got it installed. Bernard was using an old Dyalog APL.
Dyalog, I understand, offer a free download.
++ use the Discussion page to state what you've done, and why. I.e. comment
on stratagems to make the 2 articles better, as is done in Wikipedia. This
I feel is better than footnotes or in-line comments hiliting the index
origin incompatibilities.

Ian Clark



On Sat, May 26, 2018 at 11:47 AM, David Lambert <[email protected]>
wrote:

> Do you trust me to fix the index origin trouble? The entire indexing
> section needs revist.  Thank you.  I will start recommending this page on
> the forums where I sell j.
>
> In:http://code.jsoftware.com/wiki/Articles/APL_-_a_Glimpse_of_Heaven
>
>
>  Indexing
>
> Returning to our vector of numbers:Val=: 22 37 41 19 54 11 34
>
> In order to extract the fourth item, we write4{Val
>
>
> ...............
>
>
>
>     Val =: (300 77 111) 3 5 1}Val
>     Val
> *111*37*300*19*77*11 34
>
>
> ................
>
>
>     Val =: (300 77 111) 3 5 1}Val
>     Val
> *111*37*300*19*77*11 34
>
> It is often necessary to extract the first items from a list of values,
> for example the first 5. Nothing could be easier:
>
>    1 2 3 4 5 {Val
> 111 37 300 19 77
>
>
> On 05/26/2018 12:38 AM, [email protected] wrote:
>
>> Date: Sat, 26 May 2018 05:38:39 +0100
>> From: Ian Clark<[email protected]>
>> To:[email protected]
>> Subject: [Jchat] A Glimpse Of Heaven, by Bernard Legrand
>> Message-ID:
>>         <[email protected]
>> ail.com>
>> Content-Type: text/plain; charset="UTF-8"
>>
>> Way back in 2008 Chris Burke drew attention to an article in Vector 23/1
>> by
>> Bernard Legrand, translated by Sylvia Camacho, entitled *APL – a Glimpse
>> of
>> Heaven.*
>> This was first presented at a conference of 22 June 2006, organized by
>> AFAPL: *Association Francophone pour la promotion du langage APL.*
>> It was an unashamedly evangelistic appeal to the "diplodocus generation"
>> of
>> C/C++ programmers to take APL seriously as a professional language.
>> In:http://code.jsoftware.com/wiki/Articles/APL_-_a_Glimpse_of_Heaven
>> Chris conjectured that the article would need only minor changes to offer
>> J
>> in place of APL. He offered it as an "interesting exercise for the
>> beginner".
>>
>> However the challenge was never taken up… until now.
>>
>> Ladies and Gentlemen, it gives me great pleasure to present to the world:
>>
>>     http://code.jsoftware.com/wiki/Articles/J_--_a_Glimpse_of_Heaven
>> by Bernard Legrand,
>> translated by Sylvia Camacho and done into J by yours-truly.
>>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to