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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7b6305d0d57a9f34 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.184.2 with SMTP id ci2mr162582bkb.7.1320180868063; Tue, 01 Nov 2011 13:54:28 -0700 (PDT) Path: l23ni45688bkv.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Normalizing array indices Date: Tue, 1 Nov 2011 21:49:56 +0100 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <4eabab47$0$30757$ba4acef3@reader.news.orange.fr> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1320180773 7102 141.54.178.228 (1 Nov 2011 20:52:53 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Tue, 1 Nov 2011 20:52:53 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Xref: news1.google.com comp.lang.ada:18783 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2011-11-01T21:49:56+01:00 List-Id: On Sat, 29 Oct 2011, Randy Brukardt wrote: > Of course, there is little reason to create a general purpose sort of your > own, given that the Standard already contains two (and there is a third one > added in Ada 2012). You pretty much have to have some special purpose to > justify the work. In that specific case, I wanted a sorting routine that would be able split its work between different "workers" (Ada tasks, hopefully runing on different processor cores), to benefit from parallelism. The only reason not to use a more general index type was the ease to compute the middle index ... So long Stefan -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------