caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yaron Minsky <yminsky@janestreet.com>
To: Francois Berenger <francois.berenger@inria.fr>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] muti-core programming
Date: Wed, 9 Mar 2016 16:58:15 -0500	[thread overview]
Message-ID: <CACLX4jRkgA-Qswmxuynwja--Jjh6N53yeRJpU8Dyukq97tkQwg@mail.gmail.com> (raw)
In-Reply-To: <56E00352.1060403@inria.fr>

[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]

rpc_parallel might also be of use.

On Wed, Mar 9, 2016 at 6:04 AM, Francois Berenger <
francois.berenger@inria.fr> wrote:

> On 03/09/2016 11:23 AM, Mohamed Iguernlala wrote:
>
>> Hi,
>>
>> Functory may be suitable as well
>> (http://opam.ocaml.org/packages/functory/functory.0.5/)
>>
>
> and maybe lwt-parallel by Ivan Gotovchits or
> procord by Cryptosense; all available libraries in opam.
>
>
> --
>> Mohamed Iguernlala.
>> Senior R&D Engineer, OCamlPro SAS
>> Research Associate, VALS team, LRI
>>
>> Le 09/03/2016 11:07, Francois Berenger a écrit :
>>
>>> On 03/09/2016 10:50 AM, 刘坚 wrote:
>>>
>>>> Hi,
>>>>
>>>>           I’m recently writing a formal verification tool in OCaml, and
>>>> it works really well, but I’m considering writing a concurrent version.
>>>> However, until now, there seems to be no way to write programs that take
>>>> advantage of multi-cores.
>>>>
>>>
>>> To accelerate something, probably you want paralellism, not concurrency.
>>>
>>> I recomend parmap, but there are some other libraries out there
>>> too for that purpose (in opam: forkwork and probably others I don't
>>> know).
>>>
>>> But be careful that too fine granularity calculations don't
>>> parallelize well.
>>> For example, if you are analyzing source code, maybe analyzing
>>> distinct files in parallel would be a coarse enough granularity.
>>>
>>> > So, I’m wondering when will OCaml support
>>>
>>>> multi-core programming? Or else, do I have other choices by using some
>>>> external extensions of OCaml instead of the standard library?
>>>>
>>>> Thanks,
>>>>
>>>> Jian
>>>>
>>>
>>>
>>
>>
> --
> Regards,
> Francois.
> "When in doubt, use more types"
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 3422 bytes --]

      reply	other threads:[~2016-03-09 21:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09  9:50 刘坚
2016-03-09 10:07 ` Francois Berenger
2016-03-09 10:23   ` Mohamed Iguernlala
2016-03-09 11:04     ` Francois Berenger
2016-03-09 21:58       ` Yaron Minsky [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=CACLX4jRkgA-Qswmxuynwja--Jjh6N53yeRJpU8Dyukq97tkQwg@mail.gmail.com \
    --to=yminsky@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=francois.berenger@inria.fr \
    /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).