caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Goswin von Brederlow <goswin-v-b@web.de>
To: Eray Ozkural <examachine@gmail.com>
Cc: Michael Ekstrand <michael@elehack.net>, caml-list@inria.fr
Subject: Re: [Caml-list] Re: about OcamIL
Date: Wed, 19 May 2010 18:48:16 +0200	[thread overview]
Message-ID: <87mxvvu9bj.fsf@frosties.localdomain> (raw)
In-Reply-To: <AANLkTimdKIXP8IauhaaMEpEhpGLXgu_kIO_GPeSRKVkO@mail.gmail.com> (Eray Ozkural's message of "Wed, 19 May 2010 16:27:29 +0300")

Eray Ozkural <examachine@gmail.com> writes:

> On the other hand, Jon's notion of high performance is valid I think.
> You want to be as close to the metal as possible. Otherwise there is
> no point in, say, writing a parallel version of the code. In the past
> we thought that was only possible with C and Fortran. Nowadays we
> think of C++ when we say that but I gladly find that ocaml is on par
> with any of those for real world tasks, without requiring tedious and
> cumbersome optimizations just to get it running (like in Java).

The thing about ocaml is that it does not optimize. You get what you
tell it to do. You put garbage in you get garbage out. You improve your
algorithm you get a huge speedup. You don't get sudden and unexpected
side effects that magically double your speed when you add a useless
line of code somewhere because suddenly the compiler sees an
optimization.

Ocaml also finds a lot more bugs due to its stronger types and has much
nicer look&feel for many problems imho. So you get your code written
faster, looking better, working right and still have fun.

If I finished writing a program (in basically any language) and find it
runs too slow I have two avenues to optimize it:

1) Think of some algortihm that is more clever. That can easily improve
performance by magnitudes.

2) Locate the part that sucks up all the time for no work being done and
write some C/asm stubs that are specifically optimized. Except for
extrem cases this tends to give little improvement.

But that might be just me.

MfG
        Goswin


  parent reply	other threads:[~2010-05-19 16:48 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 12:06 ben kuin
2010-05-05 14:19 ` [Caml-list] " Alain Frisch
     [not found]   ` <i2sc0c8bc8b1005051446q34b07d37xc4021d2b4b23d4e2@mail.gmail.com>
     [not found]     ` <4BE28085.5090100@lexifi.com>
2010-05-06 10:59       ` ben kuin
2010-05-05 18:58 ` Eray Ozkural
2010-05-05 19:16   ` Ed Keith
2010-05-05 20:15     ` Eray Ozkural
2010-05-05 22:13     ` Vincent Aravantinos
2010-05-05 22:36       ` ben kuin
2010-05-05 23:13         ` Eray Ozkural
2010-05-06 10:45           ` ben kuin
2010-05-06 14:38         ` Tim Hanson
2010-05-05 22:18     ` ben kuin
2010-05-06 11:13       ` Ed Keith
2010-05-06 10:43     ` Dmitry Bely
2010-05-06 16:33       ` Peng Zang
2010-05-07  7:26         ` Dmitry Bely
2010-05-07  8:25           ` Sylvain Le Gall
2010-05-10 21:53         ` [Caml-list] " Jon Harrop
2010-05-11 11:22           ` ben kuin
2010-05-11 16:39             ` Peng Zang
2010-05-11 17:35               ` Raoul Duke
2010-05-11 23:47               ` ben kuin
2010-05-12  1:57                 ` Peng Zang
2010-05-12 11:56               ` Jon Harrop
2010-05-11 17:38             ` Raoul Duke
2010-05-12 12:28             ` Jon Harrop
2010-05-12 13:11               ` forum
2010-05-14 10:40                 ` Jon Harrop
2010-05-14 10:58                   ` Eray Ozkural
2010-05-14 11:51                     ` forum
2010-05-14 11:51                   ` forum
2010-05-16 20:31                     ` Jon Harrop
2010-05-17  7:53                       ` forum
2010-05-19  0:17                         ` Jon Harrop
2010-05-19  7:46                           ` forum
2010-05-19 11:29                             ` Michael Ekstrand
2010-05-19 13:27                               ` [Caml-list] " Eray Ozkural
2010-05-19 13:35                                 ` David Allsopp
2010-05-19 15:23                                   ` Erick Tryzelaar
2010-05-19 16:49                                   ` Goswin von Brederlow
2010-05-19 16:48                                 ` Goswin von Brederlow [this message]
2010-05-20  2:03                             ` [Caml-list] " Jon Harrop
2010-05-14 13:55                   ` Ed Keith
2010-05-14 15:17                   ` Goswin von Brederlow
2010-05-14 16:26                     ` ben kuin
2010-05-14 16:32                       ` Vincent Aravantinos
2010-05-14 20:08                         ` ben kuin
2010-05-14 21:28                           ` Sylvain Le Gall
2010-05-14 21:29                             ` [Caml-list] " Vincent Aravantinos
2010-05-14 23:51                             ` ben kuin
2010-05-15  0:48                           ` [Caml-list] " Jon Harrop
2010-05-14 18:11                       ` Raoul Duke
2010-05-14 18:59                         ` ben kuin
     [not found]                           ` <AANLkTik-EuZRmX8VKMdAIsO_t8JGHvS6F9TPVLkohed8@mail.gmail.com>
2010-05-14 21:42                             ` Fwd: " Raoul Duke
2010-05-14 21:47                               ` Vincent Aravantinos
2010-05-14 21:57                                 ` Raoul Duke
2010-05-15  0:16                                 ` ben kuin
2010-05-15  0:43                                   ` Erik de Castro Lopo
2010-05-15  2:16                                     ` Goswin von Brederlow
2010-05-15 21:27                                       ` Jon Harrop
2010-05-16  3:19                                         ` Goswin von Brederlow
2010-05-15  9:45                                     ` ben kuin
2010-05-15 12:07                                       ` Ed Keith
2010-05-15 12:17                                       ` Vincent Aravantinos
2010-05-15 13:21                                         ` ben kuin
2010-05-15 22:18                                           ` Erik de Castro Lopo
2010-05-15 23:39                                             ` ben kuin
2010-05-16  3:23                                             ` Goswin von Brederlow
2010-05-15 13:23                                       ` Goswin von Brederlow
2010-05-15 21:45                                       ` Erik de Castro Lopo
2010-05-15 21:44                               ` Jon Harrop
2010-05-15 22:25                                 ` Erik de Castro Lopo
2010-05-16  2:04                                   ` Jon Harrop
2010-05-16  3:20                                     ` Goswin von Brederlow
2010-05-16 17:50                                     ` Eray Ozkural
2010-05-16 19:15                                       ` ben kuin
2010-05-05 21:59   ` ben kuin

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=87mxvvu9bj.fsf@frosties.localdomain \
    --to=goswin-v-b@web.de \
    --cc=caml-list@inria.fr \
    --cc=examachine@gmail.com \
    --cc=michael@elehack.net \
    /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).