From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Doctor Who Newsgroups: comp.lang.ada Subject: Re: Not good for Ada endorsement Date: Wed, 07 Jul 2021 17:19:13 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: reader02.eternal-september.org; posting-host="f600ef001f55da9f0ff8415224ffa5c0"; logging-data="28660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B7riHR5hns46ERs2wleiA" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:35MdXhifjuOkC3sFY8w3lCLiEew= Xref: reader02.eternal-september.org comp.lang.ada:62338 List-Id: On Wed, 7 Jul 2021 16:06:46 +0100, "Luke A. Guest" wrote: >On 07/07/2021 15:21, Richard Iswara wrote: >> I haven't seen this posted before so apologies if redundant. >> A couple days ago this person posted on YouTube this clip: https://www.youtube.com/watch?v=pv4Yq35Chx0. > >I watched this finally yesterday as it kept popping up. I started >running the entire project last night as running the Ada one on it's own >didn't do anything. It's still running, It's been on PrimeR all day! > >> In the video it was run against Pascal and Ada lost by being 50% slower than Pascal on Prime Sieving. Also shown as 2 orders of magnitude slower than the fastest implementation of that day. See on video at 20:45. >> This is the base implementation link: https://github.com/PlummersSoftwareLLC/Primes/blob/drag-race/PrimeAda/solution_1/src/main.adb. >> I know it's trivial, and probably click bait on the video person, but this is not a good PR on Ada reputation. The guy said do a better implementation to get a better score. So can Ada implementation do better? >> > >Don't know as I don't know the algorithm, but I did clone the repo to >look at it. I would be comparing Ada with C, C++, Pascal and any other >compiled language. Not just Pascal. There are many algorithms to find primes, some are optimized some not. It makes no sense comparing languages with the same algorithm, I'm sure every language can be made faster with a language-optimized prime-finding algorithm.