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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.199.65 with SMTP id x62mr2627638iof.130.1507376857980; Sat, 07 Oct 2017 04:47:37 -0700 (PDT) X-Received: by 10.157.81.139 with SMTP id y11mr56289otg.19.1507376857913; Sat, 07 Oct 2017 04:47:37 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no286728itl.0!news-out.google.com!p6ni1795itp.0!nntp.google.com!l196no286722itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 7 Oct 2017 04:47:37 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=90.25.77.204; posting-account=94GLqQoAAABRDKJ5vWVBzCDWAEq47F5V NNTP-Posting-Host: 90.25.77.204 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Why does Ada compile slower than Python? From: Blady Injection-Date: Sat, 07 Oct 2017 11:47:37 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3547 X-Received-Body-CRC: 272249362 Xref: news.eternal-september.org comp.lang.ada:48384 Date: 2017-10-07T04:47:37-07:00 List-Id: Hello Victor, Do you have considered using SparForte? http://sparforte.com "The computer language that the SparForte shell understands is called AdaSc= ript. Unlike JavaScript, which has no relation to Java, AdaScript is a smal= l subset of the Ada programming language, with additional features related = to shell commands and databases. AdaScript is intended to be "upward compatible" with Ada. AdaScript scripts= should run with little difficulty under Ada, but Ada programs may require = large changes run under SparForte." HTH, Pascal. Le mercredi 4 octobre 2017 18:03:24 UTC+2, Victor Porton a =C3=A9crit=C2=A0= : > gautier wrote: >=20 > > Fortunately, with GNAT, the slow build time is well rewarded by > > performance. I just have the following real case today at my job: > >=20 > > A certain number-crunching job is a big bottleneck since years. It has > > been developed as a SQL stored procedure. Then someone has made a Pytho= n > > version (program compiled into an executable). Independently I've made = an > > Ada version. All three programs produce the same result. > >=20 > > SQL : 12 hours run time - weeks of development work > > Python : 3 hours run time - weeks of development work > > Ada : 27 minutes run time - 3 days of development work. > >=20 > > Now the "clou": most of the run time is actually spent loading data via= a > > SQL select instruction. The actual number-crunching in Ada takes 24 > > *seconds* in total!... Since the loading of data is a "fixed cost" (+/- > > the same whatever the implementation language) I let as an exercise to > > figure out the speedup factor of the computation side :-). >=20 > My case is not expected especially computationally intensive. Therefore t= he=20 > processing time is expected to depend mostly on compilation time (because= I=20 > am to load software from the Web and run it in a secure sandbox). >=20 > Thus the execution time is expected to depend mostly on compilation time,= =20 > not the time of execution itself. (However, I am not sure if this is real= ly=20 > so, it will be clear when my software will run and tested with some real- > world scenaria.) >=20 > I need to take the decision whether Ada compiles fast enough to be used t= his=20 > way. >=20 > --=20 > Victor Porton - http://portonvictor.org