From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,19924f2facf8443 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 08 Aug 2008 13:35:04 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Larger matrices References: <40ed91c2-3dab-4994-9a7b-4032058f0671@56g2000hsm.googlegroups.com> <4899b545$0$20713$9b4e6d93@newsspool4.arcor-online.net> <96f76821-fc2a-4ec1-83e7-b7b9a5be0520@r66g2000hsg.googlegroups.com> <9cabee20-877a-4fdc-80f8-7746879331da@8g2000hse.googlegroups.com> <489a9675$0$20718$9b4e6d93@newsspool4.arcor-online.net> <75a339dd-969b-4c7a-8e89-7b640171bc2f@e53g2000hsa.googlegroups.com> <13426f2d-0060-47f0-8139-09506383f648@e53g2000hsa.googlegroups.com> In-Reply-To: <13426f2d-0060-47f0-8139-09506383f648@e53g2000hsa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <489c2f68$0$1060$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 08 Aug 2008 13:35:05 CEST NNTP-Posting-Host: 614ffd09.newsspool3.arcor-online.net X-Trace: DXC=fW:g0<6BOgH2:OR3:3gaE@McF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]REfW=Pe9]k;9Hnc\616M64>JLh>_cHTX3jMohcX;^_hJdN X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:1538 Date: 2008-08-08T13:35:05+02:00 List-Id: amado.alves@gmail.com schrieb: >>> And Ada got in the way: slicing restricted to one-dimensional arrays! >> Compared to other languages that have no slicing at all? > > There are languages better than Ada at array indexing, including > slicing. If there aren't, there should be! Ada is a systems programming language. As such, it is targetting digital computers. In cases where Ada can be used for some mathematical tasks, it is still a systems programming language. You could just ask for a type system that allows assignment to diagonals of matrices, upper triangles, switch from row order to column order right in the type system and so on. (And, I guess, per DK, have these type based mechanisms be construction facilities for the programmer, with default implementations only). Ada is about computers that have word/byte adressable storage cells that happen to be able to store bit combinations. Ada is not about cells of mathematical abstractions. Overlap is accidental. If you do already have some theory for your graphs, and presuming you need a working program for large matrices, I'd suggest that you seriously consider prototyping your algorithms using one of the fine PLs that do have the required mathematical stuff built in. (The various APLs, some of which are specializing or certain large data sets, come to mind; Mathematica, and so on.) You can always concentrate on an specially efficient Ada implementation later. Ada is a systems programming language for digital computer systems performing close-to-the-hardware tasks, not mathematics. -- Georg Bauhaus Y A Time Drain http://www.9toX.de