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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Toy computational "benchmark" in Ada (new blog post) Date: Thu, 06 Jun 2019 22:36:06 -0700 Organization: A noiseless patient Spider Message-ID: <8736kmx8hl.fsf@nightsong.com> References: <55b14350-e255-406c-ab11-b824da77995b@googlegroups.com> <01dfb261-56b9-4bbb-aad9-e0099071f559@googlegroups.com> <431f7439-e540-4f8e-bb6d-8542cceab52f@googlegroups.com> <87ftomxpk9.fsf@nightsong.com> <35f50e2d-ce9a-4b1b-bba5-0e797912d909@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b0f0f522fb2e31df244925cac2903ee1"; logging-data="19741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gcJrdF/JOy1cyhynoUUd6" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:/B9qpvgpYK4dyNnmAUuIEXQwvKI= sha1:0Kz0AGU4Z2C64iVpHl3/uUGkjuA= Xref: reader01.eternal-september.org comp.lang.ada:56522 Date: 2019-06-06T22:36:06-07:00 List-Id: David Trudgett writes: > But you obviously like C++ better, so that's fine. I wouldn't say I like C++ better, I just wanted to benchmark it. I got the C++ working but it was pretty painful and there is a lot of code. I've been hanging out here and maintaining some interest in Ada as a refuge from the perils of C++. But so far, C++ is easier for me to use because I'm more familiar with it. In your reply to Olivier about the C code, you mentioned various problems in the way of your being able to compile and run it. But if you have a copy, I wonder if you could post it for the rest of us to try even if you can't try it yourself. I'd also like to try Rust (which I have never tried at all so far), and Haskell's Accelerate library: https://hackage.haskell.org/package/accelerate I haven't tried Accelerate yet but am an intermediate-level Haskell user so with luck I can figure it out. Julia is also supposed to be good for this sort of thing. I thought of trying Numpy but I figured that the obvious implementations would either invoke the Python interpreter too much (slow) or else make extra copies of the very large array (memory bloat), either way making it uncompetitive with Ada and C++. But, I've had only slight exposure to numpy so far.