caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kristopher Micinski <krismicinski@gmail.com>
To: oleg@okmij.org
Cc: "caml-list@inria.fr" <caml-list@inria.fr>, habet_ms@yahoo.fr
Subject: Re: [Caml-list] functional or imperative feature ?
Date: Mon, 22 Jul 2013 22:15:26 -0400	[thread overview]
Message-ID: <CAF1Sy-GsSL2q8i2vWpXt3kvvOHgBOaewq2dbgNog7hJrfb0K7g@mail.gmail.com> (raw)
In-Reply-To: <20130723001624.11626.qmail@www1.g3.pair.com>

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

Thanks for pointing out this exposition, Oleg.  I had never thought of the
connection between monads and Landin's earlier paper.  However, I do
remember Appel's CPS book saying something to the effect of lambda being
the prototypical let, and this was further described to me by Michael Hicks
when he was doing his work on monadic programming for ML: in which ML is
"lifted" to the proper monad for the job.

http://research.microsoft.com/apps/pubs/?id=151802

Interesting history however, your pages are quite useful!


Kris
On Jul 22, 2013 8:16 PM, <oleg@okmij.org> wrote:

>
> > The purest way to view it is that after desugaring, sequenced
> > statements turn into lambdas, which turn into (morally) binds from the
> > IO monad.  The observation is that when writing in ML, you are
> > implicitly writing in the IO monad.
>
> Peter Landin has described this process already in 1965. See the exact
> quotation from his paper (the ()-passing trick) in
>         http://okmij.org/ftp/Computation/IO-monad-history.html
> (as well a few comments). That Peter Landin's paper also described
> State and Writer monads, streams and delayed evaluation and even
> stream fusion.
>
>

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

      reply	other threads:[~2013-07-23  2:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21 20:50 habet_ms
2013-07-21 20:57 ` [Caml-list] " Christopher Zimmermann
2013-07-22 11:42   ` oliver
2013-07-22 11:46     ` David Allsopp
2013-07-22 14:23       ` oliver
2013-07-22 11:51     ` Wojciech Meyer
2013-07-21 20:58 ` [Caml-list] " David Allsopp
2013-07-22 11:20 ` Jean-Marc Alliot
2013-07-22 12:05   ` r.3
2013-07-22 14:59 ` Kristopher Micinski
2013-07-23  0:16   ` oleg
2013-07-23  2:15     ` Kristopher Micinski [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=CAF1Sy-GsSL2q8i2vWpXt3kvvOHgBOaewq2dbgNog7hJrfb0K7g@mail.gmail.com \
    --to=krismicinski@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=habet_ms@yahoo.fr \
    --cc=oleg@okmij.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).