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,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Wed, 20 Jul 2005 09:20:06 +0200 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GCC 4.0 Ada.Containers Cursor danger. References: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1121573057.159416.274980@g49g2000cwa.googlegroups.com> <1121622050.676894.246740@g14g2000cwa.googlegroups.com> <%q%Ce.11640$1Y1.7177@fe02.lga> In-Reply-To: <%q%Ce.11640$1Y1.7177@fe02.lga> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42ddfb1f$0$21249$9b4e6d93@newsread2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 20 Jul 2005 09:19:59 MEST NNTP-Posting-Host: 74fb4704.newsread2.arcor-online.net X-Trace: DXC=UEo8]Xf`mba<_V8dMIHdjhQ5U85hF6f;djW\KbG]kaMhQ>n?D9BSA]lY6ODaCBJ9H`hP3YJKgE\jl5Q5:;D5dD:a X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3694 Date: 2005-07-20T09:19:59+02:00 List-Id: Mikhail Terekhov wrote: > Matthew Heaney wrote: >> You want to legislate behavior for everyone. This is wrong. You should >> only be concerned with your own behavior. > > > I unerstand this as "shut up and go away". This is not polite. Try to > apply the above three sentences to yourself. I think you misunderstood. "You should only be concerned with your own behavior" is also a technical argument. You can use a language like SETL2, APL, or Haskell and then notice that it is hard, if possible, to get anywhere near the machine. For Ada.Containers, there is a machine model that Matt has been mentioning many times. A machine model blends rather well with Ada IMHO. These VHL languages are not Ada (perhaps the response by Robert Eachus illustrates?), and you don't necessarily expect pointers or bit fiddling to be available in a very high level language like SETL2 etc. Programmers writing programs in these languages are not primarily concerned with the machine and that's why these languages are not concerned with the behavior of programmers even though they don't usually provide pointers and bits. Using SETL2 you can write procedure quicksort(s); -- a sorted list of the elements in set s begin if #s = 0 then return []; end if; pivot := arb s; return quicksort({e: e in s | e < pivot}) + [pivot] + quicksort({e: e in s | e > pivot}); end quicksort; That's fine in the absense of time and when s is not a large set.[*] But absence of timing and memory usage requirements is unlikely a typical Ada situation? So in Ada, I'm comfortable with element related algorithms working at a less higher level of abstraction, as I'm trying to control a machine. [*] So I guess is't fine for non-temporal mathematics. -- Georg