From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: linasvepstas@gmail.com
Cc: Lukasz Stafiniak <lukstafi@gmail.com>,
caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Looking for information regarding use of OCaml in scientific computing and simulation
Date: Tue, 22 Dec 2009 14:46:25 +0100 [thread overview]
Message-ID: <1261489585.31160.22.camel@flake.lan.gerd-stolpmann.de> (raw)
In-Reply-To: <3ae3aa420912212040i23309f7cw4485db33352c1853@mail.gmail.com>
> Have you ever tried writing a significant or complex algo using
> message passing? Its fun if you have nothing better to to --
> its a good intellectual challenge. You can even learn some
> interesting computer science while you do it.
>
> However, if you are interested in merely using the system
> to do your "real" work, then writing message-passing code
> is an utter waste of time -- its difficult, time-consuming, error
> prone, hard to balance and optimize & tune, works well only
> for "embarrasingly parallel" code, etc. Even the evil
> slow-down of NUMA is often better than trying to
> performance-tune a message-passing system.
Well, it is true that message passing is more expensive, and you need
bigger data sets until it is worth it (nonsense to do a 10x10 matrix
multiplication with message passing). However, I don't think it is that
complicated as you describe. Especially ocaml's uniform representation
of values can help a lot, and hide many of the low-level details. It
could be a lot like continuation-passing style.
Hard to balance and optimize & tune: This is true for _any_
parallelization strategy.
> Let me put it this way: suggesting that programmers can
> write their own message-passing system is kind of like
> telling them that they can write their own garbage-collection
> system, or design their own closures, or they can go
> create their own type system. Of course they can ... and
> if they wanted to do that, they would be programming in
> C or assembly, and would probably be designing new
> languages. Cause by the time you get done with message
> passing, you've created a significant and rich programming
> system that resembles a poorly-designed language... been
> there, done that.
See it this way: The typical ocaml programmer doesn't like system
programming, and will seldom/never touch C or assembly. The task it to
help this kind of programmer, and to make parallel programming available
in a higher-level way than it is available elsewhere.
Gerd
--
------------------------------------------------------------
Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
Phone: +49-6151-153855 Fax: +49-6151-997714
------------------------------------------------------------
next prev parent reply other threads:[~2009-12-22 13:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 11:05 David MENTRE
2009-11-25 11:59 ` Sylvain Le Gall
2009-11-25 12:32 ` [Caml-list] " blue storm
2009-11-28 23:23 ` Jan Kybic
2009-11-29 23:11 ` Jon Harrop
[not found] ` <4a708d20911291416x2be905f7p93f559543a77d97f@mail.gmail.com>
[not found] ` <3ae3aa420911300830h63a04b21r2e09fb4e34cdb7f7@mail.gmail.com>
[not found] ` <4a708d20912200638q5e7d72acu9cae3b564ada085d@mail.gmail.com>
2009-12-22 4:40 ` Linas Vepstas
2009-12-22 13:11 ` Eray Ozkural
2009-12-22 13:44 ` Eray Ozkural
2009-12-22 19:49 ` Jon Harrop
2009-12-22 21:11 ` Mike Lin
2009-12-22 13:46 ` Gerd Stolpmann [this message]
2009-12-04 9:55 ` David MENTRE
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=1261489585.31160.22.camel@flake.lan.gerd-stolpmann.de \
--to=gerd@gerd-stolpmann.de \
--cc=caml-list@yquem.inria.fr \
--cc=linasvepstas@gmail.com \
--cc=lukstafi@gmail.com \
/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