From: Jan Kybic <kybic@fel.cvut.cz>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Re: ATS versus Ocaml
Date: Fri, 06 Nov 2009 16:38:27 +0100 [thread overview]
Message-ID: <87ljijd5os.fsf@fel.cvut.cz> (raw)
In-Reply-To: <slrnhf84jv.q9j.sylvain@gallu.homelinux.org> (Sylvain Le Gall's message of "Fri, 6 Nov 2009 12:11:43 +0000 (UTC)")
>I notice that in ATS you have to give the type of the array explicitly
fn bubble_sort (a : array0 double ) : void =
> so you should also do so in the OCaml code, using
You are right, I am sorry for this omission. Having done that, the
ration between Ocaml and ATS times drops to 3:1 (Ocaml being slower).
>Do you know if ATS is performing array bound checking? The OCaml code is
>nearly 2X faster with -unsafe than without.
Yes, I think the ATS code does perform bound checking. There is
probably a way to avoid it but I do not know how to do it yet.
With "ocamlopt -unsafe", the ratio drops further to 2:1
> Are you using amd64 architecture ?
No. Standard Intel x86.
Jan
--
-------------------------------------------------------------------------
Jan Kybic <kybic@fel.cvut.cz> tel. +420 2 2435 5721
http://cmp.felk.cvut.cz/~kybic ICQ 200569450
next prev parent reply other threads:[~2009-11-06 15:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 14:01 AST " Jan Kybic
2009-11-04 14:41 ` [Caml-list] " Kevin Cheung
2009-11-04 15:42 ` Jan Kybic
2009-11-04 20:25 ` Jon Harrop
2009-11-04 22:21 ` Jan Kybic
2009-11-04 23:15 ` Jon Harrop
2009-11-06 11:48 ` [Caml-list] ATS " Jan Kybic
2009-11-06 12:11 ` Sylvain Le Gall
2009-11-06 15:38 ` Jan Kybic [this message]
2009-11-07 1:56 ` [Caml-list] " Jacques Garrigue
2009-11-07 19:00 ` Jon Harrop
2009-11-06 12:22 ` [Caml-list] " Mauricio Fernandez
2009-11-04 15:37 ` [Caml-list] AST " malc
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=87ljijd5os.fsf@fel.cvut.cz \
--to=kybic@fel.cvut.cz \
--cc=caml-list@inria.fr \
/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