caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lucas Dixon <ldixon@inf.ed.ac.uk>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] The state of ML: multi-threaded, saved state and support platforms
Date: Thu, 11 Jun 2009 22:44:08 +0100	[thread overview]
Message-ID: <4A317AA8.40209@inf.ed.ac.uk> (raw)
In-Reply-To: <20090611154910.GA27827@annexia.org>

Richard Jones wrote:
> On Thu, Jun 11, 2009 at 03:04:21PM +0100, Lucas Dixon wrote:
>> 1. Which implementations have native system threads with shared memory?
>>
>> PolyML is the only one I know of, are there others? (OCaml does not have
>> this as I understand it... do correct me if I'm wrong)
> 
> OCaml has native threads with shared memory, _but_ OCaml threads
> nevertheless cannot run simultaneously because there's a lock
> protecting the garbage collector.  The standard solution is to use
> fork-based parallelism or MPI (which will work better on new multicore
> machines which are all NUMA nowadays, and in any case is simpler to
> program).  See extensive discussions on this list about garbage
> collectors with threads.

Thanks, I just found an old post:

http://caml.inria.fr/pub/ml-archives/caml-list/2002/11/64c14acb90cb14bedb2cacb73338fb15.en.html

So PolyML is the only version of ML that supports SMP? (although it 
locks all threads on a major collection - it does support parallelism on 
shared-memory multiprocessors - so you really can max out 4 processor 
machines - but the speedup tails off only 5 times faster for 8 core 
machines)

>> 3. Lastly, can you help me get a good picture of the state of support
>> for ML systems:
>>
>> OCaml: is this still supported by INRIA? what is the level of support?
> 
> What level of support are you looking for? 

I was wondering who pays for the documentation to be kept up to date,
bug fixes, and implements new features.I saw that there is an OCaml 
Consortium: http://caml.inria.fr/consortium/index.en.html
Is this INRIA or something else? Is this the source of funding that 
supports OCaml? or is there INRIA backing also? Does anyone know how 
many people are employed? I'm interested in how to support functional 
programming environments. What level of financial support is needed?

> OCaml users will give you
> support through the ocaml-beginners mailing list which is active and
> most questions are answered within a few hours.  If you want "call
> someone on the phone and drop everything" support then you'll have to
> pay (a lot).

Are there organisations that offer OCaml support over the phone? Or
would that be consultancy rates for academics who specialise in OCaml?
The OCaml Consortium offers: 3000 Euros for a minimal support to Caml, 
10000 Euros or higher for more. But doesn't give much details - has 
anyone ever purchased this?

>> F#: Miscrosoft
> 
> Are you sure about this one?

no idea :)
I just saw that there is a MSDN F# Developer Center, and assume
Microsoft field the responsibility to fix bugs etc. Any experience with 
this?

>> 4. I'm also interested in interoperability: what systems can OCaml
>> easily interoperate with? What about the other systems?
> 
> This question is very unclear.  OCaml offers lots of opportunities for
> interoperating, eg. RPC mechanisms, web services, direct linking,
> passing structures through data files (XML, sexprs etc), pipes,
> databases.  What are you looking for?  What other systems?

Sorry, I will try to clarify:
I was taking for granted the ability to open sockets, have pipes, and 
read files. Web-services, links to databases, parsers, and anything else 
at that level are not what I meant.

I meant things at the level of linking compiled code/modules. F# website 
says it has "a cross-compiling core shared with the popular OCaml 
language", so I presume that modules written in one can be used in the 
other. This is the level of interoperability I was wondering about. Is 
there similar things for libraries writtin in Haskell, or MLton, or 
MLKit, or something similar for OCaml with SML/NJ?

I know the HLVM project is hoping to provide some of these features. I 
was wondering what the current situation is.

For other systems, was thinking of things like C interfaces, as describe 
here:
http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html

So perhaps I've half answered my own question :)

cheers,
lucas

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


  reply	other threads:[~2009-06-11 21:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 14:04 Lucas Dixon
2009-06-11 15:49 ` [Caml-list] " Richard Jones
2009-06-11 21:44   ` Lucas Dixon [this message]
2009-06-11 22:10     ` Richard Jones
2009-06-11 22:53     ` Sylvain Le Gall
2009-06-12  0:28     ` [Caml-list] " Jon Harrop
2009-06-12  8:24       ` Daniel Bünzli
2009-06-11 21:46   ` Jon Harrop
2009-06-11 16:55 ` Florian Weimer
2009-06-11 21:01   ` Lucas Dixon

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=4A317AA8.40209@inf.ed.ac.uk \
    --to=ldixon@inf.ed.ac.uk \
    --cc=caml-list@yquem.inria.fr \
    --cc=rich@annexia.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).