Groups | Search | Server Info | Login | Register


Groups > comp.lang.misc > #11723

Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups comp.lang.misc
Subject Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays
Date Sun, 28 Dec 2025 23:50:03 +0100
Organization A noiseless patient Spider
Lines 32
Message-ID <10isc6r$2suup$4@dont-email.me> (permalink)
References <10ilrbc$25ihi$10@dont-email.me> <10is8ap$2jg7c$1@paganini.bofh.team>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 28 Dec 2025 22:50:04 +0000 (UTC)
Injection-Info dont-email.me; posting-host="47c89f85b8b8395be9b727673dd79147"; logging-data="3046361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19q7JwrYX78tfXXrmjD1tiX"
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:Y7AWc9lPRONUOZ3ryGDclJz1lpI=
Content-Language en-US
In-Reply-To <10is8ap$2jg7c$1@paganini.bofh.team>
Xref csiph.com comp.lang.misc:11723

Show key headers only | View raw


On 2025-12-28 22:43, Waldek Hebisch wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>> [...]
> 
> Linearization seem to be best as implementaition.  For typed
> interface nice way is to use list (or vectors) as indices.  If a
> language has simple way of creating lists you could have code like
> 
>     a([1, 2, 3, 4])
> 
> for accessing elements. 

Hmm.. - I'll have to ponder about that. There's a chance that I
can model not exactly that but "something like that" in Algol 68.

> Concerning iteration, simple in-order
> iteration basically needs to implement multiposition counter
> with carries at appropriate points.  Or you could expose
> undelying linear structure.  For exmple in Lisp there is
> ROW-MAJOR-AREF to access elements of possibly multidimensional
> array in lineare order and there is ARRAY-ROW-MAJOR-INDEX
> to get linear index corresponding to given tuple of indices
> (useful when one wants to deal with slices).

Yeah, I thought that Lisp might be an appropriate language for
things like that. (Too bad that I don't like that language, and
I anyway need some method here that I can realize in Algol 68.)

Thanks.

Janis

Back to comp.lang.misc | Previous | NextPrevious in thread | Find similar


Thread

Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-26 12:25 +0100
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Andy Walker <anw@cuboid.co.uk> - 2025-12-28 12:53 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:13 +0000
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:29 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:41 +0000
          Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 14:45 +0000
            Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays ram@zedat.fu-berlin.de (Stefan Ram) - 2025-12-28 23:22 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 15:53 +0100
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 15:47 +0100
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Andy Walker <anw@cuboid.co.uk> - 2025-12-30 16:29 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-01-01 12:21 +0100
          Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays David Brown <david.brown@hesbynett.no> - 2026-01-01 17:18 +0100
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays bart <bc@freeuk.com> - 2025-12-28 15:32 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 23:48 +0100
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-28 22:54 +0000
      Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays bart <bc@freeuk.com> - 2025-12-28 23:07 +0000
        Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-28 23:29 +0000
  Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays antispam@fricas.org (Waldek Hebisch) - 2025-12-28 21:43 +0000
    Re: Algol 68 (or generally) - arbitrarily nested arrays of arrays Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-12-28 23:50 +0100

csiph-web