From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Lower bounds of Strings Date: Thu, 14 Jan 2021 15:34:09 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <1cc09f04-98f2-4ef3-ac84-9a9ca5aa3fd5n@googlegroups.com> NNTP-Posting-Host: 5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61128 List-Id: On 2021-01-14 15:02, Jeffrey R. Carter wrote: > The other use ofarrays (1- and multidimensional) is as maps. In arrays > as maps, the indices are meaningful, and slicing, sliding, and sorting > are usually inappropriate. More than appropriate in linear algebra, image processing, major application areas of multidimensional arrays. > In designing a new language, it might be useful to keep these two > concepts separate. I do not see how a sequence is less a map position->element than anything else. In order to keep them separate there are types and interfaces. The language must simply support them. A typical 1-D array would implement both. A typical n-D array would possibly only one. BTW, in image processing, for segmenting images I used to have them sequenced. The sequence looked this way: 1 2 5 6 17 18 21 22 3 4 7 8 19 20 23 24 9 10 13 14 25 26 30 31 11 12 15 16 27 28 32 33 and so on. There are many sorts of algorithmically interesting mappings from n-D to sequence. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de