caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: John Goerzen <jgoerzen@complete.org>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Observations on OCaml vs. Haskell
Date: 28 Sep 2004 11:46:06 +1000	[thread overview]
Message-ID: <1096335965.28613.793.camel@pelican.wigram> (raw)
In-Reply-To: <200409271408.51872.jgoerzen@complete.org>

On Tue, 2004-09-28 at 05:08, John Goerzen wrote:

> 1. Haskell lists resemble OCaml Streams

Laziness -> control inversion -> duality

lists and streams are categorical duals

> 2. Haskell strings are lists of characters

Performance implications ..

> 3. The Num typeclass

Non general attempt to provide polyadic programming.

> OCaml enlightenment appreciated :-)

I would guess Ocaml wins in performance. Shootout at alioth gives:

(CRAPS scores)

gcc -- 57
ocamlopt -- 40
ghc -- 18
ocamlbyte -- 15
python -- 16
felix -- 3.3 (ouch!)
curry (Haskell) -- 0.13

which seems to indicate, at least for statically
typed languages, that performance is most closely
related to the intensity of effort put into the
optimiser.

However, Haskell being purely functional may
make high performance data structures unavailable,
for example arrays (time in secs)

gcc -- 0.02
ocaml -- 0.04
ghc -- 1.4

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2004-09-28  1:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27 19:08 John Goerzen
2004-09-27 20:24 ` Rafael 'Dido' Sevilla
2004-09-27 21:34   ` Danny Yoo
2004-09-28  7:22     ` Ville-Pertti Keinonen
2004-09-28 18:02       ` Jon Harrop
2004-09-29 14:26         ` Brian Hurt
2004-09-29 14:20           ` Jon Harrop
2004-09-29 15:03           ` Dmitry Lomov
2004-09-28 10:10     ` [Caml-list] Caml monomorphisation (was Observations on OCaml vs. Haskell) Diego Olivier Fernandez Pons
2004-09-28 12:01       ` Richard Jones
2004-09-28 17:50       ` Jon Harrop
2004-09-28  1:56   ` [Caml-list] Observations on OCaml vs. Haskell skaller
2004-09-28  9:31   ` Keith Wansbrough
2004-09-28  9:55     ` Rafael 'Dido' Sevilla
2004-09-27 21:11 ` Christophe TROESTLER
2004-09-28  1:32 ` Jacques GARRIGUE
2004-09-28  1:46 ` skaller [this message]
2004-09-28  8:27 ` Richard Jones

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=1096335965.28613.793.camel@pelican.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    --cc=jgoerzen@complete.org \
    /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;
as well as URLs for NNTP newsgroup(s).