unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Andy Wingo <wingo@pobox.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: Concurrent MVars for Guile
Date: Wed, 15 Jan 2014 19:47:44 -0500	[thread overview]
Message-ID: <87zjmwrbv3.fsf@netris.org> (raw)
In-Reply-To: <87d2o7ryku.fsf@pobox.com> (Andy Wingo's message of "Tue, 17 Sep 2013 22:18:57 +0200")

Hi!  Reviving an old thread...

Andy Wingo <wingo@pobox.com> writes:

> On Sat 14 Sep 2013 15:59, ludo@gnu.org (Ludovic Courtès) writes:
>
>> It looks like a useful tool to me.
>
> FWIW I totally agree!
>
>> I don’t like the name “mvar” (“monadic variable”, I guess).  Perhaps
>> “synchronized box”, or “transactional variable”, or...?  The downside of
>> choosing another name is that people familiar with the concept won’t
>> recognize it first-hand.
>
> I guess I can see this.  I prefer "box" to "variable" fwiw.  How about
> "tbox"?  (The T for threadsafe or transactional or something; perhaps
> this is a bad idea.)

My preference would be to keep the "mvars" name, however imperfect,
simply because many people in the neighboring Haskell community already
know them as "mvars".

There are many different ways that one can design threadsafe and/or
transactional boxes.  In the future, we might very well support some
slightly different mechanism that could just as easily be called tboxes,
and then we will have to invent yet another name.  Given that these
mvars have identical semantics to the ones in Haskell, I think it's
probably best to just reuse the name that already exists.

However, I don't feel strongly.  If you and Ludovic can agree on a name,
I'll rename them.  Mainly I just want to get this module, or something
like it, into stable-2.0 relatively soon.

What do you think?

      Mark



  reply	other threads:[~2014-01-16  0:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-02  7:55 Concurrent MVars for Guile Mark H Weaver
2013-09-03 11:55 ` Mark H Weaver
     [not found]   ` <CAGua6m3o_NexANbGuDYd5_rbPQqsbXkK504ONaFE7PGdQd98og@mail.gmail.com>
2013-09-04  6:27     ` Fwd: " Stefan Israelsson Tampe
2013-09-05  2:10 ` David Thompson
2013-09-05  2:53   ` Mark H Weaver
2013-09-14 13:59 ` Ludovic Courtès
2013-09-17 20:18   ` Andy Wingo
2014-01-16  0:47     ` Mark H Weaver [this message]
2014-01-16 13:01       ` Ludovic Courtès
2014-01-17  6:33 ` Mateusz Kowalczyk
2014-01-17 19:31   ` Mark H Weaver
2014-01-18  0:46     ` Mark H Weaver
2014-01-18  1:05     ` Mateusz Kowalczyk
2014-01-21  5:38       ` Mark H Weaver

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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjmwrbv3.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).