I'd actually say that things have moved on a bit, and now with machine learning
et al so prominent, the programming paradigm of J/APL may be gaining some
traction. Look at how dominant R has become! OK it's no J but there are
similar concepts involved that an R programmer would benefit from
OK, I'll give the questions a go, too, bearing in mind that I am not a power
user, just a J dilettante.
How similar? - About as similar as Lua and Javascript :) !!! They may look
completely different on the surface and are used differently but the underlying
ideas and the paradigm
I prefer 0=⎕io, especially for array arithmetic, because it works
well for mixed-radix indexing, which is essential for array operations.
As an implementor of functional array language processors (compilers
and interpreters), I do this sort of thing a lot, under the covers.
Consider this nice
I was asking because when I tried to research the history of this
issue, I found distinctions including:
quaternions vs. vectors
vectors vs. scalars
vector notation vs. index notation
roman numerals vs. arabic numerals (also the absence or presence of 0)
The distinction between vector
I recall being astonished (circa 1974) to learn of the IBM product development
group's approach to implementing BASIC regards index origin.
They had a similar discussion to the one here, and decided a simple solution
would be that when a user declared a (row by col) array, simply set aside
That would work in basic because index notation is the only way of
accessing basic array elements.
Of course that would not solve off-by-one errors, but those are always problems.
--
Raul
On Fri, May 18, 2018 at 12:31 PM, Joey K Tuttle wrote:
> I recall being astonished (circa
I prefer index origin zero too. And I mentioned this discussion to my wife
this morning she pointed out that 2d and 3d graphs always have an origin of
zero. But when I first learned FORTRAN back in the stone age it only had
index origin of one.
But when it comes down to it. Pick one. I don't care
What book, specifically? What year was it first published?
Thanks,
—
Raul
On Friday, May 18, 2018, Don Guinn wrote:
> If you look at the notation for vectors and matrices in mathematics the
> first element of a vector is written as V(1) and the upper left corner of a
>
Agreed.
On Fri, May 18, 2018 at 8:46 AM, Roger Hui
wrote:
> > The mistake in APL was to duck the issue by allowing both making
> generalized indexing difficult.
>
> That is why I say "⎕io *delenda est*" and not "1-origin *delenda est*",
> although I do have a
If you look at the notation for vectors and matrices in mathematics the
first element of a vector is written as V(1) and the upper left corner of a
matrix is M(1,1). Having to use parens because I can't figure out how to
put subscripts in e-mail.
True, in summations of infinite series etc. the
> The mistake in APL was to duck the issue by allowing both making
generalized indexing difficult.
That is why I say "⎕io *delenda est*" and not "1-origin *delenda est*",
although I do have a preference.
⎕io *delenda est*!
On Fri, May 18, 2018 at 7:40 AM, Don Guinn
The first one I looked at was "Handbook of Mathematical Functions"
published in August, 1966. Also looked in several texts from college. I
couldn't stand returning them to the bookstore for almost nothing. Then
looked up vectors and matrices online. Whenever the index was not
significant in the
Having programmed on 4K 1401s I became very aware of never wasting storage.
So when forced to program in VB I could not decide to allocate arrays one
element short or not. Really hated wasting the storage. But what would
happen if VB started index range checking?
On Fri, May 18, 2018 at 10:54 AM,
13 matches
Mail list logo