caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Peter Zotov <whitequark@whitequark.org>
Cc: Raoul Duke <raould@gmail.com>, OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] [ANN] OCaml-Java is going alpha, to github
Date: Wed, 16 Jul 2014 00:52:14 +0200	[thread overview]
Message-ID: <1405464734.11422.16.camel@zotac> (raw)
In-Reply-To: <40448e4581a57924e4eca25df7b5b61b@whitequark.org>

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

Am Dienstag, den 15.07.2014, 16:11 +0400 schrieb Peter Zotov:
> On 2014-07-15 13:38, Gerd Stolpmann wrote:
> > Go is in particular interesting because it provides a model of
> > lightweight threading that can be backed by multiple cores.
> 
> You may want to know that Go is not memory-safe in presence of
> race conditions. It uses multi-word fat pointers that cannot be
> atomically updated, yet does not globally protect them with a mutex
> "for speed", or prevent such updates using the type system.

Hmmm, that just means that the multi-threading is a bit unsafer than in
OCaml. But it is different anyway, e.g. in OCaml sequences of simple
assignments are atomic (although this isn't documented anywhere, afaik
the incrementation of the object ID counter depends on that).

Anyway, it is an experiment only.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-07-15 22:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 22:15 xclerc
2014-07-14 22:21 ` Raoul Duke
2014-07-15  9:38   ` Gerd Stolpmann
2014-07-15 12:11     ` Peter Zotov
2014-07-15 22:52       ` Gerd Stolpmann [this message]
2014-07-16  7:44 ` Jacques du Preez

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=1405464734.11422.16.camel@zotac \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=raould@gmail.com \
    --cc=whitequark@whitequark.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).