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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!postnews.google.com!d15g2000prc.googlegroups.com!not-for-mail From: fft1976 Newsgroups: comp.lang.scheme,comp.lang.ada,comp.lang.functional,comp.lang.c++,comp.programming Subject: Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? Date: Thu, 30 Jul 2009 00:52:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: <48679a94-4ce4-422e-8656-56bb682b08c0@d15g2000prc.googlegroups.com> References: <2009a75f-63e7-485e-9d9f-955e456578ed@v37g2000prg.googlegroups.com> <0bdf3c02-0565-40e2-95cc-c7f5eb546313@2g2000prl.googlegroups.com> <7xmy6mzy0q.fsf@ruckus.brouhaha.com> <4a714308$0$30229$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 71.136.248.82 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1248940352 4767 127.0.0.1 (30 Jul 2009 07:52:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 30 Jul 2009 07:52:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d15g2000prc.googlegroups.com; posting-host=71.136.248.82; posting-account=XD7nMAkAAAAUcvFxxCbDAfgYkTA2oJDz User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.scheme:6196 comp.lang.ada:7439 comp.lang.functional:2547 comp.lang.c++:48613 comp.programming:12151 Date: 2009-07-30T00:52:31-07:00 List-Id: On Jul 29, 11:51=C2=A0pm, Georg Bauhaus wrote: > fft1976 wrote: > > On Jul 29, 7:48 pm, Paul Rubin wrote: > >> fft1976 writes: > >>>> =C2=A0 Where'd you get that idea? > >>>http://shootout.alioth.debian.org/u32/benchmark.php?test=3Dall=E2=8C= =A9=3Dgna... > >> Given that Ada is such a verbose language, the generally smaller > >> source sizes of the Ada programs suggests that they weren't optimized > >> very carefully. =C2=A0I know that some C, Java, and functional languag= e > >> users treat the shootouts fairly competitively and tune their code > >> carefully, but I don't know if the Ada users are the same way. =C2=A0A= da > >> is unfortunately kind of a niche language these days. > > > This is a hypotheses you are entertaining, right? Or did you notice > > anything "suboptimal" in the Ada code? > > It is true that Ada programs have been ranking lower at the > Shootout than they did before, and the (two) reasons > are interesting. > Some time ago, many algorithms were supposed to use just the > language, and sequential programs, with few excceptions. > Now with Multicore CPUs everywhere, many Shootout programmers > have started to include threading libraries and thus > perform different algorithms, having their programs perform > devide and conquer and such. > > (One might wonder whether or not having concurrency support > built into the language will become the great new thing. :-) > > Last time I looked, the Ada programs had not been > updated to use Ada's concurrent types to express the same > devide and conquer strategy, which seems to be allowed now... > The reported speedups for some C versions of the programs > can be used as an estimate of a statistical correction > to the (still sequential) Ada performance. > This then will explain why a 2x slowdown of Ada, > when compared to C, is not a realistic estimate. Try again. The link above is for single-threaded code. > > A second reason why Ada has dropped at the Shootout is > that the systems they use have older interim (from the Ada > point of view) GCCs that are known to be broken. > This makes some perfectly normal Ada programs fail there. > As the code is available and did not fail when it was > first ranked, and does not fail when used with an apt > compiler like GCC 4.3.x, the Shootout is just showing its > information potential ;-) How would this explain Ada's slow speed? I don't understand you.