From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: John Max Skaller <skaller@maxtal.com.au>
Cc: caml-list@inria.fr
Subject: Re: ICFP'00 programming contest
Date: Thu, 7 Sep 2000 11:42:46 +0200 [thread overview]
Message-ID: <20000907114246.32643@pauillac.inria.fr> (raw)
In-Reply-To: <39B5D472.C70EA12F@maxtal.com.au>; from John Max Skaller on Wed, Sep 06, 2000 at 04:21:54PM +1100
> It would be interesting to see how good ocaml is now with FP.
> I believe Fortran is king, with C being roughly 50% slower.
I have few numerical benchmarks in Caml, and even fewer for which
equivalent C code is available. Here are figures for two such
benchmarks, Pseudoknot (an ADN conformation thing with lots of 3D
geometry) and FFT (fast Fourier transform):
C OCamlopt OCamlopt
w. bounds checks wo. bounds checks
PentiumIII 450Mhz
FFT 0.43s 0.62s 0.55s
Nucleic 0.12s 0.17s 0.17s
Alpha 21264 500Mhz
FFT 0.28s 0.27s 0.26s
Nucleic 0.06s 0.07s 0.07s
So, OCaml is doing quite well on code that uses records of floats and
one-dimensional float arrays. I don't have good benchmarks for
multidimensional arrays, but I'd expect the results to be not as good,
since the default representation of multidimensional arrays as arrays
of arrays can be expensive; however, the new "Bigarray" module
provides flat multidimensional float arrays, with some support in
ocamlopt to generate decent (if not really optimized) code.
> I'm not a numerical programmer, but I have considerable 'sympathy'
> for that art form, so I'd like to thank the ocaml team for the
> hard work of tuning ocaml to make it suitable for numerical
> programming use.
I, too, have sympathy for numerical applications, and we have very
interesting feedback from some members of this community. They seem
quite open towards high-level languages with a mathematical flavor,
probably more so than most IT professionals.
In the same vein, you could have a look at the PSCICO project at CMU
(http://www.cs.cmu.edu/~pscico/)
- Xavier Leroy
next prev parent reply other threads:[~2000-09-07 13:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-22 9:01 Julian Assange
2000-08-22 9:56 ` Xavier Leroy
2000-08-22 10:25 ` Julian Assange
2000-08-22 11:26 ` Xavier Leroy
2000-08-30 13:34 ` Julian Assange
2000-08-31 9:37 ` Xavier Leroy
2000-08-31 19:19 ` Francois Rouaix
2000-08-31 19:50 ` Xavier Leroy
2000-09-06 5:21 ` John Max Skaller
2000-09-07 9:42 ` Xavier Leroy [this message]
[not found] ` <39AF79D4.250B979F@univ-savoie.fr>
2000-09-01 12:38 ` Xavier Leroy
2000-09-01 20:20 ` Pascal Grosse
2000-09-01 20:01 ` Patrick M Doane
2000-08-22 12:31 Damien Doligez
2000-09-06 19:56 ortmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000907114246.32643@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=skaller@maxtal.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox