caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Question on writing efficient Ocaml.
@ 2006-12-28 11:42 Ian Oversby
  2006-12-28 16:26 ` [Caml-list] " Jon Harrop
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Ian Oversby @ 2006-12-28 11:42 UTC (permalink / raw)
  To: caml-list

Hi,

Apologies if this is the wrong forum in which to ask this question.  Is 
there anywhere else more
suitable?

I've written some Ocaml code to solve the problem of placing 8 queens on a 
board so that none of them attack each-other.  I've also written a C++ 
equivalent which is running much more quickly than the Ocaml.  I assume I've 
made some basic errors with the Ocaml - does anyone have any suggestions as 
to what?

The code is available here:

http://curiousprogrammer.wordpress.com/2006/12/22/speed-comparison-plt-scheme-ocaml-and-c/

I compiled the Ocaml with the following command:

ocamlopt -noassert -unsafe -ccopt -O3 -ccopt -fomit-frame-pointer q.ml -o 
q.exe

This is running on Windows using the MinGW build of Ocaml.

Thanks very much,

Ian

_________________________________________________________________
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-01-08 22:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <15946.213.30.139.86.1167315231.squirrel@webmail.nerim.net>
2006-12-28 16:03 ` [Caml-list] Question on writing efficient Ocaml Ian Oversby
2006-12-28 17:00   ` Richard Jones
2006-12-28 22:23   ` Jon Harrop
2006-12-29  9:42     ` Ian Oversby
2006-12-28 11:42 Ian Oversby
2006-12-28 16:26 ` [Caml-list] " Jon Harrop
2006-12-28 17:13   ` skaller
2006-12-29  6:05     ` Jacques Garrigue
2006-12-29 11:15       ` Mattias Engdegård
2007-01-06  0:52         ` Nathaniel Gray
2007-01-06  1:01           ` Philippe Wang
2007-01-06  1:15           ` brogoff
2007-01-06  2:27             ` Martin Jambon
2007-01-08 22:23               ` Nathaniel Gray
2006-12-29  1:23 ` Andrej Bauer
2006-12-29  9:58   ` Ian Oversby
2006-12-29  2:07 ` Jon Harrop
2007-01-03 16:43   ` Serge Aleynikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).