Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Wolfgang Lux <wlux@uni-muenster.de>
To: Vasili Galchin <vasiliocaml@yahoo.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml and implicit parallelism (threading)
Date: Wed, 27 Oct 2004 15:31:39 +0200	[thread overview]
Message-ID: <884E587A-281C-11D9-8B1E-0003937628DA@uni-muenster.de> (raw)
In-Reply-To: <20041026203825.43063.qmail@web53001.mail.yahoo.com>

Vasili Galchin wrote:

> Hello,
>  
>      I have: http://www.csg.csail.mit.edu/Users/arvind/pub.html. OCaml 
> allows explicit threading through the Unix library, but are there any 
> plans to do use implicit parallelism (via the OCaml compilers) to do 
> parallel expression evaluation where possible?

I can't speak for Inria, but I would not expect them to do anything in
that direction. The problem is that the implicit parallelism in
functional languages is usually much too fine grained. For instance,
consider the expression
   sqr 3 + sqr 6
where sqr is defined as fun x -> x * x. The function sqr is side effect
free, so in principle both multiplications could be evaluated in 
parallel.
However, the overhead for generating new parallel threads for these
computations is -- obviously -- much too high. It is a very delicate
decision when to parallelize computations and most people agree that
this decision is best made by the programmer. At least nobody has come
up with a generic algorithm for exploiting implicit parallelism in a
reasonable way (i.e., such that there is really a gain in efficiency).

Regards
Wolfgang


      reply	other threads:[~2004-10-27 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 20:38 Vasili Galchin
2004-10-27 13:31 ` Wolfgang Lux [this message]

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=884E587A-281C-11D9-8B1E-0003937628DA@uni-muenster.de \
    --to=wlux@uni-muenster.de \
    --cc=caml-list@inria.fr \
    --cc=vasiliocaml@yahoo.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